diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2023-08-09 16:51:57 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2023-08-09 16:51:57 +0200 |
commit | 07092a52e9516f0c341f7f3e5e6169c1e33b6fcc (patch) | |
tree | 601d993cd03f76b48e12ad905c917d08dd9f7388 /newlib/libc | |
parent | b9e867d088935d9f0bf312e6dbf3e4976850dfd3 (diff) | |
download | newlib-07092a52e9516f0c341f7f3e5e6169c1e33b6fcc.zip newlib-07092a52e9516f0c341f7f3e5e6169c1e33b6fcc.tar.gz newlib-07092a52e9516f0c341f7f3e5e6169c1e33b6fcc.tar.bz2 |
sys/unistd.h: define GNU extensions SEEK_DATA and SEEK_HOLE
SEEK_DATA and SEEK_HOLE are GNU nonstandard extensions also present
in Solaris, FreeBSD, and DragonFly BSD; they are proposed for inclusion
in the next POSIX revision (Issue 8).
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/sys/unistd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index 216d779..8074077 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -315,6 +315,10 @@ int unlinkat (int, const char *, int); # define SEEK_SET 0 # define SEEK_CUR 1 # define SEEK_END 2 +#if __GNU_VISIBLE +# define SEEK_DATA 3 +# define SEEK_HOLE 4 +#endif #include <sys/features.h> |