move fnmatch function declaration from unistd.h
[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 *
37f9b41a 7 * @(#)unistd.h 5.21 (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
KB
28int access __P((const char *, int));
29u_int alarm __P((u_int));
30int chdir __P((const char *));
31int chown __P((const char *, uid_t, gid_t));
32int close __P((int));
33char *cuserid __P((char *));
34int dup __P((int));
35int dup2 __P((int, int));
36int execl __P((const char *, const char *, ...));
37int execle __P((const char *, const char *, ...));
38int execlp __P((const char *, const char *, ...));
39int execv __P((const char *, char * const *));
40int execve __P((const char *, char * const *, char * const *));
41int execvp __P((const char *, char * const *));
42pid_t fork __P((void));
43long fpathconf __P((int, int)); /* not yet */
44char *getcwd __P((char *, size_t));
45gid_t getegid __P((void));
46uid_t geteuid __P((void));
47gid_t getgid __P((void));
48int getgroups __P((int, int *)); /* XXX (gid_t *) */
49char *getlogin __P((void));
50pid_t getpgrp __P((void));
51pid_t getpid __P((void));
52pid_t getppid __P((void));
53uid_t getuid __P((void));
54int isatty __P((int));
55int link __P((const char *, const char *));
f8d0fda1 56#define lseek __lseek
b99a8832 57off_t lseek __P((int, off_t, int));
35237353
KB
58long pathconf __P((const char *, int)); /* not yet */
59int pause __P((void));
60int pipe __P((int *));
61ssize_t read __P((int, void *, size_t));
62int rmdir __P((const char *));
63int setgid __P((gid_t));
64int setpgid __P((pid_t, pid_t));
65pid_t setsid __P((void));
66int setuid __P((uid_t));
67u_int sleep __P((u_int));
68long sysconf __P((int)); /* not yet */
69pid_t tcgetpgrp __P((int));
70int tcsetpgrp __P((int, pid_t));
71char *ttyname __P((int));
72int unlink __P((const char *));
73ssize_t write __P((int, const void *, size_t));
06899bf6
KB
74
75#ifndef _POSIX_SOURCE
76
f63b2ea1
KB
77/* structure timeval required for select() */
78#include <sys/time.h>
79
06899bf6
KB
80int acct __P((const char *));
81int async_daemon __P((void));
82char *brk __P((const char *));
83int chflags __P((const char *, long));
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
KB
91int fchdir __P((int));
92int fchflags __P((int, long));
06899bf6 93int fchown __P((int, int, int));
06899bf6 94int fsync __P((int));
f8d0fda1 95#define ftruncate __ftruncate
06899bf6
KB
96int ftruncate __P((int, off_t));
97int getdtablesize __P((void));
98long gethostid __P((void));
99int gethostname __P((char *, int));
e7a82d5f 100mode_t getmode __P((const void *, mode_t));
cf9a0ca7
CT
101__pure int
102 getpagesize __P((void));
06899bf6
KB
103char *getpass __P((const char *));
104char *getusershell __P((void));
105char *getwd __P((char *)); /* obsoleted by getcwd() */
106int initgroups __P((const char *, int));
fe09ac07 107int iruserok __P((u_long, int, const char *, const char *));
06899bf6
KB
108int mknod __P((const char *, mode_t, dev_t));
109int mkstemp __P((char *));
110char *mktemp __P((char *));
111int nfssvc __P((int));
112int nice __P((int));
36ceca0a
DS
113void psignal __P((u_int, const char *));
114extern char *sys_siglist[];
06899bf6
KB
115int profil __P((char *, int, int, int));
116int rcmd __P((char **, int, const char *,
117 const char *, const char *, int *));
118char *re_comp __P((const char *));
119int re_exec __P((const char *));
120int readlink __P((const char *, char *, int));
121int reboot __P((int));
122int revoke __P((const char *));
e7a82d5f 123int rresvport __P((int *));
06899bf6
KB
124int ruserok __P((const char *, int, const char *, const char *));
125char *sbrk __P((int));
126int select __P((int, fd_set *, fd_set *, fd_set *, struct timeval *));
127int setegid __P((gid_t));
128int seteuid __P((uid_t));
129int setgroups __P((int, const int *));
130void sethostid __P((long));
131int sethostname __P((const char *, int));
6d6f8196 132int setkey __P((const char *));
06899bf6 133int setlogin __P((const char *));
e7a82d5f 134void *setmode __P((const char *));
06899bf6
KB
135int setpgrp __P((pid_t pid, pid_t pgrp)); /* obsoleted by setpgid() */
136int setregid __P((int, int));
137int setreuid __P((int, int));
138int setrgid __P((gid_t));
139int setruid __P((uid_t));
140void setusershell __P((void));
141int swapon __P((const char *));
142int symlink __P((const char *, const char *));
143void sync __P((void));
144int syscall __P((int, ...));
f8d0fda1 145#define truncate __truncate
06899bf6
KB
146int truncate __P((const char *, off_t));
147int ttyslot __P((void));
148u_int ualarm __P((u_int, u_int));
149void usleep __P((u_int));
150void *valloc __P((size_t)); /* obsoleted by malloc() */
151int vfork __P((void));
152
153#endif /* !_POSIX_SOURCE */
154__END_DECLS
b890cc7a
KB
155
156#endif /* !_UNISTD_H_ */