Annotation of src/include/unistd.h, Revision 1.74
1.74 ! deraadt 1: /* $OpenBSD: unistd.h,v 1.73 2012/06/21 00:56:59 guenther Exp $ */
1.6 deraadt 2: /* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */
1.1 deraadt 3:
4: /*-
5: * Copyright (c) 1991 The Regents of the University of California.
6: * All rights reserved.
7: *
8: * Redistribution and use in source and binary forms, with or without
9: * modification, are permitted provided that the following conditions
10: * are met:
11: * 1. Redistributions of source code must retain the above copyright
12: * notice, this list of conditions and the following disclaimer.
13: * 2. Redistributions in binary form must reproduce the above copyright
14: * notice, this list of conditions and the following disclaimer in the
15: * documentation and/or other materials provided with the distribution.
1.47 millert 16: * 3. Neither the name of the University nor the names of its contributors
1.1 deraadt 17: * may be used to endorse or promote products derived from this software
18: * without specific prior written permission.
19: *
20: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30: * SUCH DAMAGE.
31: *
32: * @(#)unistd.h 5.13 (Berkeley) 6/17/91
33: */
34:
35: #ifndef _UNISTD_H_
36: #define _UNISTD_H_
37:
38: #include <sys/types.h>
39: #include <sys/unistd.h>
40:
41: #define STDIN_FILENO 0 /* standard input file descriptor */
42: #define STDOUT_FILENO 1 /* standard output file descriptor */
43: #define STDERR_FILENO 2 /* standard error file descriptor */
44:
1.57 millert 45: #if __XPG_VISIBLE || __POSIX_VISIBLE >= 200112
46: #define F_ULOCK 0 /* unlock locked section */
47: #define F_LOCK 1 /* lock a section for exclusive use */
48: #define F_TLOCK 2 /* test and lock a section for exclusive use */
49: #define F_TEST 3 /* test a section for locks by other procs */
1.62 millert 50: #endif
51:
1.71 matthew 52: /*
53: * POSIX options and option groups we unconditionally do or don't
54: * implement. Please keep this list in alphabetical order.
55: *
56: * Anything which is defined as zero below **must** have an
57: * implementation for the corresponding sysconf() which is able to
58: * determine conclusively whether or not the feature is supported.
59: * Anything which is defined as other than -1 below **must** have
60: * complete headers, types, and function declarations as specified by
61: * the POSIX standard; however, if the relevant sysconf() function
62: * returns -1, the functions may be stubbed out.
63: */
64: #define _POSIX_ADVISORY_INFO (-1)
65: #define _POSIX_ASYNCHRONOUS_IO (-1)
66: #define _POSIX_BARRIERS 200112L
67: #define _POSIX_CHOWN_RESTRICTED 1
68: #define _POSIX_CLOCK_SELECTION (-1)
69: #define _POSIX_CPUTIME (-1)
70: #define _POSIX_FSYNC 200112L
71: #define _POSIX_IPV6 0
72: #define _POSIX_JOB_CONTROL 1
73: #define _POSIX_MAPPED_FILES 200112L
74: #define _POSIX_MEMLOCK 200112L
75: #define _POSIX_MEMLOCK_RANGE 200112L
76: #define _POSIX_MEMORY_PROTECTION 200112L
77: #define _POSIX_MESSAGE_PASSING (-1)
78: #define _POSIX_MONOTONIC_CLOCK 200112L
79: #define _POSIX_NO_TRUNC 1
80: #define _POSIX_PRIORITIZED_IO (-1)
81: #define _POSIX_PRIORITY_SCHEDULING (-1)
82: #define _POSIX_RAW_SOCKETS 200112L
83: #define _POSIX_READER_WRITER_LOCKS 200112L
84: #define _POSIX_REALTIME_SIGNALS (-1)
85: #define _POSIX_REGEXP 1
86: #define _POSIX_SAVED_IDS 1
87: #define _POSIX_SEMAPHORES 200112L
88: #define _POSIX_SHARED_MEMORY_OBJECTS (-1)
89: #define _POSIX_SHELL 1
90: #define _POSIX_SPAWN 200112L
91: #define _POSIX_SPIN_LOCKS 200112L
92: #define _POSIX_SPORADIC_SERVER (-1)
93: #define _POSIX_SYNCHRONIZED_IO (-1)
94: #define _POSIX_THREAD_ATTR_STACKADDR 200112L
95: #define _POSIX_THREAD_ATTR_STACKSIZE 200112L
96: #define _POSIX_THREAD_CPUTIME (-1)
97: #define _POSIX_THREAD_PRIO_INHERIT (-1)
98: #define _POSIX_THREAD_PRIO_PROTECT (-1)
99: #define _POSIX_THREAD_PRIORITY_SCHEDULING (-1)
100: #define _POSIX_THREAD_PROCESS_SHARED (-1)
101: #define _POSIX_THREAD_ROBUST_PRIO_INHERIT (-1)
102: #define _POSIX_THREAD_ROBUST_PRIO_PROTECT (-1)
103: #define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
104: #define _POSIX_THREAD_SPORADIC_SERVER (-1)
105: #define _POSIX_THREADS 200112L
106: #define _POSIX_TIMEOUTS 200112L
107: #define _POSIX_TIMERS (-1)
108: #define _POSIX_TRACE (-1)
109: #define _POSIX_TRACE_EVENT_FILTER (-1)
110: #define _POSIX_TRACE_INHERIT (-1)
111: #define _POSIX_TRACE_LOG (-1)
112: #define _POSIX_TYPED_MEMORY_OBJECTS (-1)
113: #define _POSIX2_C_BIND 200112L
114: #define _POSIX2_C_DEV (-1) /* need C99 utility */
115: #define _POSIX2_CHAR_TERM 1
116: #define _POSIX2_FORT_DEV (-1) /* need fort77 utility */
117: #define _POSIX2_FORT_RUN 200112L
118: #define _POSIX2_LOCALEDEF (-1)
119: #define _POSIX2_PBS (-1)
120: #define _POSIX2_PBS_ACCOUNTING (-1)
121: #define _POSIX2_PBS_CHECKPOINT (-1)
122: #define _POSIX2_PBS_LOCATE (-1)
123: #define _POSIX2_PBS_MESSAGE (-1)
124: #define _POSIX2_PBS_TRACK (-1)
125: #define _POSIX2_SW_DEV 200112L
126: #define _POSIX2_UPE 200112L
127: #define _POSIX_V6_ILP32_OFF32 (-1)
128: #define _POSIX_V6_ILP32_OFFBIG 0
129: #define _POSIX_V6_LP64_OFF64 0
130: #define _POSIX_V6_LPBIG_OFFBIG 0
131: #define _POSIX_V7_ILP32_OFF32 (-1)
132: #define _POSIX_V7_ILP32_OFFBIG 0
133: #define _POSIX_V7_LP64_OFF64 0
134: #define _POSIX_V7_LPBIG_OFFBIG 0
135:
136: #define _XOPEN_CRYPT 1
137: #define _XOPEN_ENH_I18N (-1) /* mandatory in XSI */
138: #define _XOPEN_LEGACY (-1)
139: #define _XOPEN_REALTIME (-1)
140: #define _XOPEN_REALTIME_THREADS (-1)
141: #define _XOPEN_SHM 1
142: #define _XOPEN_STREAMS (-1)
143: #define _XOPEN_UUCP (-1)
144: #define _XOPEN_UNIX (-1)
145:
146: /* Define the POSIX.2 version we target for compliance. */
147: #define _POSIX2_VERSION 199212L
1.72 matthew 148:
149: /* the sysconf(3) variable values are part of the ABI */
150:
151: /* configurable system variables */
152: #define _SC_ARG_MAX 1
153: #define _SC_CHILD_MAX 2
154: #define _SC_CLK_TCK 3
155: #define _SC_NGROUPS_MAX 4
156: #define _SC_OPEN_MAX 5
157: #define _SC_JOB_CONTROL 6
158: #define _SC_SAVED_IDS 7
159: #define _SC_VERSION 8
160: #define _SC_BC_BASE_MAX 9
161: #define _SC_BC_DIM_MAX 10
162: #define _SC_BC_SCALE_MAX 11
163: #define _SC_BC_STRING_MAX 12
164: #define _SC_COLL_WEIGHTS_MAX 13
165: #define _SC_EXPR_NEST_MAX 14
166: #define _SC_LINE_MAX 15
167: #define _SC_RE_DUP_MAX 16
168: #define _SC_2_VERSION 17
169: #define _SC_2_C_BIND 18
170: #define _SC_2_C_DEV 19
171: #define _SC_2_CHAR_TERM 20
172: #define _SC_2_FORT_DEV 21
173: #define _SC_2_FORT_RUN 22
174: #define _SC_2_LOCALEDEF 23
175: #define _SC_2_SW_DEV 24
176: #define _SC_2_UPE 25
177: #define _SC_STREAM_MAX 26
178: #define _SC_TZNAME_MAX 27
179: #define _SC_PAGESIZE 28
180: #define _SC_PAGE_SIZE _SC_PAGESIZE /* 1170 compatibility */
181: #define _SC_FSYNC 29
182: #define _SC_XOPEN_SHM 30
183: #define _SC_SEM_NSEMS_MAX 31
184: #define _SC_SEM_VALUE_MAX 32
185: #define _SC_HOST_NAME_MAX 33
186: #define _SC_MONOTONIC_CLOCK 34
187: #define _SC_2_PBS 35
188: #define _SC_2_PBS_ACCOUNTING 36
189: #define _SC_2_PBS_CHECKPOINT 37
190: #define _SC_2_PBS_LOCATE 38
191: #define _SC_2_PBS_MESSAGE 39
192: #define _SC_2_PBS_TRACK 40
193: #define _SC_ADVISORY_INFO 41
194: #define _SC_AIO_LISTIO_MAX 42
195: #define _SC_AIO_MAX 43
196: #define _SC_AIO_PRIO_DELTA_MAX 44
197: #define _SC_ASYNCHRONOUS_IO 45
198: #define _SC_ATEXIT_MAX 46
199: #define _SC_BARRIERS 47
200: #define _SC_CLOCK_SELECTION 48
201: #define _SC_CPUTIME 49
202: #define _SC_DELAYTIMER_MAX 50
203: #define _SC_IOV_MAX 51
204: #define _SC_IPV6 52
205: #define _SC_MAPPED_FILES 53
206: #define _SC_MEMLOCK 54
207: #define _SC_MEMLOCK_RANGE 55
208: #define _SC_MEMORY_PROTECTION 56
209: #define _SC_MESSAGE_PASSING 57
210: #define _SC_MQ_OPEN_MAX 58
211: #define _SC_MQ_PRIO_MAX 59
212: #define _SC_PRIORITIZED_IO 60
213: #define _SC_PRIORITY_SCHEDULING 61
214: #define _SC_RAW_SOCKETS 62
215: #define _SC_READER_WRITER_LOCKS 63
216: #define _SC_REALTIME_SIGNALS 64
217: #define _SC_REGEXP 65
218: #define _SC_RTSIG_MAX 66
219: #define _SC_SEMAPHORES 67
220: #define _SC_SHARED_MEMORY_OBJECTS 68
221: #define _SC_SHELL 69
222: #define _SC_SIGQUEUE_MAX 70
223: #define _SC_SPAWN 71
224: #define _SC_SPIN_LOCKS 72
225: #define _SC_SPORADIC_SERVER 73
226: #define _SC_SS_REPL_MAX 74
227: #define _SC_SYNCHRONIZED_IO 75
228: #define _SC_SYMLOOP_MAX 76
229: #define _SC_THREAD_ATTR_STACKADDR 77
230: #define _SC_THREAD_ATTR_STACKSIZE 78
231: #define _SC_THREAD_CPUTIME 79
232: #define _SC_THREAD_DESTRUCTOR_ITERATIONS 80
233: #define _SC_THREAD_KEYS_MAX 81
234: #define _SC_THREAD_PRIO_INHERIT 82
235: #define _SC_THREAD_PRIO_PROTECT 83
236: #define _SC_THREAD_PRIORITY_SCHEDULING 84
237: #define _SC_THREAD_PROCESS_SHARED 85
238: #define _SC_THREAD_ROBUST_PRIO_INHERIT 86
239: #define _SC_THREAD_ROBUST_PRIO_PROTECT 87
240: #define _SC_THREAD_SPORADIC_SERVER 88
241: #define _SC_THREAD_STACK_MIN 89
242: #define _SC_THREAD_THREADS_MAX 90
243: #define _SC_THREADS 91
244: #define _SC_TIMEOUTS 92
245: #define _SC_TIMER_MAX 93
246: #define _SC_TIMERS 94
247: #define _SC_TRACE 95
248: #define _SC_TRACE_EVENT_FILTER 96
249: #define _SC_TRACE_EVENT_NAME_MAX 97
250: #define _SC_TRACE_INHERIT 98
251: #define _SC_TRACE_LOG 99
252: #define _SC_GETGR_R_SIZE_MAX 100
253: #define _SC_GETPW_R_SIZE_MAX 101
254: #define _SC_LOGIN_NAME_MAX 102
255: #define _SC_THREAD_SAFE_FUNCTIONS 103
256: #define _SC_TRACE_NAME_MAX 104
257: #define _SC_TRACE_SYS_MAX 105
258: #define _SC_TRACE_USER_EVENT_MAX 106
259: #define _SC_TTY_NAME_MAX 107
260: #define _SC_TYPED_MEMORY_OBJECTS 108
261: #define _SC_V6_ILP32_OFF32 109
262: #define _SC_V6_ILP32_OFFBIG 110
263: #define _SC_V6_LP64_OFF64 111
264: #define _SC_V6_LPBIG_OFFBIG 112
265: #define _SC_V7_ILP32_OFF32 113
266: #define _SC_V7_ILP32_OFFBIG 114
267: #define _SC_V7_LP64_OFF64 115
268: #define _SC_V7_LPBIG_OFFBIG 116
269: #define _SC_XOPEN_CRYPT 117
270: #define _SC_XOPEN_ENH_I18N 118
271: #define _SC_XOPEN_LEGACY 119
272: #define _SC_XOPEN_REALTIME 120
273: #define _SC_XOPEN_REALTIME_THREADS 121
274: #define _SC_XOPEN_STREAMS 122
275: #define _SC_XOPEN_UNIX 123
276: #define _SC_XOPEN_UUCP 124
277: #define _SC_XOPEN_VERSION 125
278:
279: #define _SC_PHYS_PAGES 500
280: #define _SC_AVPHYS_PAGES 501
281: #define _SC_NPROCESSORS_CONF 502
282: #define _SC_NPROCESSORS_ONLN 503
283:
284: /* configurable system strings */
285: #define _CS_PATH 1
1.57 millert 286:
1.1 deraadt 287: #ifndef NULL
1.26 espie 288: #ifdef __GNUG__
1.27 espie 289: #define NULL __null
1.64 jsg 290: #elif defined(__cplusplus)
291: #define NULL 0L
1.26 espie 292: #else
1.63 miod 293: #define NULL ((void *)0)
1.26 espie 294: #endif
1.1 deraadt 295: #endif
296:
297: __BEGIN_DECLS
1.36 millert 298: __dead void _exit(int);
299: int access(const char *, int);
300: unsigned int alarm(unsigned int);
301: int chdir(const char *);
302: int chown(const char *, uid_t, gid_t);
303: int close(int);
304: int dup(int);
305: int dup2(int, int);
1.40 espie 306: int execl(const char *, const char *, ...)
307: __attribute__((sentinel));
1.59 espie 308: int execle(const char *, const char *, ...);
1.40 espie 309: int execlp(const char *, const char *, ...)
310: __attribute__((sentinel));
1.68 matthew 311: int execv(const char *, char *const *);
312: int execve(const char *, char *const *, char *const *);
313: int execvp(const char *, char *const *);
314: #if __BSD_VISIBLE
315: int execvpe(const char *, char *const *, char *const *);
316: #endif
1.36 millert 317: pid_t fork(void);
318: long fpathconf(int, int);
1.50 avsm 319: char *getcwd(char *, size_t)
1.66 fgsch 320: __attribute__((__bounded__(__string__,1,2)));
1.36 millert 321: gid_t getegid(void);
322: uid_t geteuid(void);
323: gid_t getgid(void);
324: int getgroups(int, gid_t *);
325: char *getlogin(void);
326: pid_t getpgrp(void);
327: pid_t getpid(void);
328: pid_t getppid(void);
329: uid_t getuid(void);
330: int isatty(int);
331: int link(const char *, const char *);
332: off_t lseek(int, off_t, int);
333: long pathconf(const char *, int);
334: int pause(void);
335: int pipe(int *);
1.50 avsm 336: ssize_t read(int, void *, size_t)
337: __attribute__((__bounded__(__buffer__,2,3)));
1.36 millert 338: int rmdir(const char *);
339: int setgid(gid_t);
340: int setuid(uid_t);
341: unsigned int sleep(unsigned int);
342: long sysconf(int);
343: pid_t tcgetpgrp(int);
344: int tcsetpgrp(int, pid_t);
345: char *ttyname(int);
346: int unlink(const char *);
1.50 avsm 347: ssize_t write(int, const void *, size_t)
348: __attribute__((__bounded__(__buffer__,2,3)));
1.1 deraadt 349:
1.57 millert 350: #if __POSIX_VISIBLE || __XPG_VISIBLE >= 300
351: pid_t setsid(void);
352: int setpgid(pid_t, pid_t);
353: #endif
1.1 deraadt 354:
1.57 millert 355: #if __POSIX_VISIBLE >= 199209 || __XPG_VISIBLE
356: size_t confstr(int, char *, size_t)
357: __attribute__((__bounded__(__string__,2,3)));
358: #ifndef _GETOPT_DEFINED_
359: #define _GETOPT_DEFINED_
360: int getopt(int, char * const *, const char *);
361: extern char *optarg; /* getopt(3) external variables */
362: extern int opterr, optind, optopt, optreset;
363: /* XXX - getsubopt does not belong here */
364: int getsubopt(char **, char * const *, char **);
365: extern char *suboptarg; /* getsubopt(3) external variable */
366: #endif /* _GETOPT_DEFINED_ */
367: #endif
368:
369: #if __POSIX_VISIBLE >= 199506 || __XPG_VISIBLE
370: int fsync(int);
371: int ftruncate(int, off_t);
372: int getlogin_r(char *, size_t)
1.66 fgsch 373: __attribute__((__bounded__(__string__,1,2)));
1.57 millert 374: #endif
1.1 deraadt 375:
1.57 millert 376: #if __XPG_VISIBLE || __BSD_VISIBLE
377: char *crypt(const char *, const char *);
378: int encrypt(char *, int);
379: int fchdir(int);
380: int fchown(int, uid_t, gid_t);
381: long gethostid(void);
382: char *getwd(char *)
383: __attribute__ ((__bounded__(__minbytes__,1,1024)));
384: int lchown(const char *, uid_t, gid_t);
385: int mkstemp(char *);
386: char *mktemp(char *);
387: int nice(int);
388: int readlink(const char *, char *, size_t)
389: __attribute__ ((__bounded__(__string__,2,3)));
390: int setkey(const char *);
391: int setpgrp(pid_t pid, pid_t pgrp); /* obsoleted by setpgid() */
392: int setregid(gid_t, gid_t);
393: int setreuid(uid_t, uid_t);
394: void swab(const void *, void *, size_t);
395: void sync(void);
396: int truncate(const char *, off_t);
397: unsigned int ualarm(unsigned int, unsigned int);
398: int usleep(useconds_t);
399: pid_t vfork(void);
400: #endif
401:
402: #if __XPG_VISIBLE >= 420
403: pid_t getpgid(pid_t);
404: pid_t getsid(pid_t);
405: #endif
406:
407: #if __XPG_VISIBLE >= 500
1.36 millert 408: ssize_t pread(int, void *, size_t, off_t);
409: ssize_t pwrite(int, const void *, size_t, off_t);
1.57 millert 410: int ttyname_r(int, char *, size_t)
411: __attribute__((__bounded__(__string__,2,3)));
1.31 deraadt 412: #endif
413:
1.57 millert 414: #if __BSD_VISIBLE || __XPG_VISIBLE <= 500
415: /* Interfaces withdrawn by X/Open Issue 5 Version 0 */
1.60 kurt 416: int brk(void *);
1.57 millert 417: int chroot(const char *);
418: int getdtablesize(void);
419: int getpagesize(void);
420: char *getpass(const char *);
421: void *sbrk(int);
422: #endif
423:
424: #if __POSIX_VISIBLE >= 200112 || __XPG_VISIBLE >= 420
425: int lockf(int, int, off_t);
426: #endif
427:
428: #if __POSIX_VISIBLE >= 200112 || __XPG_VISIBLE >= 420 || __BSD_VISIBLE
429: int symlink(const char *, const char *);
430: int gethostname(char *, size_t)
431: __attribute__ ((__bounded__(__string__,1,2)));
432: int setegid(gid_t);
433: int seteuid(uid_t);
1.65 matthew 434: #endif
435:
436: #if __POSIX_VISIBLE >= 200809
437: int faccessat(int, const char *, int, int);
438: int fchownat(int, const char *, uid_t, gid_t, int);
439: int linkat(int, const char *, int, const char *, int);
440: ssize_t readlinkat(int, const char *, char *, size_t);
441: int symlinkat(const char *, int, const char *);
442: int unlinkat(int, const char *, int);
1.57 millert 443: #endif
444:
445: #if __BSD_VISIBLE
1.36 millert 446: int acct(const char *);
1.52 millert 447: int closefrom(int);
1.51 deraadt 448: int des_cipher(const char *, char *, int32_t, int);
1.58 espie 449: int des_setkey(const char *);
1.36 millert 450: void endusershell(void);
451: int exect(const char *, char * const *, char * const *);
452: char *fflagstostr(u_int32_t);
1.50 avsm 453: int getdomainname(char *, size_t)
454: __attribute__ ((__bounded__(__string__,1,2)));
1.69 deraadt 455: int getdtablecount(void);
1.36 millert 456: int getgrouplist(const char *, gid_t, gid_t *, int *);
457: mode_t getmode(const void *, mode_t);
1.44 millert 458: int getresgid(gid_t *, gid_t *, gid_t *);
459: int getresuid(uid_t *, uid_t *, uid_t *);
1.36 millert 460: char *getusershell(void);
461: int initgroups(const char *, gid_t);
462: int iruserok(u_int32_t, int, const char *, const char *);
463: int iruserok_sa(const void *, int, int, const char *, const char *);
1.57 millert 464: int issetugid(void);
465: char *mkdtemp(char *);
466: int mkstemps(char *, int);
1.36 millert 467: int nfssvc(int, void *);
1.50 avsm 468: int profil(char *, size_t, unsigned long, unsigned int)
469: __attribute__ ((__bounded__(__string__,1,2)));
1.57 millert 470: int quotactl(const char *, int, int, char *);
1.37 millert 471: int rcmd(char **, int, const char *,
472: const char *, const char *, int *);
473: int rcmd_af(char **, int, const char *,
474: const char *, const char *, int *, int);
475: int rcmdsh(char **, int, const char *,
476: const char *, const char *, char *);
1.36 millert 477: char *re_comp(const char *);
478: int re_exec(const char *);
479: int reboot(int);
480: int revoke(const char *);
481: int rresvport(int *);
482: int rresvport_af(int *, int);
483: int ruserok(const char *, int, const char *, const char *);
1.57 millert 484: #ifndef _SELECT_DEFINED_
1.67 nigel 485: #define _SELECT_DEFINED_
1.57 millert 486: struct timeval;
1.36 millert 487: int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
1.19 deraadt 488: #endif
1.36 millert 489: int setdomainname(const char *, size_t);
490: int setgroups(int, const gid_t *);
491: int sethostid(long);
492: int sethostname(const char *, size_t);
493: int setlogin(const char *);
494: void *setmode(const char *);
1.44 millert 495: int setresgid(gid_t, gid_t, gid_t);
496: int setresuid(uid_t, uid_t, uid_t);
1.36 millert 497: int setrgid(gid_t);
498: int setruid(uid_t);
499: void setusershell(void);
500: int strtofflags(char **, u_int32_t *, u_int32_t *);
501: int swapctl(int cmd, const void *arg, int misc);
502: int syscall(int, ...);
1.73 guenther 503: pid_t __tfork_thread(const struct __tfork *, size_t, void (*)(void *),
504: void *);
1.57 millert 505: #endif /* __BSD_VISIBLE */
1.1 deraadt 506: __END_DECLS
507:
508: #endif /* !_UNISTD_H_ */