1 #if !defined ISO && !defined ISO99 && !defined ISO11
9 constant _POSIX_VERSION
10 #if defined POSIX || defined XPG4 || defined XPG42 || defined UNIX98
11 constant _POSIX2_C_VERSION
14 optional-constant _XOPEN_VERSION
15 optional-constant _XOPEN_XCU_VERSION
19 optional-constant _POSIX2_C_BIND
21 optional-constant _POSIX2_CHAR_TERM
22 optional-constant _POSIX2_LOCALEDEF
23 optional-constant _POSIX2_UPE
25 optional-constant _POSIX2_VERSION
29 optional-constant _XOPEN_XPG2
30 optional-constant _XOPEN_XPG3
31 optional-constant _XOPEN_XPG4
32 optional-constant _XOPEN_UNIX
36 optional-constant _POSIX_ADVISORY_INFO
38 optional-constant _POSIX_ASYNCHRONOUS_IO
40 optional-constant _POSIX_BARRIERS
42 optional-constant _POSIX_CHOWN_RESTRICTED
44 optional-constant _POSIX_CLOCK_SELECTION
45 optional-constant _POSIX_CPUTIME
47 optional-constant _POSIX_NO_TRUNC
48 optional-constant _POSIX_VDISABLE
49 optional-constant _POSIX_SAVED_IDS
50 optional-constant _POSIX_JOB_CONTROL
52 optional-constant _POSIX_MONOTONIC_CLOCK
53 optional-constant _POSIX_READER_WRITER_LOCKS
54 optional-constant _POSIX_SHELL
55 optional-constant _POSIX_SPAWN
56 optional-constant _POSIX_SPIN_LOCKS
57 optional-constant _POSIX_SPORADIC_SERVER
58 optional-constant _POSIX_THREAD_CPUTIME
59 optional-constant _POSIX_TYPED_MEMORY_OBJECTS
62 optional-constant _POSIX_THREADS
63 optional-constant _POSIX_THREAD_ATTR_STACKADDR
64 optional-constant _POSIX_THREAD_ATTR_STACKSIZE
65 optional-constant _POSIX_THREAD_PROCESS_SHARED
66 optional-constant _POSIX_THREAD_SAFE_FUNCTIONS
68 optional-constant _POSIX_THREAD_SPORADIC_SERVER
72 optional-constant _POSIX_V6_ILP32_OFF32
73 optional-constant _POSIX_V6_ILP32_OFFBIG
74 optional-constant _POSIX_V6_LP64_OFF64
75 optional-constant _POSIX_V6_LPBIG_OFFBIG
77 # if defined XOPEN2K8 || defined POSIX2008
78 optional-constant _POSIX_V7_ILP32_OFF32
79 optional-constant _POSIX_V7_ILP32_OFFBIG
80 optional-constant _POSIX_V7_LP64_OFF64
81 optional-constant _POSIX_V7_LPBIG_OFFBIG
84 optional-constant _POSIX2_C_DEV
85 optional-constant _POSIX2_FORT_DEV
86 optional-constant _POSIX2_FORT_RUN
87 optional-constant _POSIX2_SW_DEV
88 # if !defined POSIX && !defined POSIX2008
89 optional-constant _XOPEN_CRYPT
90 optional-constant _XOPEN_ENH_I18N
91 optional-constant _XOPEN_LEGACY
92 optional-constant _XOPEN_REALTIME
93 optional-constant _XOPEN_REALTIME_THREADS
94 optional-constant _XOPEN_SHM
95 optional-constant _XOPEN_STREAMS
98 allow _XBS5_ILP32_OFF32
99 allow _XBS5_ILP32_OFBIG
100 allow _XBS5_LP64_OFF64
101 allow _XBS5_LPBIG_OFFBIG
103 optional-constant _POSIX_MEMLOCK
104 optional-constant _POSIX_MEMLOCK_RANGE
105 optional-constant _POSIX_MESSAGE_PASSING
106 optional-constant _POSIX_PRIORITY_SCHEDULING
107 optional-constant _POSIX_REALTIME_SIGNALS
108 optional-constant _POSIX_SEMAPHORES
109 optional-constant _POSIX_SHARED_MEMORY_OBJECTS
110 optional-constant _POSIX_SYNCHRONIZED_IO
111 optional-constant _POSIX_TIMERS
113 optional-constant _POSIX_TIMEOUTS
116 optional-constant _POSIX_FSYNC
117 optional-constant _POSIX_MAPPED_FILES
118 optional-constant _POSIX_MEMORY_PROTECTION
120 optional-constant _POSIX_PRIORITIZED_IO
122 optional-constant _POSIX_THREAD_PRIORITY_SCHEDULING
123 optional-constant _POSIX_THREAD_PRIO_INHERIT
124 optional-constant _POSIX_THREAD_PRIO_PROTECT
126 optional-constant _POSIX_ASYNC_IO
127 optional-constant _POSIX_PRIO_IO
128 optional-constant _POSIX_SYNC_IO
131 optional-constant _POSIX2_PBS
132 optional-constant _POSIX2_PBS_ACCOUNTING
133 optional-constant _POSIX2_PBS_CHECKPOINT
134 optional-constant _POSIX2_PBS_LOCATE
135 optional-constant _POSIX2_PBS_MESSAGE
136 optional-constant _POSIX2_PBS_TRACK
140 optional-constant _POSIX_TIMESTAMP_RESOLUTION
152 constant _CS_XBS5_ILP32_OFF32_CFLAGS
153 constant _CS_XBS5_ILP32_OFF32_LDFLAGS
154 constant _CS_XBS5_ILP32_OFF32_LIBS
155 constant _CS_XBS5_ILP32_OFF32_LINTFLAGS
156 constant _CS_XBS5_ILP32_OFFBIG_CFLAGS
157 constant _CS_XBS5_ILP32_OFFBIG_LDFLAGS
158 constant _CS_XBS5_ILP32_OFFBIG_LIBS
159 constant _CS_XBS5_ILP32_OFFBIG_LINTFLAGS
160 constant _CS_XBS5_LP64_OFF64_CFLAGS
161 constant _CS_XBS5_LP64_OFF64_LDFLAGS
162 constant _CS_XBS5_LP64_OFF64_LIBS
163 constant _CS_XBS5_LP64_OFF64_LINTFLAGS
164 constant _CS_XBS5_LPBIG_OFFBIG_CFLAGS
165 constant _CS_XBS5_LPBIG_OFFBIG_LDFLAGS
166 constant _CS_XBS5_LPBIG_OFFBIG_LIBS
167 constant _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS
175 constant _SC_2_C_BIND
179 constant _SC_2_C_VERSION
181 constant _SC_2_CHAR_TERM
182 constant _SC_2_FORT_DEV
183 constant _SC_2_FORT_RUN
184 constant _SC_2_LOCALEDEF
187 constant _SC_2_PBS_ACCOUNTING
188 constant _SC_2_PBS_CHECKPOINT
189 constant _SC_2_PBS_LOCATE
190 constant _SC_2_PBS_MESSAGE
191 constant _SC_2_PBS_TRACK
193 constant _SC_2_SW_DEV
195 constant _SC_2_VERSION
197 constant _SC_AIO_LISTIO_MAX
199 constant _SC_AIO_PRIO_DELTA_MAX
200 constant _SC_ASYNCHRONOUS_IO
202 constant _SC_ATEXIT_MAX
203 constant _SC_BARRIERS
206 constant _SC_BC_BASE_MAX
207 constant _SC_BC_DIM_MAX
208 constant _SC_BC_SCALE_MAX
209 constant _SC_BC_STRING_MAX
210 constant _SC_CHILD_MAX
213 constant _SC_CLOCK_SELECTION
215 constant _SC_COLL_WEIGHTS_MAX
216 constant _SC_DELAYTIMER_MAX
218 constant _SC_DEVICE_IO
219 constant _SC_DEVICE_SPECIFIC
220 constant _SC_DEVICE_SPECIFIC_R
222 constant _SC_EXPR_NEST_MAX
226 constant _SC_FILE_ATTRIBUTES
227 constant _SC_FILE_LOCKING
228 constant _SC_FILE_SYSTEM
231 constant _SC_GETGR_R_SIZE_MAX
232 constant _SC_GETPW_R_SIZE_MAX
236 constant _SC_JOB_CONTROL
237 constant _SC_LINE_MAX
238 constant _SC_LOGIN_NAME_MAX
239 constant _SC_MAPPED_FILES
241 constant _SC_MEMLOCK_RANGE
242 constant _SC_MEMORY_PROTECTION
243 constant _SC_MESSAGE_PASSING
245 constant _SC_MONOTONIC_CLOCK
247 constant _SC_MQ_OPEN_MAX
248 constant _SC_MQ_PRIO_MAX
250 constant _SC_NETWORKING
252 constant _SC_NGROUPS_MAX
253 constant _SC_OPEN_MAX
254 constant _SC_PAGESIZE
256 constant _SC_PAGE_SIZE
257 constant _SC_PASS_MAX
260 constant _SC_PRIORITIZED_IO
261 constant _SC_PRIORITY_SCHEDULING
262 constant _SC_RE_DUP_MAX
264 constant _SC_READER_WRITER_LOCKS
266 constant _SC_REALTIME_SIGNALS
270 constant _SC_RTSIG_MAX
271 constant _SC_SAVED_IDS
272 constant _SC_SEMAPHORES
273 constant _SC_SEM_NSEMS_MAX
274 constant _SC_SEM_VALUE_MAX
275 constant _SC_SHARED_MEMORY_OBJECTS
280 constant _SC_SIGQUEUE_MAX
282 constant _SC_SINGLE_PROCESS
283 constant _SC_SPIN_LOCKS
285 constant _SC_STREAM_MAX
286 constant _SC_SYNCHRONIZED_IO
288 constant _SC_THREAD_ATTR_STACKADDR
289 constant _SC_THREAD_ATTR_STACKSIZE
290 constant _SC_THREAD_DESTRUCTOR_ITERATIONS
291 constant _SC_THREAD_KEYS_MAX
292 constant _SC_THREAD_PRIORITY_SCHEDULING
293 constant _SC_THREAD_PRIO_INHERIT
294 constant _SC_THREAD_PRIO_PROTECT
295 constant _SC_THREAD_PROCESS_SHARED
296 constant _SC_THREAD_SAFE_FUNCTIONS
297 constant _SC_THREAD_STACK_MIN
298 constant _SC_THREAD_THREADS_MAX
300 constant _SC_TIMER_MAX
301 constant _SC_TTY_NAME_MAX
303 constant _SC_TYPED_MEMORY_OBJECTS
305 constant _SC_TZNAME_MAX
307 constant _SC_USER_GROUPS
308 constant _SC_USER_GROUPS_R
311 constant _SC_V6_ILP32_OFF32
312 constant _SC_V6_ILP32_OFFBIG
313 constant _SC_V6_LP64_OFF64
314 constant _SC_V6_LPBIG_OFFBIG
316 # if defined XOPEN2K8 || defined POSIX2008
317 constant _SC_V7_ILP32_OFF32
318 constant _SC_V7_ILP32_OFFBIG
319 constant _SC_V7_LP64_OFF64
320 constant _SC_V7_LPBIG_OFFBIG
323 # if !defined POSIX && !defined POSIX2008
324 constant _SC_XOPEN_VERSION
325 constant _SC_XOPEN_CRYPT
326 constant _SC_XOPEN_ENH_I18N
327 constant _SC_XOPEN_SHM
328 constant _SC_XOPEN_UNIX
329 constant _SC_XOPEN_XCU_VERSION
330 constant _SC_XOPEN_LEGACY
331 constant _SC_XOPEN_REALTIME
332 constant _SC_XOPEN_REALTIME_THREADS
336 constant _SC_XBS5_ILP32_OFF32
337 constant _SC_XBS5_ILP32_OFFBIG
338 constant _SC_XBS5_LP64_OFF64
339 constant _SC_XBS5_LPBIG_OFFBIG
342 constant _CS_POSIX_V6_ILP32_OFF32_CFLAGS
343 constant _CS_POSIX_V6_ILP32_OFF32_LDFLAGS
344 constant _CS_POSIX_V6_ILP32_OFF32_LIBS
345 constant _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS
346 constant _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS
347 constant _CS_POSIX_V6_ILP32_OFFBIG_LIBS
348 constant _CS_POSIX_V6_LP64_OFF64_CFLAGS
349 constant _CS_POSIX_V6_LP64_OFF64_LDFLAGS
350 constant _CS_POSIX_V6_LP64_OFF64_LIBS
351 constant _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS
352 constant _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS
353 constant _CS_POSIX_V6_LPBIG_OFFBIG_LIBS
354 constant _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS
357 # if defined XOPEN2K8 || defined POSIX2008
358 constant _CS_POSIX_V7_ILP32_OFF32_CFLAGS
359 constant _CS_POSIX_V7_ILP32_OFF32_LDFLAGS
360 constant _CS_POSIX_V7_ILP32_OFF32_LIBS
361 constant _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS
362 constant _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS
363 constant _CS_POSIX_V7_ILP32_OFFBIG_LIBS
364 constant _CS_POSIX_V7_LP64_OFF64_CFLAGS
365 constant _CS_POSIX_V7_LP64_OFF64_LDFLAGS
366 constant _CS_POSIX_V7_LP64_OFF64_LIBS
367 constant _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS
368 constant _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS
369 constant _CS_POSIX_V7_LPBIG_OFFBIG_LIBS
370 constant _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS
374 constant _SC_THREAD_ROBUST_PRIO_INHERIT
375 constant _SC_THREAD_ROBUST_PRIO_PROTECT
378 #if !defined XPG4 && !defined POSIX && !defined POSIX2008
385 constant _PC_ASYNC_IO
386 constant _PC_CHOWN_RESTRICTED
388 constant _PC_FILESIZEBITS
390 constant _PC_LINK_MAX
391 constant _PC_MAX_CANON
392 constant _PC_MAX_INPUT
393 constant _PC_NAME_MAX
394 constant _PC_NO_TRUNC
395 constant _PC_PATH_MAX
396 constant _PC_PIPE_BUF
399 constant _PC_REC_INCR_XFER_SIZE
400 constant _PC_REC_MAX_XFER_SIZE
401 constant _PC_REC_MIN_XFER_SIZE
402 constant _PC_REC_XFER_ALIGN
405 constant _PC_VDISABLE
407 constant STDIN_FILENO
408 constant STDOUT_FILENO
409 constant STDERR_FILENO
420 #if !defined POSIX && !defined XPG4
428 function int access (const char*, int)
429 function {unsigned int} alarm (unsigned int)
430 #if !defined XOPEN2K && !defined XOPEN2K8 && !defined XPG4 && !defined POSIX && !defined POSIX2008
431 function int brk (void*)
433 function int chdir (const char*)
434 #if defined XPG4 || defined XPG42 || defined UNIX98
435 function int chroot (const char*)
437 function int chown (const char*, uid_t, gid_t)
438 function int close (int)
439 function size_t confstr (int, char*, size_t)
440 #if !defined POSIX && !defined POSIX2008
441 function {char*} crypt (const char*, const char*)
443 #if defined XPG4 || defined XPG42 || defined UNIX98
444 function {char*} ctermid (char*)
445 function {char*} cuserid (char*)
450 function int dup (int)
451 function int dup2 (int, int)
452 #if !defined POSIX && !defined POSIX2008
453 function void encrypt (char[64], int)
455 function int execl (const char*, const char*, ...)
456 function int execle (const char*, const char*, ...)
457 function int execlp (const char*, const char*, ...)
458 function int execv (const char*, char *const[])
459 function int execve (const char*, char *const[], char *const[])
460 function int execvp (const char*, char *const[])
461 function void _exit (int)
462 # if defined XOPEN2K8 || defined POSIX2008
463 function int faccessat (int, const char*, int, int)
465 #if !defined XPG4 && !defined POSIX
466 function int fchown (int, uid_t, gid_t)
468 # if defined XOPEN2K8 || defined POSIX2008
469 function int fchownat (int, const char*, uid_t, gid_t, int)
471 #if !defined XPG4 && !defined POSIX
472 function int fchdir (int)
474 #if !defined XPG4 && !defined XPG42
475 function int fdatasync (int)
477 # if defined XOPEN2K8 || defined POSIX2008
478 function int fexecve (int, char *const[], char *const[])
480 function pid_t fork (void)
481 function {long int} fpathconf (int, int)
482 function int fsync (int)
484 function int ftruncate (int, off_t)
486 function {char*} getcwd (char*, size_t)
487 #if !defined XOPEN2K && !defined XOPEN2K8 && !defined XPG4 && !defined POSIX && !defined POSIX2008
488 function int getdtablesize (void)
490 function gid_t getegid (void)
491 function uid_t geteuid (void)
492 function gid_t getgid (void)
493 function int getgroups (int, gid_t[])
494 #if !defined XPG4 && !defined POSIX && !defined POSIX2008
495 function long gethostid (void)
497 #if !defined POSIX && !defined XPG4
498 function int gethostname (char*, size_t)
500 function {char*} getlogin (void)
501 #if !defined XPG4 && !defined XPG42
502 function int getlogin_r (char*, size_t)
504 function int getopt (int, char*const[], const char*)
505 #if defined XPG42 || defined UNIX98
506 function int getpagesize (void)
508 #if defined XPG4 || defined XPG42 || defined UNIX98
509 function {char*} getpass (const char*)
511 #if !defined XPG4 && !defined POSIX
512 function pid_t getpgid (pid_t)
514 function pid_t getpgrp (void)
515 function pid_t getpid (void)
516 function pid_t getppid (void)
517 #if !defined XPG4 && !defined POSIX
518 function pid_t getsid (pid_t)
520 function uid_t getuid (void)
521 #if defined XPG42 || defined UNIX98 || defined XOPEN2K
522 function {char*} getwd (char*)
524 function int isatty (int)
525 #if !defined XPG4 && !defined POSIX
526 function int lchown (const char*, uid_t, gid_t)
528 function int link (const char*, const char*)
529 # if defined XOPEN2K8 || defined POSIX2008
530 function int linkat (int, const char*, int, const char*, int)
532 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
533 function int lockf (int, int, off_t)
535 function off_t lseek (int, off_t, int)
536 # if !defined POSIX && !defined POSIX2008
537 function int nice (int)
539 function {long int} pathconf (const char*, int)
540 function int pause (void)
541 function int pipe (int[2])
542 #if !defined POSIX && !defined XPG4 && !defined XPG42
543 function ssize_t pread (int, void*, size_t, off_t)
545 #if !defined POSIX && !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008 && !defined XPG4 && !defined XPG42
546 function int pthread_atfork (void(*)(void), void(*)(void), void(*)(void))
548 #if !defined POSIX && !defined XPG4 && !defined XPG42
549 function ssize_t pwrite (int, const void*, size_t, off_t)
551 function ssize_t read (int, void*, size_t)
552 #if !defined XPG4 && !defined POSIX
553 function ssize_t readlink (const char*, char*, size_t)
555 # if defined XOPEN2K8 || defined POSIX2008
556 function ssize_t readlinkat (int, const char*, char*, size_t)
558 function int rmdir (const char*)
559 #if !defined XOPEN2K && !defined XOPEN2K8 && !defined XPG4 && !defined POSIX && !defined POSIX2008
560 function {void*} sbrk (intptr_t)
562 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
563 function int setegid (gid_t)
564 function int seteuid (uid_t)
566 function int setgid (gid_t)
567 function int setpgid (pid_t, pid_t)
568 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
569 function pid_t setpgrp (void)
570 function int setregid (gid_t, gid_t)
571 function int setreuid (uid_t, uid_t)
573 function pid_t setsid (void)
574 function int setuid (uid_t)
575 function {unsigned int} sleep (unsigned int)
576 # if !defined POSIX && !defined POSIX2008
577 function void swab (const void*, void*, ssize_t)
579 #if !defined XPG4 && !defined POSIX
580 function int symlink (const char*, const char*)
582 # if defined XOPEN2K8 || defined POSIX2008
583 function int symlinkat (const char*, int, const char*)
585 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
586 function void sync (void)
588 function {long int} sysconf (int)
589 function pid_t tcgetpgrp (int)
590 function int tcsetpgrp (int, pid_t)
591 #if !defined XPG4 && !defined POSIX
592 function int truncate (const char*, off_t)
594 function {char*} ttyname (int)
595 function int ttyname_r (int, char*, size_t)
596 #if defined XPG42 || defined UNIX98 || defined XOPEN2K
597 function useconds_t ualarm (useconds_t, useconds_t)
599 function int unlink (const char*)
600 # if defined XOPEN2K8 || defined POSIX2008
601 function int unlinkat (int, const char*, int)
603 #if defined XPG42 || defined UNIX98 || defined XOPEN2K
604 function int usleep (useconds_t)
605 function pid_t vfork (void)
607 function ssize_t write (int, const void*, size_t)
609 variable {char*} optarg