]>
Commit | Line | Data |
---|---|---|
320054e8 DG |
1 | #ifndef _UNISTD_H |
2 | #define _UNISTD_H | |
3 | ||
4 | #ifdef __cplusplus | |
5 | extern "C" { | |
6 | #endif | |
7 | ||
8 | #include <features.h> | |
9 | ||
10 | #define STDIN_FILENO 0 | |
11 | #define STDOUT_FILENO 1 | |
12 | #define STDERR_FILENO 2 | |
13 | ||
e5f14be3 | 14 | #ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */ |
320054e8 DG |
15 | #define SEEK_SET 0 |
16 | #define SEEK_CUR 1 | |
17 | #define SEEK_END 2 | |
18 | #else | |
19 | #include <__header_unistd.h> | |
20 | #endif | |
21 | ||
e5f14be3 | 22 | #ifdef __wasilibc_unmodified_upstream /* Use the compiler's definition of NULL */ |
320054e8 DG |
23 | #ifdef __cplusplus |
24 | #define NULL 0L | |
25 | #else | |
26 | #define NULL ((void*)0) | |
27 | #endif | |
28 | #else | |
29 | #define __need_NULL | |
30 | #include <stddef.h> | |
31 | #endif | |
32 | ||
33 | #define __NEED_size_t | |
34 | #define __NEED_ssize_t | |
35 | #define __NEED_uid_t | |
36 | #define __NEED_gid_t | |
37 | #define __NEED_off_t | |
38 | #define __NEED_pid_t | |
39 | #define __NEED_intptr_t | |
40 | #define __NEED_useconds_t | |
41 | ||
42 | #include <bits/alltypes.h> | |
43 | ||
e5f14be3 | 44 | #ifdef __wasilibc_unmodified_upstream /* WASI has no pipe */ |
320054e8 DG |
45 | int pipe(int [2]); |
46 | int pipe2(int [2], int); | |
47 | #endif | |
48 | int close(int); | |
49 | int posix_close(int, int); | |
e5f14be3 | 50 | #ifdef __wasilibc_unmodified_upstream /* WASI has no dup */ |
320054e8 DG |
51 | int dup(int); |
52 | int dup2(int, int); | |
53 | int dup3(int, int, int); | |
54 | #endif | |
55 | off_t lseek(int, off_t, int); | |
cf366c06 DG |
56 | #ifdef __wasilibc_unmodified_upstream /* Optimize the readonly case of lseek */ |
57 | #else | |
7d2354e7 DG |
58 | off_t __wasilibc_tell(int); |
59 | ||
60 | #ifndef __cplusplus | |
cf366c06 DG |
61 | /* |
62 | * Optimize lseek in the case where it's just returning the current offset. | |
63 | * This avoids importing `__wasi_fd_seek` altogether in many common cases. | |
7d2354e7 DG |
64 | * |
65 | * But don't do this for C++ because a simple macro wouldn't handle namespaces | |
66 | * correctly: | |
67 | * - User code could qualify the `lseek` call with `::`. | |
68 | * - There may be another `lseek` in scope from a `using` declaration. | |
cf366c06 | 69 | */ |
cf366c06 DG |
70 | #define lseek(fd, offset, whence) \ |
71 | ({ \ | |
72 | off_t __f = (fd); \ | |
73 | off_t __o = (offset); \ | |
74 | off_t __w = (whence); \ | |
75 | __builtin_constant_p((offset)) && \ | |
76 | __builtin_constant_p((whence)) && \ | |
77 | __o == 0 && \ | |
78 | __w == SEEK_CUR \ | |
79 | ? __wasilibc_tell(__f) \ | |
80 | : lseek(__f, __o, __w); \ | |
81 | }) | |
82 | #endif | |
7d2354e7 | 83 | #endif |
320054e8 DG |
84 | int fsync(int); |
85 | int fdatasync(int); | |
86 | ||
87 | ssize_t read(int, void *, size_t); | |
88 | ssize_t write(int, const void *, size_t); | |
89 | ssize_t pread(int, void *, size_t, off_t); | |
90 | ssize_t pwrite(int, const void *, size_t, off_t); | |
91 | ||
e5f14be3 | 92 | #ifdef __wasilibc_unmodified_upstream /* WASI has no chown */ |
320054e8 DG |
93 | int chown(const char *, uid_t, gid_t); |
94 | int fchown(int, uid_t, gid_t); | |
95 | int lchown(const char *, uid_t, gid_t); | |
96 | int fchownat(int, const char *, uid_t, gid_t, int); | |
97 | #endif | |
98 | ||
99 | int link(const char *, const char *); | |
100 | int linkat(int, const char *, int, const char *, int); | |
101 | int symlink(const char *, const char *); | |
102 | int symlinkat(const char *, int, const char *); | |
103 | ssize_t readlink(const char *__restrict, char *__restrict, size_t); | |
104 | ssize_t readlinkat(int, const char *__restrict, char *__restrict, size_t); | |
105 | int unlink(const char *); | |
106 | int unlinkat(int, const char *, int); | |
107 | int rmdir(const char *); | |
108 | int truncate(const char *, off_t); | |
109 | int ftruncate(int, off_t); | |
110 | ||
e5f14be3 | 111 | #ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */ |
320054e8 DG |
112 | #define F_OK 0 |
113 | #define R_OK 4 | |
114 | #define W_OK 2 | |
115 | #define X_OK 1 | |
116 | #endif | |
117 | ||
118 | int access(const char *, int); | |
119 | int faccessat(int, const char *, int, int); | |
120 | ||
e5f14be3 | 121 | #ifdef __wasilibc_unmodified_upstream /* WASI has no cwd */ |
320054e8 DG |
122 | int chdir(const char *); |
123 | int fchdir(int); | |
124 | char *getcwd(char *, size_t); | |
125 | #endif | |
126 | ||
e5f14be3 | 127 | #ifdef __wasilibc_unmodified_upstream /* WASI has no signals */ |
320054e8 DG |
128 | unsigned alarm(unsigned); |
129 | #endif | |
130 | unsigned sleep(unsigned); | |
5a7ba74c | 131 | #ifdef __wasilibc_unmodified_upstream /* WASI has no pause */ |
320054e8 | 132 | int pause(void); |
5a7ba74c | 133 | #endif |
320054e8 | 134 | |
e5f14be3 | 135 | #ifdef __wasilibc_unmodified_upstream /* WASI has no fork/exec */ |
320054e8 DG |
136 | pid_t fork(void); |
137 | int execve(const char *, char *const [], char *const []); | |
138 | int execv(const char *, char *const []); | |
139 | int execle(const char *, const char *, ...); | |
140 | int execl(const char *, const char *, ...); | |
141 | int execvp(const char *, char *const []); | |
142 | int execlp(const char *, const char *, ...); | |
143 | int fexecve(int, char *const [], char *const []); | |
144 | #endif | |
145 | _Noreturn void _exit(int); | |
146 | ||
e5f14be3 | 147 | #ifdef __wasilibc_unmodified_upstream /* WASI has no getpid etc. */ |
320054e8 DG |
148 | pid_t getpid(void); |
149 | pid_t getppid(void); | |
150 | pid_t getpgrp(void); | |
151 | pid_t getpgid(pid_t); | |
152 | int setpgid(pid_t, pid_t); | |
153 | pid_t setsid(void); | |
154 | pid_t getsid(pid_t); | |
155 | #endif | |
e5f14be3 | 156 | #ifdef __wasilibc_unmodified_upstream /* WASI has no ttyname */ |
320054e8 DG |
157 | char *ttyname(int); |
158 | int ttyname_r(int, char *, size_t); | |
159 | #endif | |
160 | int isatty(int); | |
e5f14be3 | 161 | #ifdef __wasilibc_unmodified_upstream /* WASI has no process groups */ |
320054e8 DG |
162 | pid_t tcgetpgrp(int); |
163 | int tcsetpgrp(int, pid_t); | |
164 | #endif | |
165 | ||
e5f14be3 | 166 | #ifdef __wasilibc_unmodified_upstream /* WASI has no getuid etc. */ |
320054e8 DG |
167 | uid_t getuid(void); |
168 | uid_t geteuid(void); | |
169 | gid_t getgid(void); | |
170 | gid_t getegid(void); | |
171 | int getgroups(int, gid_t []); | |
172 | int setuid(uid_t); | |
173 | int seteuid(uid_t); | |
174 | int setgid(gid_t); | |
175 | int setegid(gid_t); | |
176 | #endif | |
177 | ||
178 | char *getlogin(void); | |
179 | int getlogin_r(char *, size_t); | |
180 | int gethostname(char *, size_t); | |
181 | char *ctermid(char *); | |
182 | ||
183 | int getopt(int, char * const [], const char *); | |
184 | extern char *optarg; | |
185 | extern int optind, opterr, optopt; | |
186 | ||
187 | long pathconf(const char *, int); | |
188 | long fpathconf(int, int); | |
189 | long sysconf(int); | |
190 | size_t confstr(int, char *, size_t); | |
191 | ||
192 | #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | |
193 | #define F_ULOCK 0 | |
194 | #define F_LOCK 1 | |
195 | #define F_TLOCK 2 | |
196 | #define F_TEST 3 | |
e5f14be3 | 197 | #ifdef __wasilibc_unmodified_upstream /* WASI has no setreuid */ |
320054e8 DG |
198 | int setreuid(uid_t, uid_t); |
199 | int setregid(gid_t, gid_t); | |
200 | #endif | |
e5f14be3 | 201 | #ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */ |
320054e8 DG |
202 | int lockf(int, int, off_t); |
203 | #endif | |
204 | long gethostid(void); | |
e5f14be3 | 205 | #ifdef __wasilibc_unmodified_upstream /* WASI has no nice, sync, or setpgrp */ |
320054e8 DG |
206 | int nice(int); |
207 | void sync(void); | |
208 | pid_t setpgrp(void); | |
209 | #endif | |
210 | char *crypt(const char *, const char *); | |
211 | void encrypt(char *, int); | |
212 | void swab(const void *__restrict, void *__restrict, ssize_t); | |
213 | #endif | |
214 | ||
215 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) \ | |
216 | || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700) | |
217 | int usleep(unsigned); | |
218 | unsigned ualarm(unsigned, unsigned); | |
219 | #endif | |
220 | ||
221 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | |
222 | #define L_SET 0 | |
223 | #define L_INCR 1 | |
224 | #define L_XTND 2 | |
e5f14be3 | 225 | #ifdef __wasilibc_unmodified_upstream /* WASI has no brk */ |
320054e8 DG |
226 | int brk(void *); |
227 | #endif | |
228 | void *sbrk(intptr_t); | |
e5f14be3 | 229 | #ifdef __wasilibc_unmodified_upstream /* WASI has no processes */ |
320054e8 DG |
230 | pid_t vfork(void); |
231 | int vhangup(void); | |
232 | int chroot(const char *); | |
233 | int getpagesize(void); | |
234 | int getdtablesize(void); | |
235 | int sethostname(const char *, size_t); | |
236 | int getdomainname(char *, size_t); | |
237 | int setdomainname(const char *, size_t); | |
238 | int setgroups(size_t, const gid_t *); | |
239 | char *getpass(const char *); | |
240 | int daemon(int, int); | |
241 | void setusershell(void); | |
242 | void endusershell(void); | |
243 | char *getusershell(void); | |
244 | int acct(const char *); | |
245 | long syscall(long, ...); | |
246 | int execvpe(const char *, char *const [], char *const []); | |
247 | int issetugid(void); | |
248 | #endif | |
249 | int getentropy(void *, size_t); | |
79a9b408 | 250 | extern int optreset; |
320054e8 DG |
251 | #endif |
252 | ||
253 | #ifdef _GNU_SOURCE | |
254 | extern char **environ; | |
e5f14be3 | 255 | #ifdef __wasilibc_unmodified_upstream /* WASI has no get/setresuid */ |
320054e8 DG |
256 | int setresuid(uid_t, uid_t, uid_t); |
257 | int setresgid(gid_t, gid_t, gid_t); | |
258 | int getresuid(uid_t *, uid_t *, uid_t *); | |
259 | int getresgid(gid_t *, gid_t *, gid_t *); | |
260 | #endif | |
e5f14be3 | 261 | #ifdef __wasilibc_unmodified_upstream /* WASI has no cwd */ |
320054e8 DG |
262 | char *get_current_dir_name(void); |
263 | #endif | |
e5f14be3 | 264 | #ifdef __wasilibc_unmodified_upstream /* WASI has no syncfs */ |
320054e8 DG |
265 | int syncfs(int); |
266 | #endif | |
e5f14be3 | 267 | #ifdef __wasilibc_unmodified_upstream /* WASI has no eaccess */ |
320054e8 DG |
268 | int euidaccess(const char *, int); |
269 | int eaccess(const char *, int); | |
79a9b408 | 270 | ssize_t copy_file_range(int, off_t *, int, off_t *, size_t, unsigned); |
320054e8 DG |
271 | #endif |
272 | #endif | |
273 | ||
274 | #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) | |
275 | #define lseek64 lseek | |
276 | #define pread64 pread | |
277 | #define pwrite64 pwrite | |
9f0d8e85 | 278 | #ifdef __wasilibc_unmodified_upstream /* WASI has no truncate */ |
320054e8 | 279 | #define truncate64 truncate |
9f0d8e85 | 280 | #endif |
320054e8 | 281 | #define ftruncate64 ftruncate |
9f0d8e85 | 282 | #ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */ |
320054e8 | 283 | #define lockf64 lockf |
9f0d8e85 | 284 | #endif |
320054e8 DG |
285 | #define off64_t off_t |
286 | #endif | |
287 | ||
288 | #define POSIX_CLOSE_RESTART 0 | |
289 | ||
290 | #define _XOPEN_VERSION 700 | |
291 | #define _XOPEN_UNIX 1 | |
292 | #define _XOPEN_ENH_I18N 1 | |
293 | ||
294 | #define _POSIX_VERSION 200809L | |
295 | #define _POSIX2_VERSION _POSIX_VERSION | |
296 | ||
297 | #define _POSIX_ADVISORY_INFO _POSIX_VERSION | |
298 | #define _POSIX_CHOWN_RESTRICTED 1 | |
299 | #define _POSIX_IPV6 _POSIX_VERSION | |
e5f14be3 | 300 | #ifdef __wasilibc_unmodified_upstream /* WASI has no processes, mmap, or mq */ |
320054e8 DG |
301 | #define _POSIX_JOB_CONTROL 1 |
302 | #define _POSIX_MAPPED_FILES _POSIX_VERSION | |
303 | #define _POSIX_MEMLOCK _POSIX_VERSION | |
304 | #define _POSIX_MEMLOCK_RANGE _POSIX_VERSION | |
305 | #define _POSIX_MEMORY_PROTECTION _POSIX_VERSION | |
306 | #define _POSIX_MESSAGE_PASSING _POSIX_VERSION | |
307 | #endif | |
308 | #define _POSIX_FSYNC _POSIX_VERSION | |
309 | #define _POSIX_NO_TRUNC 1 | |
e5f14be3 | 310 | #ifdef __wasilibc_unmodified_upstream /* WASI has no raw sockets */ |
320054e8 DG |
311 | #define _POSIX_RAW_SOCKETS _POSIX_VERSION |
312 | #endif | |
313 | #define _POSIX_REALTIME_SIGNALS _POSIX_VERSION | |
314 | #define _POSIX_REGEXP 1 | |
e5f14be3 | 315 | #ifdef __wasilibc_unmodified_upstream /* WASI has no processes */ |
320054e8 DG |
316 | #define _POSIX_SAVED_IDS 1 |
317 | #define _POSIX_SHELL 1 | |
318 | #define _POSIX_SPAWN _POSIX_VERSION | |
319 | #endif | |
320 | #define _POSIX_VDISABLE 0 | |
321 | ||
322 | #define _POSIX_THREADS _POSIX_VERSION | |
323 | #define _POSIX_THREAD_PROCESS_SHARED _POSIX_VERSION | |
324 | #define _POSIX_THREAD_SAFE_FUNCTIONS _POSIX_VERSION | |
325 | #define _POSIX_THREAD_ATTR_STACKADDR _POSIX_VERSION | |
326 | #define _POSIX_THREAD_ATTR_STACKSIZE _POSIX_VERSION | |
327 | #define _POSIX_THREAD_PRIORITY_SCHEDULING _POSIX_VERSION | |
328 | #define _POSIX_THREAD_CPUTIME _POSIX_VERSION | |
329 | #define _POSIX_TIMERS _POSIX_VERSION | |
330 | #define _POSIX_TIMEOUTS _POSIX_VERSION | |
331 | #define _POSIX_MONOTONIC_CLOCK _POSIX_VERSION | |
332 | #define _POSIX_CPUTIME _POSIX_VERSION | |
333 | #define _POSIX_CLOCK_SELECTION _POSIX_VERSION | |
334 | #define _POSIX_BARRIERS _POSIX_VERSION | |
335 | #define _POSIX_SPIN_LOCKS _POSIX_VERSION | |
336 | #define _POSIX_READER_WRITER_LOCKS _POSIX_VERSION | |
e5f14be3 | 337 | #ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX async I/O, semaphores, or shared memory */ |
320054e8 DG |
338 | #define _POSIX_ASYNCHRONOUS_IO _POSIX_VERSION |
339 | #define _POSIX_SEMAPHORES _POSIX_VERSION | |
340 | #define _POSIX_SHARED_MEMORY_OBJECTS _POSIX_VERSION | |
341 | #endif | |
342 | ||
343 | #define _POSIX2_C_BIND _POSIX_VERSION | |
344 | ||
345 | #include <bits/posix.h> | |
346 | ||
347 | ||
348 | ||
349 | #define _PC_LINK_MAX 0 | |
350 | #define _PC_MAX_CANON 1 | |
351 | #define _PC_MAX_INPUT 2 | |
352 | #define _PC_NAME_MAX 3 | |
353 | #define _PC_PATH_MAX 4 | |
354 | #define _PC_PIPE_BUF 5 | |
355 | #define _PC_CHOWN_RESTRICTED 6 | |
356 | #define _PC_NO_TRUNC 7 | |
357 | #define _PC_VDISABLE 8 | |
358 | #define _PC_SYNC_IO 9 | |
359 | #define _PC_ASYNC_IO 10 | |
360 | #define _PC_PRIO_IO 11 | |
361 | #define _PC_SOCK_MAXBUF 12 | |
362 | #define _PC_FILESIZEBITS 13 | |
363 | #define _PC_REC_INCR_XFER_SIZE 14 | |
364 | #define _PC_REC_MAX_XFER_SIZE 15 | |
365 | #define _PC_REC_MIN_XFER_SIZE 16 | |
366 | #define _PC_REC_XFER_ALIGN 17 | |
367 | #define _PC_ALLOC_SIZE_MIN 18 | |
368 | #define _PC_SYMLINK_MAX 19 | |
369 | #define _PC_2_SYMLINKS 20 | |
370 | ||
371 | #define _SC_ARG_MAX 0 | |
372 | #define _SC_CHILD_MAX 1 | |
373 | #define _SC_CLK_TCK 2 | |
374 | #define _SC_NGROUPS_MAX 3 | |
375 | #define _SC_OPEN_MAX 4 | |
376 | #define _SC_STREAM_MAX 5 | |
377 | #define _SC_TZNAME_MAX 6 | |
378 | #define _SC_JOB_CONTROL 7 | |
379 | #define _SC_SAVED_IDS 8 | |
380 | #define _SC_REALTIME_SIGNALS 9 | |
381 | #define _SC_PRIORITY_SCHEDULING 10 | |
382 | #define _SC_TIMERS 11 | |
383 | #define _SC_ASYNCHRONOUS_IO 12 | |
384 | #define _SC_PRIORITIZED_IO 13 | |
385 | #define _SC_SYNCHRONIZED_IO 14 | |
386 | #define _SC_FSYNC 15 | |
387 | #define _SC_MAPPED_FILES 16 | |
388 | #define _SC_MEMLOCK 17 | |
389 | #define _SC_MEMLOCK_RANGE 18 | |
390 | #define _SC_MEMORY_PROTECTION 19 | |
391 | #define _SC_MESSAGE_PASSING 20 | |
392 | #define _SC_SEMAPHORES 21 | |
393 | #define _SC_SHARED_MEMORY_OBJECTS 22 | |
394 | #define _SC_AIO_LISTIO_MAX 23 | |
395 | #define _SC_AIO_MAX 24 | |
396 | #define _SC_AIO_PRIO_DELTA_MAX 25 | |
397 | #define _SC_DELAYTIMER_MAX 26 | |
398 | #define _SC_MQ_OPEN_MAX 27 | |
399 | #define _SC_MQ_PRIO_MAX 28 | |
400 | #define _SC_VERSION 29 | |
401 | #define _SC_PAGE_SIZE 30 | |
402 | #define _SC_PAGESIZE 30 /* !! */ | |
403 | #define _SC_RTSIG_MAX 31 | |
404 | #define _SC_SEM_NSEMS_MAX 32 | |
405 | #define _SC_SEM_VALUE_MAX 33 | |
406 | #define _SC_SIGQUEUE_MAX 34 | |
407 | #define _SC_TIMER_MAX 35 | |
408 | #define _SC_BC_BASE_MAX 36 | |
409 | #define _SC_BC_DIM_MAX 37 | |
410 | #define _SC_BC_SCALE_MAX 38 | |
411 | #define _SC_BC_STRING_MAX 39 | |
412 | #define _SC_COLL_WEIGHTS_MAX 40 | |
413 | #define _SC_EXPR_NEST_MAX 42 | |
414 | #define _SC_LINE_MAX 43 | |
415 | #define _SC_RE_DUP_MAX 44 | |
416 | #define _SC_2_VERSION 46 | |
417 | #define _SC_2_C_BIND 47 | |
418 | #define _SC_2_C_DEV 48 | |
419 | #define _SC_2_FORT_DEV 49 | |
420 | #define _SC_2_FORT_RUN 50 | |
421 | #define _SC_2_SW_DEV 51 | |
422 | #define _SC_2_LOCALEDEF 52 | |
423 | #define _SC_UIO_MAXIOV 60 /* !! */ | |
424 | #define _SC_IOV_MAX 60 | |
425 | #define _SC_THREADS 67 | |
426 | #define _SC_THREAD_SAFE_FUNCTIONS 68 | |
427 | #define _SC_GETGR_R_SIZE_MAX 69 | |
428 | #define _SC_GETPW_R_SIZE_MAX 70 | |
429 | #define _SC_LOGIN_NAME_MAX 71 | |
430 | #define _SC_TTY_NAME_MAX 72 | |
431 | #define _SC_THREAD_DESTRUCTOR_ITERATIONS 73 | |
432 | #define _SC_THREAD_KEYS_MAX 74 | |
433 | #define _SC_THREAD_STACK_MIN 75 | |
434 | #define _SC_THREAD_THREADS_MAX 76 | |
435 | #define _SC_THREAD_ATTR_STACKADDR 77 | |
436 | #define _SC_THREAD_ATTR_STACKSIZE 78 | |
437 | #define _SC_THREAD_PRIORITY_SCHEDULING 79 | |
438 | #define _SC_THREAD_PRIO_INHERIT 80 | |
439 | #define _SC_THREAD_PRIO_PROTECT 81 | |
440 | #define _SC_THREAD_PROCESS_SHARED 82 | |
441 | #define _SC_NPROCESSORS_CONF 83 | |
442 | #define _SC_NPROCESSORS_ONLN 84 | |
443 | #define _SC_PHYS_PAGES 85 | |
444 | #define _SC_AVPHYS_PAGES 86 | |
445 | #define _SC_ATEXIT_MAX 87 | |
446 | #define _SC_PASS_MAX 88 | |
447 | #define _SC_XOPEN_VERSION 89 | |
448 | #define _SC_XOPEN_XCU_VERSION 90 | |
449 | #define _SC_XOPEN_UNIX 91 | |
450 | #define _SC_XOPEN_CRYPT 92 | |
451 | #define _SC_XOPEN_ENH_I18N 93 | |
452 | #define _SC_XOPEN_SHM 94 | |
453 | #define _SC_2_CHAR_TERM 95 | |
454 | #define _SC_2_UPE 97 | |
455 | #define _SC_XOPEN_XPG2 98 | |
456 | #define _SC_XOPEN_XPG3 99 | |
457 | #define _SC_XOPEN_XPG4 100 | |
458 | #define _SC_NZERO 109 | |
459 | #define _SC_XBS5_ILP32_OFF32 125 | |
460 | #define _SC_XBS5_ILP32_OFFBIG 126 | |
461 | #define _SC_XBS5_LP64_OFF64 127 | |
462 | #define _SC_XBS5_LPBIG_OFFBIG 128 | |
463 | #define _SC_XOPEN_LEGACY 129 | |
464 | #define _SC_XOPEN_REALTIME 130 | |
465 | #define _SC_XOPEN_REALTIME_THREADS 131 | |
466 | #define _SC_ADVISORY_INFO 132 | |
467 | #define _SC_BARRIERS 133 | |
468 | #define _SC_CLOCK_SELECTION 137 | |
469 | #define _SC_CPUTIME 138 | |
470 | #define _SC_THREAD_CPUTIME 139 | |
471 | #define _SC_MONOTONIC_CLOCK 149 | |
472 | #define _SC_READER_WRITER_LOCKS 153 | |
473 | #define _SC_SPIN_LOCKS 154 | |
474 | #define _SC_REGEXP 155 | |
475 | #define _SC_SHELL 157 | |
476 | #define _SC_SPAWN 159 | |
477 | #define _SC_SPORADIC_SERVER 160 | |
478 | #define _SC_THREAD_SPORADIC_SERVER 161 | |
479 | #define _SC_TIMEOUTS 164 | |
480 | #define _SC_TYPED_MEMORY_OBJECTS 165 | |
481 | #define _SC_2_PBS 168 | |
482 | #define _SC_2_PBS_ACCOUNTING 169 | |
483 | #define _SC_2_PBS_LOCATE 170 | |
484 | #define _SC_2_PBS_MESSAGE 171 | |
485 | #define _SC_2_PBS_TRACK 172 | |
486 | #define _SC_SYMLOOP_MAX 173 | |
487 | #define _SC_STREAMS 174 | |
488 | #define _SC_2_PBS_CHECKPOINT 175 | |
489 | #define _SC_V6_ILP32_OFF32 176 | |
490 | #define _SC_V6_ILP32_OFFBIG 177 | |
491 | #define _SC_V6_LP64_OFF64 178 | |
492 | #define _SC_V6_LPBIG_OFFBIG 179 | |
493 | #define _SC_HOST_NAME_MAX 180 | |
494 | #define _SC_TRACE 181 | |
495 | #define _SC_TRACE_EVENT_FILTER 182 | |
496 | #define _SC_TRACE_INHERIT 183 | |
497 | #define _SC_TRACE_LOG 184 | |
498 | ||
499 | #define _SC_IPV6 235 | |
500 | #define _SC_RAW_SOCKETS 236 | |
501 | #define _SC_V7_ILP32_OFF32 237 | |
502 | #define _SC_V7_ILP32_OFFBIG 238 | |
503 | #define _SC_V7_LP64_OFF64 239 | |
504 | #define _SC_V7_LPBIG_OFFBIG 240 | |
505 | #define _SC_SS_REPL_MAX 241 | |
506 | #define _SC_TRACE_EVENT_NAME_MAX 242 | |
507 | #define _SC_TRACE_NAME_MAX 243 | |
508 | #define _SC_TRACE_SYS_MAX 244 | |
509 | #define _SC_TRACE_USER_EVENT_MAX 245 | |
510 | #define _SC_XOPEN_STREAMS 246 | |
511 | #define _SC_THREAD_ROBUST_PRIO_INHERIT 247 | |
512 | #define _SC_THREAD_ROBUST_PRIO_PROTECT 248 | |
513 | ||
514 | #define _CS_PATH 0 | |
515 | #define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS 1 | |
516 | #define _CS_GNU_LIBC_VERSION 2 | |
517 | #define _CS_GNU_LIBPTHREAD_VERSION 3 | |
518 | #define _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS 4 | |
519 | #define _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS 5 | |
520 | ||
521 | #define _CS_POSIX_V6_ILP32_OFF32_CFLAGS 1116 | |
522 | #define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS 1117 | |
523 | #define _CS_POSIX_V6_ILP32_OFF32_LIBS 1118 | |
524 | #define _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS 1119 | |
525 | #define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS 1120 | |
526 | #define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS 1121 | |
527 | #define _CS_POSIX_V6_ILP32_OFFBIG_LIBS 1122 | |
528 | #define _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS 1123 | |
529 | #define _CS_POSIX_V6_LP64_OFF64_CFLAGS 1124 | |
530 | #define _CS_POSIX_V6_LP64_OFF64_LDFLAGS 1125 | |
531 | #define _CS_POSIX_V6_LP64_OFF64_LIBS 1126 | |
532 | #define _CS_POSIX_V6_LP64_OFF64_LINTFLAGS 1127 | |
533 | #define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS 1128 | |
534 | #define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS 1129 | |
535 | #define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS 1130 | |
536 | #define _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS 1131 | |
537 | #define _CS_POSIX_V7_ILP32_OFF32_CFLAGS 1132 | |
538 | #define _CS_POSIX_V7_ILP32_OFF32_LDFLAGS 1133 | |
539 | #define _CS_POSIX_V7_ILP32_OFF32_LIBS 1134 | |
540 | #define _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS 1135 | |
541 | #define _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS 1136 | |
542 | #define _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS 1137 | |
543 | #define _CS_POSIX_V7_ILP32_OFFBIG_LIBS 1138 | |
544 | #define _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS 1139 | |
545 | #define _CS_POSIX_V7_LP64_OFF64_CFLAGS 1140 | |
546 | #define _CS_POSIX_V7_LP64_OFF64_LDFLAGS 1141 | |
547 | #define _CS_POSIX_V7_LP64_OFF64_LIBS 1142 | |
548 | #define _CS_POSIX_V7_LP64_OFF64_LINTFLAGS 1143 | |
549 | #define _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS 1144 | |
550 | #define _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS 1145 | |
551 | #define _CS_POSIX_V7_LPBIG_OFFBIG_LIBS 1146 | |
552 | #define _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS 1147 | |
553 | #define _CS_V6_ENV 1148 | |
554 | #define _CS_V7_ENV 1149 | |
555 | ||
556 | #ifdef __cplusplus | |
557 | } | |
558 | #endif | |
559 | ||
560 | #endif |