Minor cleanups in libio/iofdopen.c
[glibc.git] / conform / data / unistd.h-data
blobf8cd02eb63ed0c150738e2890aa55083ba0b2c07
1 #if !defined ISO && !defined ISO99 && !defined ISO11
2 #ifdef POSIX
3 # define uid_t __uid_t
4 # define gid_t __gid_t
5 # define off_t __off_t
6 # define pid_t __pid_t
7 #endif
9 optional-constant _POSIX_VERSION
10 optional-constant _POSIX2_C_VERSION
11 optional-constant _XOPEN_VERSION
12 optional-constant _XOPEN_XCU_VERSION
14 optional-constant _POSIX2_C_BIND
15 optional-constant _POSIX2_CHAR_TERM
16 optional-constant _POSIX2_LOCALEDEF
17 optional-constant _POSIX2_UPE
18 optional-constant _POSIX2_VERSION
20 optional-constant _XOPEN_XPG2
21 optional-constant _XOPEN_XPG3
22 optional-constant _XOPEN_XPG4
23 optional-constant _XOPEN_UNIX
25 optional-constant _POSIX_ADVISORY_INFO
26 optional-constant _POSIX_ASYNCHRONOUS_IO
27 optional-constant _POSIX_BARRIERS
28 optional-constant _POSIX_CHOWN_RESTRICTED
29 optional-constant _POSIX_CLOCK_SELECTION
30 optional-constant _POSIX_CPUTIME
31 optional-constant _POSIX_NO_TRUNC
32 optional-constant _POSIX_VDISABLE
33 optional-constant _POSIX_SAVED_IDS
34 optional-constant _POSIX_JOB_CONTROL
35 optional-constant _POSIX_MONOTONIC_CLOCK
36 optional-constant _POSIX_READER_WRITER_LOCKS
37 optional-constant _POSIX_SHELL
38 optional-constant _POSIX_SPAWN
39 optional-constant _POSIX_SPIN_LOCKS
40 optional-constant _POSIX_SPORADIC_SERVER
41 optional-constant _POSIX_THREAD_CPUTIME
42 optional-constant _POSIX_TYPED_MEMORY_OBJECTS
44 optional-constant _POSIX_THREADS
45 optional-constant _POSIX_THREAD_ATTR_STACKADDR
46 optional-constant _POSIX_THREAD_ATTR_STACKSIZE
47 optional-constant _POSIX_THREAD_PROCESS_SHARED
48 optional-constant _POSIX_THREAD_SAFE_FUNCTIONS
49 optional-constant _POSIX_THREAD_SPORADIC_SERVER
51 # ifdef XOPEN2K
52 optional-constant _POSIX_V6_ILP32_OFF32
53 optional-constant _POSIX_V6_ILP32_OFFBIG
54 optional-constant _POSIX_V6_LP64_OFF64
55 optional-constant _POSIX_V6_LPBIG_OFFBIG
56 # endif
57 # if defined XOPEN2K8 || defined POSIX2008
58 optional-constant _POSIX_V7_ILP32_OFF32
59 optional-constant _POSIX_V7_ILP32_OFFBIG
60 optional-constant _POSIX_V7_LP64_OFF64
61 optional-constant _POSIX_V7_LPBIG_OFFBIG
62 # endif
64 optional-constant _POSIX2_C_DEV
65 optional-constant _POSIX2_FORT_DEV
66 optional-constant _POSIX2_FORT_RUN
67 optional-constant _POSIX2_SW_DEV
68 # if !defined POSIX && !defined POSIX2008
69 optional-constant _XOPEN_CRYPT
70 optional-constant _XOPEN_ENH_I18N
71 optional-constant _XOPEN_LEGACY
72 optional-constant _XOPEN_REALTIME
73 optional-constant _XOPEN_REALTIME_THREADS
74 optional-constant _XOPEN_SHM
75 optional-constant _XOPEN_STREAMS
76 # endif
77 allow _XBS5_ILP32_OFF32
78 allow _XBS5_ILP32_OFBIG
79 allow _XBS5_LP64_OFF64
80 allow _XBS5_LPBIG_OFFBIG
81 optional-constant _POSIX_ASYNCHRONOUS_IO
82 optional-constant _POSIX_MEMLOCK
83 optional-constant _POSIX_MEMLOCK_RANGE
84 optional-constant _POSIX_MESSAGE_PASSING
85 optional-constant _POSIX_PRIORITY_SCHEDULING
86 optional-constant _POSIX_REALTIME_SIGNALS
87 optional-constant _POSIX_SEMAPHORES
88 optional-constant _POSIX_SHARED_MEMORY_OBJECTS
89 optional-constant _POSIX_SYNCHRONIZED_IO
90 optional-constant _POSIX_TIMERS
91 optional-constant _POSIX_TIMEOUTS
93 optional-constant _POSIX_FSYNC
94 optional-constant _POSIX_MAPPED_FILES
95 optional-constant _POSIX_MEMORY_PROTECTION
97 optional-constant _POSIX_PRIORITIZED_IO
99 optional-constant _POSIX_THREAD_PRIORITY_SCHEDULING
100 optional-constant _POSIX_THREAD_PRIO_INHERIT
101 optional-constant _POSIX_THREAD_PRIO_PROTECT
103 optional-constant _POSIX_ASYNC_IO
104 optional-constant _POSIX_PRIO_IO
105 optional-constant _POSIX_SYNC_IO
107 optional-constant _POSIX2_PBS
108 optional-constant _POSIX2_PBS_ACCOUNTING
109 optional-constant _POSIX2_PBS_CHECKPOINT
110 optional-constant _POSIX2_PBS_LOCATE
111 optional-constant _POSIX2_PBS_MESSAGE
112 optional-constant _POSIX2_PBS_TRACK
114 optional-constant _POSIX_TIMESTAMP_RESOLUTION
116 constant NULL
118 constant R_OK
119 constant W_OK
120 constant X_OK
121 constant F_OK
123 constant _CS_PATH
124 constant _CS_XBS5_ILP32_OFF32_CFLAGS
125 constant _CS_XBS5_ILP32_OFF32_LDFLAGS
126 constant _CS_XBS5_ILP32_OFF32_LIBS
127 constant _CS_XBS5_ILP32_OFF32_LINTFLAGS
128 constant _CS_XBS5_ILP32_OFFBIG_CFLAGS
129 constant _CS_XBS5_ILP32_OFFBIG_LDFLAGS
130 constant _CS_XBS5_ILP32_OFFBIG_LIBS
131 constant _CS_XBS5_ILP32_OFFBIG_LINTFLAGS
132 constant _CS_XBS5_LP64_OFF64_CFLAGS
133 constant _CS_XBS5_LP64_OFF64_LDFLAGS
134 constant _CS_XBS5_LP64_OFF64_LIBS
135 constant _CS_XBS5_LP64_OFF64_LINTFLAGS
136 constant _CS_XBS5_LPBIG_OFFBIG_CFLAGS
137 constant _CS_XBS5_LPBIG_OFFBIG_LDFLAGS
138 constant _CS_XBS5_LPBIG_OFFBIG_LIBS
139 constant _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS
141 constant SEEK_SET
142 constant SEEK_CUR
143 constant SEEK_END
145 constant _SC_2_C_BIND
146 constant _SC_2_C_DEV
147 constant _SC_2_C_VERSION
148 constant _SC_2_FORT_DEV
149 constant _SC_2_FORT_RUN
150 constant _SC_2_LOCALEDEF
151 constant _SC_2_PBS
152 constant _SC_2_PBS_ACCOUNTING
153 constant _SC_2_PBS_CHECKPOINT
154 constant _SC_2_PBS_LOCATE
155 constant _SC_2_PBS_MESSAGE
156 constant _SC_2_PBS_TRACK
157 constant _SC_2_SW_DEV
158 constant _SC_2_UPE
159 constant _SC_2_VERSION
160 constant _SC_ARG_MAX
161 constant _SC_AIO_LISTIO_MAX
162 constant _SC_AIO_MAX
163 constant _SC_AIO_PRIO_DELTA_MAX
164 constant _SC_ASYNCHRONOUS_IO
165 constant _SC_ATEXIT_MAX
166 constant _SC_BARRIERS
167 constant _SC_BASE
168 constant _SC_BC_BASE_MAX
169 constant _SC_BC_DIM_MAX
170 constant _SC_BC_SCALE_MAX
171 constant _SC_BC_STRING_MAX
172 constant _SC_CHILD_MAX
173 constant _SC_CLK_TCK
174 constant _SC_CLOCK_SELECTION
175 constant _SC_COLL_WEIGHTS_MAX
176 constant _SC_DELAYTIMER_MAX
177 constant _SC_DEVICE_IO
178 constant _SC_DEVICE_SPECIFIC
179 constant _SC_DEVICE_SPECIFIC_R
180 constant _SC_EXPR_NEST_MAX
181 constant _SC_FD_MGMT
182 constant _SC_FIFO
183 constant _SC_FILE_ATTRIBUTES
184 constant _SC_FILE_LOCKING
185 constant _SC_FILE_SYSTEM
186 constant _SC_FSYNC
187 constant _SC_GETGR_R_SIZE_MAX
188 constant _SC_GETPW_R_SIZE_MAX
189 constant _SC_IOV_MAX
190 constant _SC_JOB_CONTROL
191 constant _SC_LINE_MAX
192 constant _SC_LOGIN_NAME_MAX
193 constant _SC_MAPPED_FILES
194 constant _SC_MEMLOCK
195 constant _SC_MEMLOCK_RANGE
196 constant _SC_MEMORY_PROTECTION
197 constant _SC_MESSAGE_PASSING
198 constant _SC_MONOTONIC_CLOCK
199 constant _SC_MQ_OPEN_MAX
200 constant _SC_MQ_PRIO_MAX
201 constant _SC_NETWORKING
202 constant _SC_NGROUPS_MAX
203 constant _SC_OPEN_MAX
204 constant _SC_PAGESIZE
205 constant _SC_PAGE_SIZE
206 constant _SC_PASS_MAX
207 constant _SC_PIPE
208 constant _SC_PRIORITIZED_IO
209 constant _SC_PRIORITY_SCHEDULING
210 constant _SC_RE_DUP_MAX
211 constant _SC_READER_WRITER_LOCKS
212 constant _SC_REALTIME_SIGNALS
213 constant _SC_REGEXP
214 constant _SC_RTSIG_MAX
215 constant _SC_SAVED_IDS
216 constant _SC_SEMAPHORES
217 constant _SC_SEM_NSEMS_MAX
218 constant _SC_SEM_VALUE_MAX
219 constant _SC_SHARED_MEMORY_OBJECTS
220 constant _SC_SHELL
221 constant _SC_SIGNALS
222 constant _SC_SIGQUEUE_MAX
223 constant _SC_SINGLE_PROCESS
224 constant _SC_SPIN_LOCKS
225 constant _SC_STREAM_MAX
226 constant _SC_SYNCHRONIZED_IO
227 constant _SC_THREADS
228 constant _SC_THREAD_ATTR_STACKADDR
229 constant _SC_THREAD_ATTR_STACKSIZE
230 constant _SC_THREAD_DESTRUCTOR_ITERATIONS
231 constant _SC_THREAD_KEYS_MAX
232 constant _SC_THREAD_PRIORITY_SCHEDULING
233 constant _SC_THREAD_PRIO_INHERIT
234 constant _SC_THREAD_PRIO_PROTECT
235 constant _SC_THREAD_PROCESS_SHARED
236 constant _SC_THREAD_SAFE_FUNCTIONS
237 constant _SC_THREAD_STACK_MIN
238 constant _SC_THREAD_THREADS_MAX
239 constant _SC_TIMERS
240 constant _SC_TIMER_MAX
241 constant _SC_TTY_NAME_MAX
242 constant _SC_TYPED_MEMORY_OBJECTS
243 constant _SC_TZNAME_MAX
244 constant _SC_USER_GROUPS
245 constant _SC_USER_GROUPS_R
246 # ifdef XOPEN2K
247 constant _SC_V6_ILP32_OFF32
248 constant _SC_V6_ILP32_OFFBIG
249 constant _SC_V6_LP64_OFF64
250 constant _SC_V6_LPBIG_OFFBIG
251 # endif
252 # if defined XOPEN2K8 || defined POSIX2008
253 constant _SC_V7_ILP32_OFF32
254 constant _SC_V7_ILP32_OFFBIG
255 constant _SC_V7_LP64_OFF64
256 constant _SC_V7_LPBIG_OFFBIG
257 # endif
258 constant _SC_VERSION
259 # if !defined POSIX && !defined POSIX2008
260 constant _SC_XOPEN_VERSION
261 constant _SC_XOPEN_CRYPT
262 constant _SC_XOPEN_ENH_I18N
263 constant _SC_XOPEN_SHM
264 constant _SC_XOPEN_UNIX
265 constant _SC_XOPEN_XCU_VERSION
266 constant _SC_XOPEN_LEGACY
267 constant _SC_XOPEN_REALTIME
268 constant _SC_XOPEN_REALTIME_THREADS
269 # endif
270 constant _SC_STREAMS
271 constant _SC_XBS5_ILP32_OFF32
272 constant _SC_XBS5_ILP32_OFFBIG
273 constant _SC_XBS5_LP64_OFF64
274 constant _SC_XBS5_LPBIG_OFFBIG
275 # ifdef XOPEN2K
276 constant _CS_POSIX_V6_ILP32_OFF32_CFLAGS
277 constant _CS_POSIX_V6_ILP32_OFF32_LDFLAGS
278 constant _CS_POSIX_V6_ILP32_OFF32_LIBS
279 constant _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS
280 constant _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS
281 constant _CS_POSIX_V6_ILP32_OFFBIG_LIBS
282 constant _CS_POSIX_V6_LP64_OFF64_CFLAGS
283 constant _CS_POSIX_V6_LP64_OFF64_LDFLAGS
284 constant _CS_POSIX_V6_LP64_OFF64_LIBS
285 constant _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS
286 constant _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS
287 constant _CS_POSIX_V6_LPBIG_OFFBIG_LIBS
288 constant _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS
289 constant _CS_V6_ENV
290 # endif
291 # if defined XOPEN2K8 || defined POSIX2008
292 constant _CS_POSIX_V7_ILP32_OFF32_CFLAGS
293 constant _CS_POSIX_V7_ILP32_OFF32_LDFLAGS
294 constant _CS_POSIX_V7_ILP32_OFF32_LIBS
295 constant _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS
296 constant _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS
297 constant _CS_POSIX_V7_ILP32_OFFBIG_LIBS
298 constant _CS_POSIX_V7_LP64_OFF64_CFLAGS
299 constant _CS_POSIX_V7_LP64_OFF64_LDFLAGS
300 constant _CS_POSIX_V7_LP64_OFF64_LIBS
301 constant _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS
302 constant _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS
303 constant _CS_POSIX_V7_LPBIG_OFFBIG_LIBS
304 constant _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS
305 constant _CS_V7_ENV
306 # endif
307 constant _SC_THREAD_ROBUST_PRIO_INHERIT
308 constant _SC_THREAD_ROBUST_PRIO_PROTECT
310 #if !defined POSIX && !defined POSIX2008
311 constant F_LOCK
312 constant F_ULOCK
313 constant F_TEST
314 constant F_TLOCK
315 #endif
317 constant _PC_ASYNC_IO
318 constant _PC_CHOWN_RESTRICTED
319 constant _PC_FILESIZEBITS
320 constant _PC_LINK_MAX
321 constant _PC_MAX_CANON
322 constant _PC_MAX_INPUT
323 constant _PC_NAME_MAX
324 constant _PC_NO_TRUNC
325 constant _PC_PATH_MAX
326 constant _PC_PIPE_BUF
327 constant _PC_PRIO_IO
328 constant _PC_REC_INCR_XFER_SIZE
329 constant _PC_REC_MAX_XFER_SIZE
330 constant _PC_REC_MIN_XFER_SIZE
331 constant _PC_REC_XFER_ALIGN
332 constant _PC_SYNC_IO
333 constant _PC_VDISABLE
335 constant STDIN_FILENO
336 constant STDOUT_FILENO
337 constant STDERR_FILENO
339 type size_t
340 type ssize_t
341 type uid_t
342 type gid_t
343 type off_t
344 type pid_t
346 #if !defined POSIX
347 type useconds_t
349 type intptr_t
350 #endif
352 function int access (const char*, int)
353 function {unsigned int} alarm (unsigned int)
354 #if !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX && !defined POSIX2008
355 function int brk (void*)
356 #endif
357 function int chdir (const char*)
358 #if defined XPG3 || defined XPG4 || defined UNIX98
359 function int chroot (const char*)
360 #endif
361 function int chown (const char*, uid_t, gid_t)
362 function int close (int)
363 function size_t confstr (int, char*, size_t)
364 #if !defined POSIX && !defined POSIX2008
365 function {char*} crypt (const char*, const char*)
366 #endif
367 #if defined XPG3 || defined XPG4 || defined UNIX98
368 function {char*} ctermid (char*)
369 function {char*} cuserid (char*)
370 #endif
371 function int dup (int)
372 function int dup2 (int, int)
373 #if !defined POSIX && !defined POSIX2008
374 function void encrypt (char[64], int)
375 #endif
376 function int execl (const char*, const char*, ...)
377 function int execle (const char*, const char*, ...)
378 function int execlp (const char*, const char*, ...)
379 function int execv (const char*, char *const[])
380 function int execve (const char*, char *const[], char *const[])
381 function int execvp (const char*, char *const[])
382 function void _exit (int)
383 # if defined XOPEN2K8 || defined POSIX2008
384 function int faccessat (int, const char*, int, int)
385 # endif
386 #if !defined POSIX
387 function int fchown (int, uid_t, gid_t)
388 #endif
389 # if defined XOPEN2K8 || defined POSIX2008
390 function int fchownat (int, const char*, uid_t, gid_t, int)
391 # endif
392 #ifndef POSIX
393 function int fchdir (int)
394 #endif
395 #if !defined XPG3 && !defined XPG4
396 function int fdatasync (int)
397 #endif
398 # if defined XOPEN2K8 || defined POSIX2008
399 function int fexecve (int, char *const[], char *const[])
400 # endif
401 function pid_t fork (void)
402 function {long int} fpathconf (int, int)
403 function int fsync (int)
404 function int ftruncate (int, off_t)
405 function {char*} getcwd (char*, size_t)
406 #if !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX && !defined POSIX2008
407 function int getdtablesize (void)
408 #endif
409 function gid_t getegid (void)
410 function uid_t geteuid (void)
411 function gid_t getgid (void)
412 function int getgroups (int, gid_t[])
413 #if !defined POSIX && !defined POSIX2008
414 function long gethostid (void)
415 #endif
416 #if !defined POSIX
417 function int gethostname (char*, size_t)
418 #endif
419 function {char*} getlogin (void)
420 #if !defined XPG3 && !defined XPG4
421 function int getlogin_r (char*, size_t)
422 #endif
423 function int getopt (int, char*const[], const char*)
424 #if defined XPG3 || defined XPG4 || defined UNIX98
425 function int getpagesize (void)
426 function {char*} getpass (const char*)
427 #endif
428 #ifndef POSIX
429 function pid_t getpgid (pid_t)
430 #endif
431 function pid_t getpgrp (void)
432 function pid_t getpid (void)
433 function pid_t getppid (void)
434 #ifndef POSIX
435 function pid_t getsid (pid_t)
436 #endif
437 function uid_t getuid (void)
438 #if defined XPG3 || defined XPG4 || defined UNIX98 || defined XOPEN2K
439 function {char*} getwd (char*)
440 #endif
441 function int isatty (int)
442 #ifndef POSIX
443 function int lchown (const char*, uid_t, gid_t)
444 #endif
445 function int link (const char*, const char*)
446 # if defined XOPEN2K8 || defined POSIX2008
447 function int linkat (int, const char*, int, const char*, int)
448 # endif
449 # if !defined POSIX && !defined POSIX2008
450 function int lockf (int, int, off_t)
451 # endif
452 function off_t lseek (int, off_t, int)
453 # if !defined POSIX && !defined POSIX2008
454 function int nice (int)
455 # endif
456 function {long int} pathconf (const char*, int)
457 function int pause (void)
458 function int pipe (int[2])
459 #if !defined POSIX && !defined XPG3 && !defined XPG4
460 function ssize_t pread (int, void*, size_t, off_t)
461 #endif
462 #if !defined POSIX && !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008 && !defined XPG3 && !defined XPG4
463 function int pthread_atfork (void(*)(void), void(*)(void), void(*)(void))
464 #endif
465 #if !defined POSIX && !defined XPG3 && !defined XPG4
466 function ssize_t pwrite (int, const void*, size_t, off_t)
467 #endif
468 function ssize_t read (int, void*, size_t)
469 #ifndef POSIX
470 function ssize_t readlink (const char*, char*, size_t)
471 #endif
472 # if defined XOPEN2K8 || defined POSIX2008
473 function ssize_t readlinkat (int, const char*, char*, size_t)
474 # endif
475 function int rmdir (const char*)
476 #if !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX && !defined POSIX2008
477 function {void*} sbrk (intptr_t)
478 #endif
479 #if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
480 function int setegid (gid_t)
481 function int seteuid (uid_t)
482 #endif
483 function int setgid (gid_t)
484 function int setpgid (pid_t, pid_t)
485 # if !defined POSIX && !defined POSIX2008
486 function pid_t setpgrp (void)
487 function int setregid (gid_t, gid_t)
488 function int setreuid (uid_t, uid_t)
489 # endif
490 function pid_t setsid (void)
491 function int setuid (uid_t)
492 function {unsigned int} sleep (unsigned int)
493 # if !defined POSIX && !defined POSIX2008
494 function void swab (const void*, void*, ssize_t)
495 # endif
496 #ifndef POSIX
497 function int symlink (const char*, const char*)
498 # endif
499 # if defined XOPEN2K8 || defined POSIX2008
500 function int symlinkat (const char*, int, const char*)
501 # endif
502 # if !defined POSIX && !defined POSIX2008
503 function void sync (void)
504 # endif
505 function {long int} sysconf (int)
506 function pid_t tcgetpgrp (int)
507 function int tcsetpgrp (int, pid_t)
508 #ifndef POSIX
509 function int truncate (const char*, off_t)
510 #endif
511 function {char*} ttyname (int)
512 function int ttyname_r (int, char*, size_t)
513 #if defined XPG3 || defined XPG4 || defined UNIX98 || defined XOPEN2K
514 function useconds_t ualarm (useconds_t, useconds_t)
515 #endif
516 function int unlink (const char*)
517 # if defined XOPEN2K8 || defined POSIX2008
518 function int unlinkat (int, const char*, int)
519 # endif
520 #if defined XPG3 || defined XPG4 || defined UNIX98 || defined XOPEN2K
521 function int usleep (useconds_t)
522 function pid_t vfork (void)
523 #endif
524 function ssize_t write (int, const void*, size_t)
526 variable {char*} optarg
527 variable int optind
528 variable int opterr
529 variable int optopt
531 allow *_t
532 #endif