about summary refs log tree commit diff
diff options
context:
space:
mode:
authorÉrico Nogueira <ericonr@disroot.org>2021-12-17 04:59:43 -0300
committerRich Felker <dalias@aerifal.cx>2022-01-09 00:31:05 -0500
commitcbacd638e32a02edbe66c48ae3d1361bc06a492a (patch)
tree1e0d049e95224632933380293d7fcdddedb9fe69
parentc4d4028dde90562f631edf559fbc42d8ec1b29de (diff)
downloadmusl-cbacd638e32a02edbe66c48ae3d1361bc06a492a.tar.gz
musl-cbacd638e32a02edbe66c48ae3d1361bc06a492a.tar.xz
musl-cbacd638e32a02edbe66c48ae3d1361bc06a492a.zip
add SEEK_DATA and SEEK_HOLE to unistd.h
these are linux specific constants. glibc exposes them behind
_GNU_SOURCE, but, since SEEK_* is reserved for the implementation, we
can simply define them. furthermore, since they can't be used with
fseek() and other functions that deal with FILE, we don't add them to
stdio.h.
-rw-r--r--include/unistd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index ee2dbe8a..212263a7 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -14,6 +14,8 @@ extern "C" {
 #define SEEK_SET 0
 #define SEEK_CUR 1
 #define SEEK_END 2
+#define SEEK_DATA 3
+#define SEEK_HOLE 4
 
 #if __cplusplus >= 201103L
 #define NULL nullptr