Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2023-08-09 17:51:57 +0300
committerCorinna Vinschen <corinna@vinschen.de>2023-08-09 17:51:57 +0300
commit07092a52e9516f0c341f7f3e5e6169c1e33b6fcc (patch)
tree601d993cd03f76b48e12ad905c917d08dd9f7388 /newlib
parentb9e867d088935d9f0bf312e6dbf3e4976850dfd3 (diff)
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')
-rw-r--r--newlib/libc/include/sys/unistd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h
index 216d779d8..807407700 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>