disallow creation of filesystem on partition marked FS_BOOT
[unix-history] / usr / src / include / unistd.h
CommitLineData
06899bf6
KB
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 *
fd10549d 7 * @(#)unistd.h 5.27 (Berkeley) %G%
06899bf6
KB
8 */
9
b890cc7a
KB
10#ifndef _UNISTD_H_
11#define _UNISTD_H_
12
06899bf6
KB
13#include <sys/cdefs.h>
14#include <sys/types.h>
15#include <sys/unistd.h>
16
17#define STDIN_FILENO 0 /* standard input file descriptor */
18#define STDOUT_FILENO 1 /* standard output file descriptor */
19#define STDERR_FILENO 2 /* standard error file descriptor */
20
06899bf6
KB
21#ifndef NULL
22#define NULL 0 /* null pointer constant */
23#endif
24
06899bf6 25__BEGIN_DECLS
cf9a0ca7
CT
26__dead void
27 _exit __P((int));
35237353 28int access __P((const char *, int));
3b72c5a4 29unsigned int alarm __P((unsigned int));
35237353
KB
30int chdir __P((const char *));
31int chown __P((const char *, uid_t, gid_t));
32int close __P((int));
35237353
KB
33int dup __P((int));
34int dup2 __P((int, int));
35int execl __P((const char *, const char *, ...));
36int execle __P((const char *, const char *, ...));
37int execlp __P((const char *, const char *, ...));
38int execv __P((const char *, char * const *));
39int execve __P((const char *, char * const *, char * const *));
40int execvp __P((const char *, char * const *));
41pid_t fork __P((void));
42long fpathconf __P((int, int)); /* not yet */
43char *getcwd __P((char *, size_t));
44gid_t getegid __P((void));
45uid_t geteuid __P((void));
46gid_t getgid __P((void));
47int getgroups __P((int, int *)); /* XXX (gid_t *) */
48char *getlogin __P((void));
49pid_t getpgrp __P((void));
50pid_t getpid __P((void));
51pid_t getppid __P((void));
52uid_t getuid __P((void));
53int isatty __P((int));
54int link __P((const char *, const char *));
fd10549d 55#ifndef lseek
f8d0fda1 56#define lseek __lseek
b99a8832 57off_t lseek __P((int, off_t, int));
fd10549d 58#endif
35237353
KB
59long pathconf __P((const char *, int)); /* not yet */
60int pause __P((void));
61int pipe __P((int *));
62ssize_t read __P((int, void *, size_t));
63int rmdir __P((const char *));
64int setgid __P((gid_t));
65int setpgid __P((pid_t, pid_t));
66pid_t setsid __P((void));
67int setuid __P((uid_t));
3b72c5a4 68unsigned int sleep __P((unsigned int));
35237353
KB
69long sysconf __P((int)); /* not yet */
70pid_t tcgetpgrp __P((int));
71int tcsetpgrp __P((int, pid_t));
72char *ttyname __P((int));
73int unlink __P((const char *));
74ssize_t write __P((int, const void *, size_t));
06899bf6
KB
75
76#ifndef _POSIX_SOURCE
77
f63b2ea1
KB
78/* structure timeval required for select() */
79#include <sys/time.h>
80
06899bf6
KB
81int acct __P((const char *));
82int async_daemon __P((void));
83char *brk __P((const char *));
06899bf6
KB
84int chroot __P((const char *));
85char *crypt __P((const char *, const char *));
6d6f8196
KB
86int des_cipher __P((const char *, char *, long, int));
87int des_setkey __P((const char *key));
88int encrypt __P((char *, int));
06899bf6 89void endusershell __P((void));
f3a23626 90int exect __P((const char *, char * const *, char * const *));
06899bf6 91int fchdir __P((int));
06899bf6 92int fchown __P((int, int, int));
06899bf6 93int fsync __P((int));
f8d0fda1 94#define ftruncate __ftruncate
06899bf6
KB
95int ftruncate __P((int, off_t));
96int getdtablesize __P((void));
97long gethostid __P((void));
98int gethostname __P((char *, int));
e7a82d5f 99mode_t getmode __P((const void *, mode_t));
cf9a0ca7
CT
100__pure int
101 getpagesize __P((void));
06899bf6
KB
102char *getpass __P((const char *));
103char *getusershell __P((void));
104char *getwd __P((char *)); /* obsoleted by getcwd() */
105int initgroups __P((const char *, int));
3b72c5a4 106int iruserok __P((unsigned long, int, const char *, const char *));
06899bf6
KB
107int mknod __P((const char *, mode_t, dev_t));
108int mkstemp __P((char *));
109char *mktemp __P((char *));
b5c7b581 110int nfssvc __P((int, caddr_t));
06899bf6 111int nice __P((int));
3b72c5a4 112void psignal __P((unsigned int, const char *));
b91f97ee 113extern char *const sys_siglist[];
06899bf6
KB
114int profil __P((char *, int, int, int));
115int rcmd __P((char **, int, const char *,
116 const char *, const char *, int *));
117char *re_comp __P((const char *));
118int re_exec __P((const char *));
119int readlink __P((const char *, char *, int));
120int reboot __P((int));
121int revoke __P((const char *));
e7a82d5f 122int rresvport __P((int *));
06899bf6
KB
123int ruserok __P((const char *, int, const char *, const char *));
124char *sbrk __P((int));
125int select __P((int, fd_set *, fd_set *, fd_set *, struct timeval *));
126int setegid __P((gid_t));
127int seteuid __P((uid_t));
128int setgroups __P((int, const int *));
129void sethostid __P((long));
130int sethostname __P((const char *, int));
6d6f8196 131int setkey __P((const char *));
06899bf6 132int setlogin __P((const char *));
e7a82d5f 133void *setmode __P((const char *));
06899bf6
KB
134int setpgrp __P((pid_t pid, pid_t pgrp)); /* obsoleted by setpgid() */
135int setregid __P((int, int));
136int setreuid __P((int, int));
137int setrgid __P((gid_t));
138int setruid __P((uid_t));
139void setusershell __P((void));
140int swapon __P((const char *));
141int symlink __P((const char *, const char *));
142void sync __P((void));
143int syscall __P((int, ...));
f8d0fda1 144#define truncate __truncate
06899bf6
KB
145int truncate __P((const char *, off_t));
146int ttyslot __P((void));
3b72c5a4
KB
147unsigned int ualarm __P((unsigned int, unsigned int));
148void usleep __P((unsigned int));
06899bf6
KB
149void *valloc __P((size_t)); /* obsoleted by malloc() */
150int vfork __P((void));
151
152#endif /* !_POSIX_SOURCE */
153__END_DECLS
b890cc7a
KB
154
155#endif /* !_UNISTD_H_ */