X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Funistd.h;h=bf10a6d12705742ca0c42584e8df361f1c11c22f;hb=839cc4e6da609a0b24f6cc32b0b11558fd77dd83;hp=ff5410882c2b11b55a26868acd475217ff495748;hpb=f03db4bdff7b2f02b5cbdda96cf0241efa4e80ef;p=musl diff --git a/include/unistd.h b/include/unistd.h index ff541088..bf10a6d1 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -15,7 +15,11 @@ extern "C" { #define SEEK_CUR 1 #define SEEK_END 2 +#ifdef __cplusplus #define NULL 0L +#else +#define NULL ((void*)0) +#endif #define __NEED_size_t #define __NEED_ssize_t @@ -31,6 +35,7 @@ extern "C" { int pipe(int [2]); int pipe2(int [2], int); int close(int); +int posix_close(int, int); int dup(int); int dup2(int, int); int dup3(int, int, int); @@ -182,6 +187,8 @@ int getresuid(uid_t *, uid_t *, uid_t *); int getresgid(gid_t *, gid_t *, gid_t *); char *get_current_dir_name(void); void syncfs(int); +int euidaccess(const char *, int); +int eaccess(const char *, int); #endif #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) @@ -194,6 +201,8 @@ void syncfs(int); #define off64_t off_t #endif +#define POSIX_CLOSE_RESTART 0 + #define _XOPEN_VERSION 700 #define _XOPEN_UNIX 1 #define _XOPEN_ENH_I18N 1 @@ -201,6 +210,7 @@ void syncfs(int); #define _POSIX_VERSION 200809L #define _POSIX2_VERSION _POSIX_VERSION +#define _POSIX_ADVISORY_INFO _POSIX_VERSION #define _POSIX_CHOWN_RESTRICTED 1 #define _POSIX_IPV6 _POSIX_VERSION #define _POSIX_JOB_CONTROL 1 @@ -208,6 +218,7 @@ void syncfs(int); #define _POSIX_MEMLOCK _POSIX_VERSION #define _POSIX_MEMLOCK_RANGE _POSIX_VERSION #define _POSIX_MEMORY_PROTECTION _POSIX_VERSION +#define _POSIX_MESSAGE_PASSING _POSIX_VERSION #define _POSIX_FSYNC _POSIX_VERSION #define _POSIX_NO_TRUNC 1 #define _POSIX_RAW_SOCKETS _POSIX_VERSION @@ -215,6 +226,7 @@ void syncfs(int); #define _POSIX_REGEXP 1 #define _POSIX_SAVED_IDS 1 #define _POSIX_SHELL 1 +#define _POSIX_SPAWN _POSIX_VERSION #define _POSIX_VDISABLE 0 #define _POSIX_THREADS _POSIX_VERSION @@ -234,6 +246,7 @@ void syncfs(int); #define _POSIX_READER_WRITER_LOCKS _POSIX_VERSION #define _POSIX_ASYNCHRONOUS_IO _POSIX_VERSION #define _POSIX_SEMAPHORES _POSIX_VERSION +#define _POSIX_SHARED_MEMORY_OBJECTS _POSIX_VERSION #define _POSIX2_C_BIND _POSIX_VERSION