X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Funistd.h;h=07e49e97e23dac1c5fa179881ea3352602d0ca70;hp=a1724beccc9ba4f6e06821a14584a2a2099590ac;hb=8c741783fc96d559cfe79301c924c217b2905c0c;hpb=9735d50070cc120f4749d1a458eacad7e9180a28 diff --git a/include/unistd.h b/include/unistd.h index a1724bec..07e49e97 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -15,12 +15,7 @@ extern "C" { #define SEEK_CUR 1 #define SEEK_END 2 -#undef NULL -#ifdef __cplusplus -#define NULL 0 -#else -#define NULL ((void*)0) -#endif +#define NULL 0L #define __NEED_size_t #define __NEED_ssize_t @@ -149,7 +144,7 @@ void swab(const void *__restrict, void *__restrict, ssize_t); #endif #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) \ - || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE < 700) + || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700) int usleep(unsigned); unsigned ualarm(unsigned, unsigned); #endif @@ -168,13 +163,14 @@ int getdtablesize(void); int sethostname(const char *, size_t); int getdomainname(char *, size_t); int setdomainname(const char *, size_t); -int setgroups(size_t, const gid_t []); +int setgroups(size_t, const gid_t *); char *getpass(const char *); int daemon(int, int); void setusershell(void); void endusershell(void); char *getusershell(void); int acct(const char *); +long syscall(long, ...); #endif #ifdef _GNU_SOURCE @@ -211,6 +207,7 @@ void syncfs(int); #define _POSIX_MEMLOCK _POSIX_VERSION #define _POSIX_MEMLOCK_RANGE _POSIX_VERSION #define _POSIX_MEMORY_PROTECTION _POSIX_VERSION +#define _POSIX_FSYNC _POSIX_VERSION #define _POSIX_NO_TRUNC 1 #define _POSIX_RAW_SOCKETS _POSIX_VERSION #define _POSIX_REALTIME_SIGNALS _POSIX_VERSION @@ -222,6 +219,9 @@ void syncfs(int); #define _POSIX_THREADS _POSIX_VERSION #define _POSIX_THREAD_PROCESS_SHARED _POSIX_VERSION #define _POSIX_THREAD_SAFE_FUNCTIONS _POSIX_VERSION +#define _POSIX_THREAD_ATTR_STACKADDR _POSIX_VERSION +#define _POSIX_THREAD_ATTR_STACKSIZE _POSIX_VERSION +#define _POSIX_THREAD_PRIORITY_SCHEDULING _POSIX_VERSION #define _POSIX_TIMERS _POSIX_VERSION #define _POSIX_TIMEOUTS _POSIX_VERSION #define _POSIX_MONOTONIC_CLOCK _POSIX_VERSION