add des_cipher(3), des_setkey(3)
[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 *
bb62d535 7 * @(#)unistd.h 5.9 (Berkeley) %G%
06899bf6
KB
8 */
9
10#include <sys/cdefs.h>
11#include <sys/types.h>
12#include <sys/unistd.h>
13
14#define STDIN_FILENO 0 /* standard input file descriptor */
15#define STDOUT_FILENO 1 /* standard output file descriptor */
16#define STDERR_FILENO 2 /* standard error file descriptor */
17
18/* fnmatch(3) defines */
19#define FNM_PATHNAME 0x01 /* match pathnames, not filenames */
20#ifndef _POSIX_SOURCE
21#define FNM_QUOTE 0x02 /* escape special chars with \ */
22#endif
23
24#ifndef NULL
25#define NULL 0 /* null pointer constant */
26#endif
27
28typedef int ssize_t; /* count of bytes or error indication */
29
30__BEGIN_DECLS
31void volatile _exit __P((int));
32int access __P((const char *, int));
33u_int alarm __P((u_int));
34int chdir __P((const char *));
35int chown __P((const char *, uid_t, gid_t));
36int close __P((int));
e7a82d5f 37char *cuserid __P((char *));
06899bf6
KB
38int dup __P((int));
39int dup2 __P((int, int));
40int execl __P((const char *, const char *, ...));
41int execle __P((const char *, const char *, ...));
42int execlp __P((const char *, const char *, ...));
43int execv __P((const char *, char * const *));
44int execve __P((const char *, char * const *, char * const *));
45int execvp __P((const char *, char * const *));
46pid_t fork __P((void));
47long fpathconf __P((int, int)); /* not yet */
48char *getcwd __P((char *, size_t));
49gid_t getegid __P((void));
50uid_t geteuid __P((void));
51gid_t getgid __P((void));
53340935 52int getgroups __P((int, int *)); /* XXX (gid_t *) */
06899bf6
KB
53char *getlogin __P((void));
54pid_t getpgrp __P((void));
55pid_t getpid __P((void));
56pid_t getppid __P((void));
57uid_t getuid __P((void));
58int isatty __P((int));
59int link __P((const char *, const char *));
60off_t lseek __P((int, off_t, int));
61long pathconf __P((const char *, int)); /* not yet */
62int pause __P((void));
63int pipe __P((int *));
64ssize_t read __P((int, void *, size_t));
65int rmdir __P((const char *));
66int setgid __P((gid_t));
67int setpgid __P((pid_t, pid_t));
68pid_t setsid __P((void));
69int setuid __P((uid_t));
70u_int sleep __P((u_int));
71long sysconf __P((int)); /* not yet */
72pid_t tcgetpgrp __P((int));
e7a82d5f 73int tcsetpgrp __P((int, pid_t));
06899bf6
KB
74char *ttyname __P((int));
75int unlink __P((const char *));
76ssize_t write __P((int, const void *, size_t));
77
78#ifndef _POSIX_SOURCE
79
f63b2ea1
KB
80/* structure timeval required for select() */
81#include <sys/time.h>
82
06899bf6
KB
83int acct __P((const char *));
84int async_daemon __P((void));
85char *brk __P((const char *));
86int chflags __P((const char *, long));
87int chroot __P((const char *));
88char *crypt __P((const char *, const char *));
bb62d535
KB
89void des_cipher __P((const char *, char *, u_long, int));
90void des_setkey __P((const char *key));
06899bf6
KB
91void encrypt __P((char *, int));
92void endusershell __P((void));
f3a23626 93int exect __P((const char *, char * const *, char * const *));
06899bf6
KB
94int fchdir __P((int));
95int fchflags __P((int, long));
06899bf6
KB
96int fchown __P((int, int, int));
97int fnmatch __P((const char *, const char *, int));
98int fsync __P((int));
99int ftruncate __P((int, off_t));
100int getdtablesize __P((void));
101long gethostid __P((void));
102int gethostname __P((char *, int));
e7a82d5f 103mode_t getmode __P((const void *, mode_t));
06899bf6
KB
104int getpagesize __P((void));
105char *getpass __P((const char *));
106char *getusershell __P((void));
107char *getwd __P((char *)); /* obsoleted by getcwd() */
108int initgroups __P((const char *, int));
109int mknod __P((const char *, mode_t, dev_t));
110int mkstemp __P((char *));
111char *mktemp __P((char *));
112int nfssvc __P((int));
113int nice __P((int));
36ceca0a
DS
114void psignal __P((u_int, const char *));
115extern char *sys_siglist[];
06899bf6
KB
116int profil __P((char *, int, int, int));
117int rcmd __P((char **, int, const char *,
118 const char *, const char *, int *));
119char *re_comp __P((const char *));
120int re_exec __P((const char *));
121int readlink __P((const char *, char *, int));
122int reboot __P((int));
123int revoke __P((const char *));
e7a82d5f 124int rresvport __P((int *));
06899bf6
KB
125int ruserok __P((const char *, int, const char *, const char *));
126char *sbrk __P((int));
127int select __P((int, fd_set *, fd_set *, fd_set *, struct timeval *));
128int setegid __P((gid_t));
129int seteuid __P((uid_t));
130int setgroups __P((int, const int *));
131void sethostid __P((long));
132int sethostname __P((const char *, int));
133void setkey __P((const char *));
134int setlogin __P((const char *));
e7a82d5f 135void *setmode __P((const char *));
06899bf6
KB
136int setpgrp __P((pid_t pid, pid_t pgrp)); /* obsoleted by setpgid() */
137int setregid __P((int, int));
138int setreuid __P((int, int));
139int setrgid __P((gid_t));
140int setruid __P((uid_t));
141void setusershell __P((void));
142int swapon __P((const char *));
143int symlink __P((const char *, const char *));
144void sync __P((void));
145int syscall __P((int, ...));
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