Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1 | #ifndef _UNISTD_H |
| 2 | #define _UNISTD_H |
| 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
Rich Felker | c1a9658 | 2012-09-07 23:13:55 -0400 | [diff] [blame] | 8 | #include <features.h> |
Rich Felker | 0c05bd3 | 2012-09-06 23:34:10 -0400 | [diff] [blame] | 9 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 10 | #define STDIN_FILENO 0 |
| 11 | #define STDOUT_FILENO 1 |
| 12 | #define STDERR_FILENO 2 |
| 13 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 14 | #define SEEK_SET 0 |
| 15 | #define SEEK_CUR 1 |
| 16 | #define SEEK_END 2 |
| 17 | |
Rich Felker | c8a9c22 | 2013-11-24 21:42:55 -0500 | [diff] [blame] | 18 | #ifdef __cplusplus |
Rich Felker | 41d7c77 | 2013-01-18 20:35:26 -0500 | [diff] [blame] | 19 | #define NULL 0L |
Rich Felker | c8a9c22 | 2013-11-24 21:42:55 -0500 | [diff] [blame] | 20 | #else |
| 21 | #define NULL ((void*)0) |
| 22 | #endif |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 23 | |
| 24 | #define __NEED_size_t |
| 25 | #define __NEED_ssize_t |
| 26 | #define __NEED_uid_t |
| 27 | #define __NEED_gid_t |
| 28 | #define __NEED_off_t |
| 29 | #define __NEED_pid_t |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 30 | #define __NEED_intptr_t |
rofl0r | 47cf491 | 2013-04-02 04:38:23 +0200 | [diff] [blame] | 31 | #define __NEED_useconds_t |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 32 | |
| 33 | #include <bits/alltypes.h> |
| 34 | |
| 35 | int pipe(int [2]); |
Rich Felker | 9735d50 | 2012-09-29 17:42:21 -0400 | [diff] [blame] | 36 | int pipe2(int [2], int); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 37 | int close(int); |
Rich Felker | 8708e13 | 2013-12-06 21:59:01 -0500 | [diff] [blame] | 38 | int posix_close(int, int); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 39 | int dup(int); |
| 40 | int dup2(int, int); |
Rich Felker | 9735d50 | 2012-09-29 17:42:21 -0400 | [diff] [blame] | 41 | int dup3(int, int, int); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 42 | off_t lseek(int, off_t, int); |
| 43 | int fsync(int); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 44 | int fdatasync(int); |
| 45 | |
| 46 | ssize_t read(int, void *, size_t); |
| 47 | ssize_t write(int, const void *, size_t); |
| 48 | ssize_t pread(int, void *, size_t, off_t); |
| 49 | ssize_t pwrite(int, const void *, size_t, off_t); |
| 50 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 51 | int chown(const char *, uid_t, gid_t); |
| 52 | int fchown(int, uid_t, gid_t); |
| 53 | int lchown(const char *, uid_t, gid_t); |
| 54 | int fchownat(int, const char *, uid_t, gid_t, int); |
| 55 | |
| 56 | int link(const char *, const char *); |
| 57 | int linkat(int, const char *, int, const char *, int); |
| 58 | int symlink(const char *, const char *); |
| 59 | int symlinkat(const char *, int, const char *); |
Rich Felker | 400c5e5 | 2012-09-06 22:44:55 -0400 | [diff] [blame] | 60 | ssize_t readlink(const char *__restrict, char *__restrict, size_t); |
| 61 | ssize_t readlinkat(int, const char *__restrict, char *__restrict, size_t); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 62 | int unlink(const char *); |
| 63 | int unlinkat(int, const char *, int); |
| 64 | int rmdir(const char *); |
| 65 | int truncate(const char *, off_t); |
| 66 | int ftruncate(int, off_t); |
| 67 | |
| 68 | #define F_OK 0 |
| 69 | #define R_OK 4 |
| 70 | #define W_OK 2 |
| 71 | #define X_OK 1 |
Rich Felker | 419ae6d | 2012-05-22 21:52:08 -0400 | [diff] [blame] | 72 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 73 | int access(const char *, int); |
| 74 | int faccessat(int, const char *, int, int); |
| 75 | |
| 76 | int chdir(const char *); |
| 77 | int fchdir(int); |
| 78 | char *getcwd(char *, size_t); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 79 | |
| 80 | unsigned alarm(unsigned); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 81 | unsigned sleep(unsigned); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 82 | int pause(void); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 83 | |
| 84 | pid_t fork(void); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 85 | int execve(const char *, char *const [], char *const []); |
| 86 | int execv(const char *, char *const []); |
Rich Felker | e6bac87 | 2011-04-27 16:06:33 -0400 | [diff] [blame] | 87 | int execle(const char *, const char *, ...); |
| 88 | int execl(const char *, const char *, ...); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 89 | int execvp(const char *, char *const []); |
Rich Felker | e6bac87 | 2011-04-27 16:06:33 -0400 | [diff] [blame] | 90 | int execlp(const char *, const char *, ...); |
Rich Felker | f2374ed | 2011-02-27 02:59:23 -0500 | [diff] [blame] | 91 | int fexecve(int, char *const [], char *const []); |
Rich Felker | 0c05bd3 | 2012-09-06 23:34:10 -0400 | [diff] [blame] | 92 | _Noreturn void _exit(int); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 93 | |
| 94 | pid_t getpid(void); |
| 95 | pid_t getppid(void); |
| 96 | pid_t getpgrp(void); |
| 97 | pid_t getpgid(pid_t); |
| 98 | int setpgid(pid_t, pid_t); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 99 | pid_t setsid(void); |
| 100 | pid_t getsid(pid_t); |
| 101 | char *ttyname(int); |
| 102 | int ttyname_r(int, char *, size_t); |
| 103 | int isatty(int); |
| 104 | pid_t tcgetpgrp(int); |
| 105 | int tcsetpgrp(int, pid_t); |
| 106 | |
| 107 | uid_t getuid(void); |
| 108 | uid_t geteuid(void); |
| 109 | gid_t getgid(void); |
| 110 | gid_t getegid(void); |
| 111 | int getgroups(int, gid_t []); |
| 112 | int setuid(uid_t); |
| 113 | int setreuid(uid_t, uid_t); |
| 114 | int seteuid(uid_t); |
| 115 | int setgid(gid_t); |
| 116 | int setregid(gid_t, gid_t); |
| 117 | int setegid(gid_t); |
| 118 | |
| 119 | char *getlogin(void); |
| 120 | int getlogin_r(char *, size_t); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 121 | int gethostname(char *, size_t); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 122 | char *ctermid(char *); |
| 123 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 124 | int getopt(int, char * const [], const char *); |
| 125 | extern char *optarg; |
| 126 | extern int optind, opterr, optopt; |
| 127 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 128 | long pathconf(const char *, int); |
| 129 | long fpathconf(int, int); |
| 130 | long sysconf(int); |
| 131 | size_t confstr(int, char *, size_t); |
| 132 | |
Rich Felker | 1d72953 | 2011-02-15 16:28:36 -0500 | [diff] [blame] | 133 | #define F_ULOCK 0 |
| 134 | #define F_LOCK 1 |
| 135 | #define F_TLOCK 2 |
| 136 | #define F_TEST 3 |
| 137 | |
Rich Felker | af3330d | 2012-05-22 22:28:17 -0400 | [diff] [blame] | 138 | #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
Rich Felker | 1d72953 | 2011-02-15 16:28:36 -0500 | [diff] [blame] | 139 | int lockf(int, int, off_t); |
Rich Felker | 1d72953 | 2011-02-15 16:28:36 -0500 | [diff] [blame] | 140 | long gethostid(void); |
| 141 | int nice(int); |
| 142 | void sync(void); |
Rich Felker | af3330d | 2012-05-22 22:28:17 -0400 | [diff] [blame] | 143 | pid_t setpgrp(void); |
| 144 | char *crypt(const char *, const char *); |
| 145 | void encrypt(char *, int); |
Rich Felker | 400c5e5 | 2012-09-06 22:44:55 -0400 | [diff] [blame] | 146 | void swab(const void *__restrict, void *__restrict, ssize_t); |
Rich Felker | af3330d | 2012-05-22 22:28:17 -0400 | [diff] [blame] | 147 | #endif |
| 148 | |
Rich Felker | 3f80afc | 2012-08-15 15:35:32 -0400 | [diff] [blame] | 149 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) \ |
Rich Felker | b367ab1 | 2012-11-01 03:49:43 -0400 | [diff] [blame] | 150 | || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700) |
Rich Felker | 3f80afc | 2012-08-15 15:35:32 -0400 | [diff] [blame] | 151 | int usleep(unsigned); |
| 152 | unsigned ualarm(unsigned, unsigned); |
| 153 | #endif |
| 154 | |
Rich Felker | 419ae6d | 2012-05-22 21:52:08 -0400 | [diff] [blame] | 155 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
Rich Felker | af3330d | 2012-05-22 22:28:17 -0400 | [diff] [blame] | 156 | #define L_SET 0 |
| 157 | #define L_INCR 1 |
| 158 | #define L_XTND 2 |
Rich Felker | b386d81 | 2011-02-19 01:02:46 -0500 | [diff] [blame] | 159 | int brk(void *); |
| 160 | void *sbrk(intptr_t); |
Rich Felker | 1d72953 | 2011-02-15 16:28:36 -0500 | [diff] [blame] | 161 | pid_t vfork(void); |
| 162 | int vhangup(void); |
| 163 | int chroot(const char *); |
| 164 | int getpagesize(void); |
Rich Felker | af3330d | 2012-05-22 22:28:17 -0400 | [diff] [blame] | 165 | int getdtablesize(void); |
Rich Felker | 1d72953 | 2011-02-15 16:28:36 -0500 | [diff] [blame] | 166 | int sethostname(const char *, size_t); |
Rich Felker | af3330d | 2012-05-22 22:28:17 -0400 | [diff] [blame] | 167 | int getdomainname(char *, size_t); |
Rich Felker | c87584a | 2012-09-09 16:50:20 -0400 | [diff] [blame] | 168 | int setdomainname(const char *, size_t); |
rofl0r | 6bf0fdb | 2012-12-06 19:48:14 +0100 | [diff] [blame] | 169 | int setgroups(size_t, const gid_t *); |
Rich Felker | 419ae6d | 2012-05-22 21:52:08 -0400 | [diff] [blame] | 170 | char *getpass(const char *); |
Rich Felker | af3330d | 2012-05-22 22:28:17 -0400 | [diff] [blame] | 171 | int daemon(int, int); |
| 172 | void setusershell(void); |
| 173 | void endusershell(void); |
| 174 | char *getusershell(void); |
Rich Felker | 6cf8bfd | 2012-09-08 20:22:08 -0400 | [diff] [blame] | 175 | int acct(const char *); |
Rich Felker | baf246e | 2012-12-10 16:40:45 -0500 | [diff] [blame] | 176 | long syscall(long, ...); |
M Farkas-Dyck | 164c5c7 | 2014-04-18 22:40:28 -0500 | [diff] [blame] | 177 | int execvpe(const char *, char *const [], char *const []); |
Brent Cook | ddddec1 | 2014-07-15 16:30:07 +0000 | [diff] [blame] | 178 | int issetugid(void); |
Rich Felker | 419ae6d | 2012-05-22 21:52:08 -0400 | [diff] [blame] | 179 | #endif |
| 180 | |
| 181 | #ifdef _GNU_SOURCE |
Rich Felker | d200bd7 | 2012-06-02 16:51:04 -0400 | [diff] [blame] | 182 | extern char **environ; |
Rich Felker | 1db283b | 2011-04-03 16:20:57 -0400 | [diff] [blame] | 183 | int setresuid(uid_t, uid_t, uid_t); |
| 184 | int setresgid(gid_t, gid_t, gid_t); |
Rich Felker | b1b3d35 | 2012-04-22 10:37:19 -0400 | [diff] [blame] | 185 | int getresuid(uid_t *, uid_t *, uid_t *); |
| 186 | int getresgid(gid_t *, gid_t *, gid_t *); |
Rich Felker | 1611ab0 | 2012-02-17 23:10:00 -0500 | [diff] [blame] | 187 | char *get_current_dir_name(void); |
Rich Felker | 11894f6 | 2015-07-09 17:07:35 +0000 | [diff] [blame] | 188 | int syncfs(int); |
Rich Felker | f0ceb5a | 2013-08-03 02:18:19 -0400 | [diff] [blame] | 189 | int euidaccess(const char *, int); |
| 190 | int eaccess(const char *, int); |
Rich Felker | 1d72953 | 2011-02-15 16:28:36 -0500 | [diff] [blame] | 191 | #endif |
| 192 | |
Rich Felker | 3b94dab | 2012-06-04 08:03:56 -0400 | [diff] [blame] | 193 | #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) |
Rich Felker | 2dd8d5e | 2012-05-04 00:13:23 -0400 | [diff] [blame] | 194 | #define lseek64 lseek |
| 195 | #define pread64 pread |
| 196 | #define pwrite64 pwrite |
| 197 | #define truncate64 truncate |
| 198 | #define ftruncate64 ftruncate |
| 199 | #define lockf64 lockf |
| 200 | #define off64_t off_t |
| 201 | #endif |
| 202 | |
Rich Felker | 8708e13 | 2013-12-06 21:59:01 -0500 | [diff] [blame] | 203 | #define POSIX_CLOSE_RESTART 0 |
| 204 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 205 | #define _XOPEN_VERSION 700 |
| 206 | #define _XOPEN_UNIX 1 |
| 207 | #define _XOPEN_ENH_I18N 1 |
| 208 | |
| 209 | #define _POSIX_VERSION 200809L |
| 210 | #define _POSIX2_VERSION _POSIX_VERSION |
| 211 | |
Rich Felker | a6d39fd | 2013-07-26 23:07:54 -0400 | [diff] [blame] | 212 | #define _POSIX_ADVISORY_INFO _POSIX_VERSION |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 213 | #define _POSIX_CHOWN_RESTRICTED 1 |
| 214 | #define _POSIX_IPV6 _POSIX_VERSION |
| 215 | #define _POSIX_JOB_CONTROL 1 |
| 216 | #define _POSIX_MAPPED_FILES _POSIX_VERSION |
| 217 | #define _POSIX_MEMLOCK _POSIX_VERSION |
| 218 | #define _POSIX_MEMLOCK_RANGE _POSIX_VERSION |
| 219 | #define _POSIX_MEMORY_PROTECTION _POSIX_VERSION |
Rich Felker | a6d39fd | 2013-07-26 23:07:54 -0400 | [diff] [blame] | 220 | #define _POSIX_MESSAGE_PASSING _POSIX_VERSION |
Rich Felker | 2e3648b | 2012-09-30 01:52:17 -0400 | [diff] [blame] | 221 | #define _POSIX_FSYNC _POSIX_VERSION |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 222 | #define _POSIX_NO_TRUNC 1 |
| 223 | #define _POSIX_RAW_SOCKETS _POSIX_VERSION |
| 224 | #define _POSIX_REALTIME_SIGNALS _POSIX_VERSION |
| 225 | #define _POSIX_REGEXP 1 |
| 226 | #define _POSIX_SAVED_IDS 1 |
| 227 | #define _POSIX_SHELL 1 |
Rich Felker | 7783050 | 2013-07-26 15:51:28 -0400 | [diff] [blame] | 228 | #define _POSIX_SPAWN _POSIX_VERSION |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 229 | #define _POSIX_VDISABLE 0 |
| 230 | |
| 231 | #define _POSIX_THREADS _POSIX_VERSION |
| 232 | #define _POSIX_THREAD_PROCESS_SHARED _POSIX_VERSION |
| 233 | #define _POSIX_THREAD_SAFE_FUNCTIONS _POSIX_VERSION |
Rich Felker | 2e3648b | 2012-09-30 01:52:17 -0400 | [diff] [blame] | 234 | #define _POSIX_THREAD_ATTR_STACKADDR _POSIX_VERSION |
| 235 | #define _POSIX_THREAD_ATTR_STACKSIZE _POSIX_VERSION |
Rich Felker | 7df42e8 | 2012-11-11 15:54:20 -0500 | [diff] [blame] | 236 | #define _POSIX_THREAD_PRIORITY_SCHEDULING _POSIX_VERSION |
Rich Felker | f03db4b | 2013-06-26 19:43:24 -0400 | [diff] [blame] | 237 | #define _POSIX_THREAD_CPUTIME _POSIX_VERSION |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 238 | #define _POSIX_TIMERS _POSIX_VERSION |
| 239 | #define _POSIX_TIMEOUTS _POSIX_VERSION |
| 240 | #define _POSIX_MONOTONIC_CLOCK _POSIX_VERSION |
| 241 | #define _POSIX_CPUTIME _POSIX_VERSION |
| 242 | #define _POSIX_CLOCK_SELECTION _POSIX_VERSION |
| 243 | #define _POSIX_BARRIERS _POSIX_VERSION |
| 244 | #define _POSIX_SPIN_LOCKS _POSIX_VERSION |
| 245 | #define _POSIX_READER_WRITER_LOCKS _POSIX_VERSION |
| 246 | #define _POSIX_ASYNCHRONOUS_IO _POSIX_VERSION |
| 247 | #define _POSIX_SEMAPHORES _POSIX_VERSION |
Rich Felker | bf7b728 | 2013-07-27 00:02:39 -0400 | [diff] [blame] | 248 | #define _POSIX_SHARED_MEMORY_OBJECTS _POSIX_VERSION |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 249 | |
| 250 | #define _POSIX2_C_BIND _POSIX_VERSION |
| 251 | |
| 252 | #include <bits/posix.h> |
| 253 | |
| 254 | |
| 255 | |
| 256 | #define _PC_LINK_MAX 0 |
| 257 | #define _PC_MAX_CANON 1 |
| 258 | #define _PC_MAX_INPUT 2 |
| 259 | #define _PC_NAME_MAX 3 |
| 260 | #define _PC_PATH_MAX 4 |
| 261 | #define _PC_PIPE_BUF 5 |
| 262 | #define _PC_CHOWN_RESTRICTED 6 |
| 263 | #define _PC_NO_TRUNC 7 |
| 264 | #define _PC_VDISABLE 8 |
| 265 | #define _PC_SYNC_IO 9 |
| 266 | #define _PC_ASYNC_IO 10 |
| 267 | #define _PC_PRIO_IO 11 |
| 268 | #define _PC_SOCK_MAXBUF 12 |
| 269 | #define _PC_FILESIZEBITS 13 |
| 270 | #define _PC_REC_INCR_XFER_SIZE 14 |
| 271 | #define _PC_REC_MAX_XFER_SIZE 15 |
| 272 | #define _PC_REC_MIN_XFER_SIZE 16 |
| 273 | #define _PC_REC_XFER_ALIGN 17 |
| 274 | #define _PC_ALLOC_SIZE_MIN 18 |
| 275 | #define _PC_SYMLINK_MAX 19 |
| 276 | #define _PC_2_SYMLINKS 20 |
| 277 | |
| 278 | #define _SC_ARG_MAX 0 |
| 279 | #define _SC_CHILD_MAX 1 |
| 280 | #define _SC_CLK_TCK 2 |
| 281 | #define _SC_NGROUPS_MAX 3 |
| 282 | #define _SC_OPEN_MAX 4 |
| 283 | #define _SC_STREAM_MAX 5 |
| 284 | #define _SC_TZNAME_MAX 6 |
| 285 | #define _SC_JOB_CONTROL 7 |
| 286 | #define _SC_SAVED_IDS 8 |
| 287 | #define _SC_REALTIME_SIGNALS 9 |
| 288 | #define _SC_PRIORITY_SCHEDULING 10 |
| 289 | #define _SC_TIMERS 11 |
| 290 | #define _SC_ASYNCHRONOUS_IO 12 |
| 291 | #define _SC_PRIORITIZED_IO 13 |
| 292 | #define _SC_SYNCHRONIZED_IO 14 |
| 293 | #define _SC_FSYNC 15 |
| 294 | #define _SC_MAPPED_FILES 16 |
| 295 | #define _SC_MEMLOCK 17 |
| 296 | #define _SC_MEMLOCK_RANGE 18 |
| 297 | #define _SC_MEMORY_PROTECTION 19 |
| 298 | #define _SC_MESSAGE_PASSING 20 |
| 299 | #define _SC_SEMAPHORES 21 |
| 300 | #define _SC_SHARED_MEMORY_OBJECTS 22 |
| 301 | #define _SC_AIO_LISTIO_MAX 23 |
| 302 | #define _SC_AIO_MAX 24 |
| 303 | #define _SC_AIO_PRIO_DELTA_MAX 25 |
| 304 | #define _SC_DELAYTIMER_MAX 26 |
| 305 | #define _SC_MQ_OPEN_MAX 27 |
| 306 | #define _SC_MQ_PRIO_MAX 28 |
| 307 | #define _SC_VERSION 29 |
| 308 | #define _SC_PAGE_SIZE 30 |
| 309 | #define _SC_PAGESIZE 30 /* !! */ |
| 310 | #define _SC_RTSIG_MAX 31 |
| 311 | #define _SC_SEM_NSEMS_MAX 32 |
| 312 | #define _SC_SEM_VALUE_MAX 33 |
| 313 | #define _SC_SIGQUEUE_MAX 34 |
| 314 | #define _SC_TIMER_MAX 35 |
| 315 | #define _SC_BC_BASE_MAX 36 |
| 316 | #define _SC_BC_DIM_MAX 37 |
| 317 | #define _SC_BC_SCALE_MAX 38 |
| 318 | #define _SC_BC_STRING_MAX 39 |
| 319 | #define _SC_COLL_WEIGHTS_MAX 40 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 320 | #define _SC_EXPR_NEST_MAX 42 |
| 321 | #define _SC_LINE_MAX 43 |
| 322 | #define _SC_RE_DUP_MAX 44 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 323 | #define _SC_2_VERSION 46 |
| 324 | #define _SC_2_C_BIND 47 |
| 325 | #define _SC_2_C_DEV 48 |
| 326 | #define _SC_2_FORT_DEV 49 |
| 327 | #define _SC_2_FORT_RUN 50 |
| 328 | #define _SC_2_SW_DEV 51 |
| 329 | #define _SC_2_LOCALEDEF 52 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 330 | #define _SC_UIO_MAXIOV 60 /* !! */ |
| 331 | #define _SC_IOV_MAX 60 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 332 | #define _SC_THREADS 67 |
| 333 | #define _SC_THREAD_SAFE_FUNCTIONS 68 |
| 334 | #define _SC_GETGR_R_SIZE_MAX 69 |
| 335 | #define _SC_GETPW_R_SIZE_MAX 70 |
| 336 | #define _SC_LOGIN_NAME_MAX 71 |
| 337 | #define _SC_TTY_NAME_MAX 72 |
| 338 | #define _SC_THREAD_DESTRUCTOR_ITERATIONS 73 |
| 339 | #define _SC_THREAD_KEYS_MAX 74 |
| 340 | #define _SC_THREAD_STACK_MIN 75 |
| 341 | #define _SC_THREAD_THREADS_MAX 76 |
| 342 | #define _SC_THREAD_ATTR_STACKADDR 77 |
| 343 | #define _SC_THREAD_ATTR_STACKSIZE 78 |
| 344 | #define _SC_THREAD_PRIORITY_SCHEDULING 79 |
| 345 | #define _SC_THREAD_PRIO_INHERIT 80 |
| 346 | #define _SC_THREAD_PRIO_PROTECT 81 |
| 347 | #define _SC_THREAD_PROCESS_SHARED 82 |
| 348 | #define _SC_NPROCESSORS_CONF 83 |
| 349 | #define _SC_NPROCESSORS_ONLN 84 |
| 350 | #define _SC_PHYS_PAGES 85 |
| 351 | #define _SC_AVPHYS_PAGES 86 |
| 352 | #define _SC_ATEXIT_MAX 87 |
| 353 | #define _SC_PASS_MAX 88 |
| 354 | #define _SC_XOPEN_VERSION 89 |
| 355 | #define _SC_XOPEN_XCU_VERSION 90 |
| 356 | #define _SC_XOPEN_UNIX 91 |
| 357 | #define _SC_XOPEN_CRYPT 92 |
| 358 | #define _SC_XOPEN_ENH_I18N 93 |
| 359 | #define _SC_XOPEN_SHM 94 |
| 360 | #define _SC_2_CHAR_TERM 95 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 361 | #define _SC_2_UPE 97 |
| 362 | #define _SC_XOPEN_XPG2 98 |
| 363 | #define _SC_XOPEN_XPG3 99 |
| 364 | #define _SC_XOPEN_XPG4 100 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 365 | #define _SC_NZERO 109 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 366 | #define _SC_XBS5_ILP32_OFF32 125 |
| 367 | #define _SC_XBS5_ILP32_OFFBIG 126 |
| 368 | #define _SC_XBS5_LP64_OFF64 127 |
| 369 | #define _SC_XBS5_LPBIG_OFFBIG 128 |
| 370 | #define _SC_XOPEN_LEGACY 129 |
| 371 | #define _SC_XOPEN_REALTIME 130 |
| 372 | #define _SC_XOPEN_REALTIME_THREADS 131 |
| 373 | #define _SC_ADVISORY_INFO 132 |
| 374 | #define _SC_BARRIERS 133 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 375 | #define _SC_CLOCK_SELECTION 137 |
| 376 | #define _SC_CPUTIME 138 |
| 377 | #define _SC_THREAD_CPUTIME 139 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 378 | #define _SC_MONOTONIC_CLOCK 149 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 379 | #define _SC_READER_WRITER_LOCKS 153 |
| 380 | #define _SC_SPIN_LOCKS 154 |
| 381 | #define _SC_REGEXP 155 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 382 | #define _SC_SHELL 157 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 383 | #define _SC_SPAWN 159 |
| 384 | #define _SC_SPORADIC_SERVER 160 |
| 385 | #define _SC_THREAD_SPORADIC_SERVER 161 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 386 | #define _SC_TIMEOUTS 164 |
| 387 | #define _SC_TYPED_MEMORY_OBJECTS 165 |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 388 | #define _SC_2_PBS 168 |
| 389 | #define _SC_2_PBS_ACCOUNTING 169 |
| 390 | #define _SC_2_PBS_LOCATE 170 |
| 391 | #define _SC_2_PBS_MESSAGE 171 |
| 392 | #define _SC_2_PBS_TRACK 172 |
| 393 | #define _SC_SYMLOOP_MAX 173 |
| 394 | #define _SC_STREAMS 174 |
| 395 | #define _SC_2_PBS_CHECKPOINT 175 |
| 396 | #define _SC_V6_ILP32_OFF32 176 |
| 397 | #define _SC_V6_ILP32_OFFBIG 177 |
| 398 | #define _SC_V6_LP64_OFF64 178 |
| 399 | #define _SC_V6_LPBIG_OFFBIG 179 |
| 400 | #define _SC_HOST_NAME_MAX 180 |
| 401 | #define _SC_TRACE 181 |
| 402 | #define _SC_TRACE_EVENT_FILTER 182 |
| 403 | #define _SC_TRACE_INHERIT 183 |
| 404 | #define _SC_TRACE_LOG 184 |
| 405 | |
| 406 | #define _SC_IPV6 235 |
| 407 | #define _SC_RAW_SOCKETS 236 |
| 408 | #define _SC_V7_ILP32_OFF32 237 |
| 409 | #define _SC_V7_ILP32_OFFBIG 238 |
| 410 | #define _SC_V7_LP64_OFF64 239 |
| 411 | #define _SC_V7_LPBIG_OFFBIG 240 |
| 412 | #define _SC_SS_REPL_MAX 241 |
| 413 | #define _SC_TRACE_EVENT_NAME_MAX 242 |
| 414 | #define _SC_TRACE_NAME_MAX 243 |
| 415 | #define _SC_TRACE_SYS_MAX 244 |
| 416 | #define _SC_TRACE_USER_EVENT_MAX 245 |
| 417 | #define _SC_XOPEN_STREAMS 246 |
| 418 | #define _SC_THREAD_ROBUST_PRIO_INHERIT 247 |
| 419 | #define _SC_THREAD_ROBUST_PRIO_PROTECT 248 |
| 420 | |
| 421 | #define _CS_PATH 0 |
| 422 | #define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS 1 |
| 423 | #define _CS_GNU_LIBC_VERSION 2 |
| 424 | #define _CS_GNU_LIBPTHREAD_VERSION 3 |
| 425 | #define _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS 4 |
| 426 | #define _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS 5 |
| 427 | |
| 428 | #define _CS_POSIX_V6_ILP32_OFF32_CFLAGS 1116 |
| 429 | #define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS 1117 |
| 430 | #define _CS_POSIX_V6_ILP32_OFF32_LIBS 1118 |
| 431 | #define _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS 1119 |
| 432 | #define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS 1120 |
| 433 | #define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS 1121 |
| 434 | #define _CS_POSIX_V6_ILP32_OFFBIG_LIBS 1122 |
| 435 | #define _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS 1123 |
| 436 | #define _CS_POSIX_V6_LP64_OFF64_CFLAGS 1124 |
| 437 | #define _CS_POSIX_V6_LP64_OFF64_LDFLAGS 1125 |
| 438 | #define _CS_POSIX_V6_LP64_OFF64_LIBS 1126 |
| 439 | #define _CS_POSIX_V6_LP64_OFF64_LINTFLAGS 1127 |
| 440 | #define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS 1128 |
| 441 | #define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS 1129 |
| 442 | #define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS 1130 |
| 443 | #define _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS 1131 |
| 444 | #define _CS_POSIX_V7_ILP32_OFF32_CFLAGS 1132 |
| 445 | #define _CS_POSIX_V7_ILP32_OFF32_LDFLAGS 1133 |
| 446 | #define _CS_POSIX_V7_ILP32_OFF32_LIBS 1134 |
| 447 | #define _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS 1135 |
| 448 | #define _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS 1136 |
| 449 | #define _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS 1137 |
| 450 | #define _CS_POSIX_V7_ILP32_OFFBIG_LIBS 1138 |
| 451 | #define _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS 1139 |
| 452 | #define _CS_POSIX_V7_LP64_OFF64_CFLAGS 1140 |
| 453 | #define _CS_POSIX_V7_LP64_OFF64_LDFLAGS 1141 |
| 454 | #define _CS_POSIX_V7_LP64_OFF64_LIBS 1142 |
| 455 | #define _CS_POSIX_V7_LP64_OFF64_LINTFLAGS 1143 |
| 456 | #define _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS 1144 |
| 457 | #define _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS 1145 |
| 458 | #define _CS_POSIX_V7_LPBIG_OFFBIG_LIBS 1146 |
| 459 | #define _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS 1147 |
| 460 | |
| 461 | #ifdef __cplusplus |
| 462 | } |
| 463 | #endif |
| 464 | |
| 465 | #endif |