summaryrefslogtreecommitdiff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-07-24 09:40:43 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2024-07-24 09:40:43 +0200
commit05b11809bd11450aff3d20e43f18415ce58601e7 (patch)
treeba995a675b73d4f031d4c3943b7d9d4f84d7c0aa /include/unistd.h
parent839bae66a376631ee7d5b1f5b2f5b4094c519ea8 (diff)
add SEEK_DATA/SEEK_HOLE
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 36cd5fcb5..d50e1e4d3 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -316,6 +316,10 @@ libc_hidden_proto(faccessat)
# define SEEK_SET 0 /* Seek from beginning of file. */
# define SEEK_CUR 1 /* Seek from current position. */
# define SEEK_END 2 /* Seek from end of file. */
+# ifdef __USE_GNU
+# define SEEK_DATA 3 /* Seek to next data. */
+# define SEEK_HOLE 4 /* Seek to next hole. */
+# endif
#endif
#if defined __USE_BSD && !defined L_SET