fix potential deadlock in dlerror buffer handling at thread exit
[musl] / include / unistd.h
index ee2dbe8..5bc7f79 100644 (file)
@@ -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
@@ -196,7 +198,7 @@ ssize_t copy_file_range(int, off_t *, int, off_t *, size_t, unsigned);
 pid_t gettid(void);
 #endif
 
-#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
+#if defined(_LARGEFILE64_SOURCE)
 #define lseek64 lseek
 #define pread64 pread
 #define pwrite64 pwrite
@@ -423,6 +425,8 @@ pid_t gettid(void);
 #define _SC_XOPEN_STREAMS      246
 #define _SC_THREAD_ROBUST_PRIO_INHERIT 247
 #define _SC_THREAD_ROBUST_PRIO_PROTECT 248
+#define _SC_MINSIGSTKSZ        249
+#define _SC_SIGSTKSZ   250
 
 #define _CS_PATH       0
 #define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS     1
@@ -465,6 +469,8 @@ pid_t gettid(void);
 #define _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS    1147
 #define _CS_V6_ENV     1148
 #define _CS_V7_ENV     1149
+#define _CS_POSIX_V7_THREADS_CFLAGS    1150
+#define _CS_POSIX_V7_THREADS_LDFLAGS   1151
 
 #ifdef __cplusplus
 }