From cbacd638e32a02edbe66c48ae3d1361bc06a492a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Fri, 17 Dec 2021 04:59:43 -0300 Subject: 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. --- include/unistd.h | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.1