Commit | Line | Data |
---|---|---|
1c15e888 | 1 | /* @(#)llib-lc 1.47 (Berkeley) 10/1/89 */ |
d5dc2acf | 2 | |
d39f24e1 | 3 | /* LINTLIBRARY */ |
d5dc2acf | 4 | |
d39f24e1 | 5 | #include <sys/types.h> |
d5dc2acf DS |
6 | #include <sys/time.h> |
7 | ||
a81b78cb | 8 | #include <sys/wait.h> |
d5dc2acf DS |
9 | #include <sys/dir.h> |
10 | #include <sys/resource.h> | |
11 | #include <sys/socket.h> | |
12 | #include <sys/stat.h> | |
13 | #include <sys/timeb.h> | |
14 | #include <sys/times.h> | |
15 | #include <sys/uio.h> | |
16 | #include <sys/vtimes.h> | |
d5dc2acf DS |
17 | |
18 | #include <netinet/in.h> | |
19 | ||
20 | #include <netns/ns.h> | |
21 | ||
22 | #include <arpa/inet.h> | |
23 | ||
a81b78cb | 24 | #include <sys/disklabel.h> |
d39f24e1 SL |
25 | #include <fstab.h> |
26 | #include <grp.h> | |
d5dc2acf DS |
27 | #include <ndbm.h> |
28 | #include <netdb.h> | |
d39f24e1 SL |
29 | #include <nlist.h> |
30 | #include <pwd.h> | |
31 | #include <setjmp.h> | |
4f50d19e RH |
32 | #include <sgtty.h> |
33 | #include <signal.h> | |
d5dc2acf DS |
34 | #include <stdio.h> |
35 | #include <ttyent.h> | |
d39f24e1 SL |
36 | |
37 | /*** SECTION 2 ***/ | |
4f50d19e | 38 | int errno; |
d39f24e1 SL |
39 | |
40 | int accept(s, a, l) struct sockaddr *a; int *l; { return s; } | |
41 | int access( p, m) char *p; { return 0; } | |
42 | int acct(f) char *f; { return 0;} | |
86d894c3 | 43 | int adjtime(delta, odelta) struct timeval *delta, *odelta; { return 0; } |
d39f24e1 | 44 | int bind(s, n, l) struct sockaddr *n; { return 0; } |
4f50d19e RH |
45 | char *brk(a) char *a; { return(a); } |
46 | int chdir(s) char *s; { return(0); } | |
47 | int chmod(s, m) char *s; { return(0); } | |
48 | int chown(s, u, g) char *s; { return(0); } | |
d39f24e1 | 49 | int chroot( d ) char *d; { return 0; } |
4f50d19e | 50 | int close(f) { return(0); } |
d39f24e1 | 51 | int connect( s, n, l) struct sockaddr *n; { return 0; } |
4f50d19e | 52 | int dup(f) { return(f); } |
d39f24e1 SL |
53 | int dup2( o, n) { return o; } |
54 | execve(s, v, e) char *s, *v[], *e[]; {;} | |
55 | _exit(s) {;} | |
37132b41 | 56 | int fchmod(f, m) { return(0); } |
a8017d6c | 57 | int fchown(f, u, g) { return(0); } |
2b3e2cdd | 58 | int fcntl(f, c, a) { return (0); } |
d39f24e1 | 59 | int flock( f, o ) { return 0; } |
4f50d19e | 60 | int fork() { return(0); } |
d39f24e1 | 61 | int fsync( f ) { return 0; } |
4f50d19e | 62 | int fstat(f, b) struct stat *b; { return(0); } |
c189f216 | 63 | int ftruncate( d, l) off_t l; { return 0;} |
d39f24e1 | 64 | int getdtablesize() { return 20 ; } |
f8eedcbc KM |
65 | gid_t getegid() { return((gid_t)1); } |
66 | uid_t geteuid() { return((uid_t)1); } | |
67 | gid_t getgid() { return((gid_t)1); } | |
ded15b91 | 68 | int getgroups( n, g ) int n, *g; { return 0; } |
c483ba20 | 69 | long gethostid() { return 1L; } |
057093aa | 70 | int gethostname( n, l ) char *n; int l; { return 0 ;} |
d39f24e1 SL |
71 | int getitimer( w, v ) struct itimerval *v; { return 0; } |
72 | int getpagesize() { return 1; } | |
37132b41 | 73 | int getpeername(s, n, l) struct sockaddr *n; int *l; { return (0); } |
d39f24e1 | 74 | int getpgrp(p) { return 1; } |
4f50d19e | 75 | int getpid() { return(1); } |
d39f24e1 SL |
76 | int getppid() { return(1); } |
77 | int getpriority( w, who) { return 1;} | |
78 | int getrlimit( res, rip) struct rlimit *rip; { return 0;} | |
79 | int getrusage( res, rip) struct rusage *rip; { return 0;} | |
66b5467b | 80 | int getsockname(s, name, namelen) struct sockaddr *name; int *namelen; { return(0); } |
37132b41 | 81 | int getsockopt( s, level, opt, buf, len ) char *buf; int *len; { return 0;} |
d39f24e1 | 82 | int gettimeofday( t, z ) struct timeval *t; struct timezone *z; { return 0;} |
f8eedcbc | 83 | uid_t getuid() { return((uid_t)1); } |
37132b41 | 84 | int ioctl( d, r, p) u_long r; char *p; { return 0;} |
4f50d19e | 85 | int kill(p, s) { return(0); } |
d39f24e1 | 86 | int killpg( pg, s) { return 0;} |
4f50d19e | 87 | int link(a, b) char *a, *b; { return(0); } |
d39f24e1 | 88 | int listen( s, b ){ return 0; } |
c189f216 | 89 | off_t lseek(f, o, d) off_t o; { return(o); } |
d39f24e1 | 90 | int lstat(s, b) char *s; struct stat *b; { return(0); } |
2b3e2cdd | 91 | #ifdef notdef |
d39f24e1 SL |
92 | int madvise( a, l, b ) char * a; int l, b; { return 0;} |
93 | int mmap( a, l, p, s, f, o ) char * a; off_t o; { return 0;} | |
94 | int mincore( a, l, v ) char * a; int l; char *v; { return 0; } | |
2b3e2cdd | 95 | #endif |
d39f24e1 | 96 | int mkdir( p, m ) char *p; { return 0; } |
4f50d19e | 97 | int mknod(n, m, a) char *n; { return(0); } |
4f50d19e | 98 | int mount(s, n, f) char *s, *n; { return(0); } |
2b3e2cdd | 99 | #ifdef notdef |
d39f24e1 SL |
100 | int mprotect( a, l, p) char * a; { return 0;} |
101 | int mremap( a, l, p, s, f) char * a, f; { return 0;} | |
102 | int munmap( a, l) char * a; { return 0;} | |
2b3e2cdd | 103 | #endif |
7eef552c | 104 | /* VARARGS2 */ |
d39f24e1 | 105 | int open(f, m, stuff) char *f; { return(0); } |
4f50d19e RH |
106 | int pipe(f) int f[2]; { return(0); } |
107 | profil(b, s, o, i) char *b; {;} | |
37132b41 DS |
108 | int ptrace(r, p, a, d) int *a; { return(0); } |
109 | int quota(c, u, a, ad) char *ad; { return(0); } | |
4f50d19e | 110 | int read(f, b, l) char *b; { return(l); } |
d39f24e1 SL |
111 | int readv( d, v, l) struct iovec *v; { return l; } |
112 | int readlink( p, b, s ) char *p, *b; { return 1; } | |
113 | reboot( h ) {;} | |
114 | int recv( s, b, l, f ) char *b; { return l ; } | |
115 | int recvfrom( s, b, l, f, fr, fl ) char *b; struct sockaddr *fr; int *fl; | |
116 | { return l; } | |
117 | int recvmsg( s, m, f ) struct msghdr m[]; { return 1; } | |
118 | int rename( f, t ) char *f, *t; { return 0;} | |
119 | int rmdir( p ) char *p; { return 0;} | |
4f50d19e | 120 | char *sbrk(i) { return((char *)0); } |
7ce4c58d | 121 | int select( n, r, w, e, t ) fd_set *r, *w, *e; struct timeval *t; { return n; } |
d39f24e1 SL |
122 | int send( s, m, l, f ) char *m; { return l; } |
123 | int sendto( s, m, l, f, t, tl ) char *m; struct sockaddr *t; { return l; } | |
124 | int sendmsg( s, m, l) struct msghdr m[]; { return l; } | |
d39f24e1 | 125 | int setgroups( n, g) int *g; { return 0; } |
c483ba20 | 126 | int sethostid( h ) long h; { return 0;} |
d39f24e1 | 127 | int sethostname( n, l ) char *n; int l; { return 0 ;} |
2b3e2cdd | 128 | int setitimer( w, v, ov ) struct itimerval *v, *ov; { return 0; } |
d39f24e1 SL |
129 | int setpgrp( g, pg) { return 0; } |
130 | int setpriority( w, who, pri ) { return 1;} | |
37132b41 DS |
131 | int setquota(s, f) char *s, *f; { return 0; } |
132 | int setregid( r, e) int r, e; { return 0; } | |
133 | int setreuid( r, e) int r, e; { return 0; } | |
d39f24e1 SL |
134 | int setrlimit( res, rip) struct rlimit *rip; { return 0;} |
135 | /* VARARGS */ | |
86d894c3 | 136 | int setsockopt( s, level, opt, buf, len ) char *buf; { return 0;} |
d39f24e1 SL |
137 | int settimeofday( t, z ) struct timeval *t; struct timezone *z; { return 0;} |
138 | int shutdown( s, h ){ return 0;} | |
b165fb0a | 139 | void (*signal(c, f))() void (*f)(); { return(f); } |
5e0f1b31 | 140 | int sigvec(c, f, m) struct sigvec *f, *m; { return 0; } |
2b3e2cdd SL |
141 | int sigblock(m) { return (m); } |
142 | int sigsetmask(m) { return (m); } | |
143 | sigpause(m) { ; } | |
37132b41 | 144 | int sigreturn(scp) struct sigcontext *scp; { return -1; } |
d0fd5df2 | 145 | int sigstack(ss, oss) struct sigstack *ss, *oss; { return 0 ; } |
d39f24e1 SL |
146 | int socket( a, t, p) {return 1;} |
147 | int socketpair( d, t, p, s ) int s[2]; { return 0; } | |
4f50d19e | 148 | int stat(s, b) char *s; struct stat *b; { return(0); } |
2b3e2cdd | 149 | #ifdef notdef |
d39f24e1 SL |
150 | char * stk( a ) char * a; { return a; } |
151 | char * sstk( a ) int a; { return (char *)0; } | |
2b3e2cdd | 152 | #endif |
37132b41 | 153 | int swapon( s ) char *s; { return 0;} |
d39f24e1 SL |
154 | int symlink( t, f) char *t, *f; { return 0;} |
155 | sync(){;} | |
c189f216 | 156 | int truncate( p, l) char *p; off_t l; { return 0;} |
d39f24e1 | 157 | int umask( n ) { return n; } |
37132b41 | 158 | int umount(s) char *s; { return 0; } |
d39f24e1 | 159 | int unlink(s) char *s; { return(0); } |
e876e3d0 | 160 | int utimes( f, t ) char *f; struct timeval t[2]; { return 0 ;} |
d39f24e1 | 161 | int vfork() { return(0); } |
37132b41 | 162 | vhangup() { ; } |
d39f24e1 | 163 | int wait(s) union wait *s; { return(1); } |
6258b052 | 164 | int wait3( s, o, r) union wait *s; struct rusage *r; { return 1;} |
d39f24e1 SL |
165 | int write(f, b, l) char *b; { return(l); } |
166 | int writev( f, v, l) struct iovec *v; { return l; } | |
167 | ||
168 | ||
d5dc2acf DS |
169 | /*** SECTION 3 ***/ |
170 | ||
171 | struct qelem { /* this should really be defined in an include file */ | |
172 | struct qelem *q_forw; | |
173 | struct qelem *q_back; | |
174 | char data[1]; | |
175 | } | |
d39f24e1 SL |
176 | |
177 | /* antique system calls and unclassified */ | |
d5dc2acf DS |
178 | _longjmp( e, v) jmp_buf e; {;} |
179 | int _setjmp(e) jmp_buf e; { return(0); } | |
d39f24e1 SL |
180 | abort() {;} |
181 | int abs(i) int i; { return(i); } | |
182 | int alarm(s) unsigned s; { return(s); } | |
d5dc2acf | 183 | alphasort( d1, d2) struct direct **d1, **d2; { return 0;} |
d39f24e1 SL |
184 | char * asctime(t) struct tm *t; { return(""); } |
185 | double atof(s) char *s; { return(1.); } | |
186 | int atoi(s) char *s; { return 1; } | |
187 | long atol(s) char *s; { return 1L; } | |
76f593fb | 188 | int bcmp(b1, b2, length) char *b1, *b2; { return 0; } |
d5dc2acf | 189 | bcopy(src, dst, length) char *src, *dst; { ; } |
d5dc2acf | 190 | bzero(b, length) char *b; { ; } |
d39f24e1 SL |
191 | char * calloc(n,s) unsigned n, s; { static char c[1]; return(c); } |
192 | void closedir( p ) DIR *p; {} | |
848b9d76 | 193 | closelog() {} |
d39f24e1 SL |
194 | int creat(s, m) char *s; { return(0); } |
195 | char * crypt(k,s) char *k, *s; { return(""); } | |
d5dc2acf | 196 | char * ctime(c) long *c;{ return(""); } |
d39f24e1 | 197 | char _ctype_[]; |
d5dc2acf DS |
198 | DBM * dbm_open(file, flags, mode) char *file; { return (DBM *) 0; } |
199 | void dbm_close(db) DBM *db; { ; } | |
200 | datum dbm_fetch(db, key) DBM *db; datum key; { return key; } | |
201 | int dbm_store(db, key, cont, flags) DBM *db; datum key, cont; { return 0; } | |
202 | int dbm_delete(db, key) DBM *db; datum key; { return 0; } | |
203 | datum dbm_firstkey(db) DBM *db; { datum key; return key; } | |
204 | datum dbm_nextkey(db) DBM *db; { datum key; return key; } | |
d39f24e1 SL |
205 | char * ecvt(v, n, d, s) double v; int *d, *s; { return(""); } |
206 | encrypt(s, i) char *s; {} | |
20d1eaee EW |
207 | void endfsent() {} |
208 | void endgrent() { ; } | |
d5dc2acf DS |
209 | endhostent() { ; } |
210 | endnetent() { ; } | |
211 | endprotoent() { ; } | |
20d1eaee | 212 | void endpwent() {} |
d5dc2acf DS |
213 | endservent() { ; } |
214 | endttyent() { ; } | |
215 | endusershell() { ; } | |
c2ce786d | 216 | char ** environ; |
d39f24e1 SL |
217 | /* VARARGS */ |
218 | execl(f, a) char *f, *a; {;} | |
219 | /* VARARGS */ | |
220 | execle(f, a) char *f, *a; {;} | |
d5dc2acf DS |
221 | /* VARARGS */ |
222 | execlp(f, a) char *f, *a; {;} | |
d39f24e1 | 223 | execv(s, v) char *s, *v[]; {;} |
d5dc2acf DS |
224 | execvp(s, v) char *s, *v[]; {;} |
225 | exect(s, v, e) char *s, *v[], *e[]; {;} | |
d39f24e1 SL |
226 | exit(s) {;} |
227 | char * fcvt(v, n, d, s) double v; int *d, *s; { return(""); } | |
d5dc2acf | 228 | int ffs(i) { return i; } |
d39f24e1 SL |
229 | free(p) char *p; {;} |
230 | double frexp( v, e) double v; int *e; { return v; } | |
d5dc2acf | 231 | ftime(tp) struct timeb *tp; { ; } |
d39f24e1 | 232 | char * gcvt(v, n, b) double v; char *b; { return(""); } |
a81b78cb | 233 | struct disklabel * getdiskbyname(name) char *name; { return (struct disklabel *) 0; } |
d39f24e1 SL |
234 | char * getenv( n ) char *n; { return n; } |
235 | struct fstab * getfsent() { return (struct fstab *)NULL; } | |
236 | struct fstab * getfsspec( n ) char *n; { return (struct fstab *)NULL; } | |
237 | struct fstab * getfsfile( n ) char *n; { return (struct fstab *)NULL; } | |
2b3e2cdd | 238 | struct fstab * getfstype( t ) char *t; { return (struct fstab *)NULL; } |
d39f24e1 SL |
239 | struct group * getgrent() { return (struct group *)NULL; } |
240 | struct group * getgrgid( n ) { return (struct group *)NULL; } | |
241 | struct group * getgrnam( n ) char *n; { return (struct group *)NULL; } | |
d5dc2acf DS |
242 | struct hostent * gethostbyaddr(addr, len, type) char *addr; { return (struct hostent *) 0; } |
243 | struct hostent * gethostbyname(name) char *name; { return (struct hostent *) 0; } | |
244 | struct hostent * gethostent() { return (struct hostent *) 0; } | |
b02d33b6 | 245 | int getloadavg( v, l ) double v[]; int l; { return 0; } |
d39f24e1 | 246 | char * getlogin(){ return " "; } |
d5dc2acf DS |
247 | struct netent * getnetbyaddr(net, type) { return (struct netent *) 0; } |
248 | struct netent * getnetbyname(name) char *name; { return (struct netent *) 0; } | |
249 | struct netent * getnetent() { return (struct netent *) 0; } | |
250 | int getopt(argc, argv, optstr) char **argv, *optstr; { return EOF; } | |
d39f24e1 | 251 | char * getpass( n ) char *n ; { return n; } |
d5dc2acf DS |
252 | struct protoent * getprotobyname(name) char *name; { return (struct protoent *) 0; } |
253 | struct protoent * getprotobynumber(proto) { return (struct protoent *) 0; } | |
254 | struct protoent * getprotoent() { return (struct protoent *) 0; } | |
d39f24e1 SL |
255 | int getpw( u, b) char *b; { return 0; } |
256 | struct passwd * getpwent() { return (struct passwd *)NULL; } | |
257 | struct passwd * getpwuid( n ) { return (struct passwd *)NULL; } | |
258 | struct passwd * getpwnam( n ) char *n; { return (struct passwd *)NULL; } | |
d5dc2acf DS |
259 | struct servent * getservbyname(name, proto) char *name, *proto; { return (struct servent *) 0; } |
260 | struct servent * getservbyport(port, proto) char *proto; { return (struct servent *) 0; } | |
261 | struct servent * getservent() { return (struct servent *) 0; } | |
262 | struct ttyent * getttynam(name) char *name; { return (struct ttyent *) 0; } | |
263 | char * getusershell() { return (char *) 0; } | |
264 | char * getwd(pathname) char *pathname; { return pathname; } | |
7291578b | 265 | struct tm * gmtime(c) long *c; { return gmtime(c); } |
d39f24e1 | 266 | int gtty(f, b) struct sgttyb *b; { return(0); } |
d5dc2acf | 267 | #ifndef htonl |
0602c650 | 268 | unsigned long htonl(hostlong) u_long hostlong; { return hostlong; } |
d5dc2acf DS |
269 | #endif htonl |
270 | #ifndef htons | |
0602c650 | 271 | unsigned short htons(hostshort) u_short hostshort; { return hostshort; } |
d5dc2acf | 272 | #endif htons |
d39f24e1 | 273 | char * index(s, c) char *s, c; { return s; } |
d5dc2acf | 274 | u_long inet_addr(cp) char *cp; { return 0L; } |
ed2be010 KB |
275 | u_long inet_lnaof(in) struct in_addr in; { return 0L; } |
276 | u_long inet_netof(in) struct in_addr in; { return 0L; } | |
d5dc2acf DS |
277 | struct in_addr inet_makeaddr(net, host) { struct in_addr in; return in; } |
278 | u_long inet_network(cp) char *cp; { return 0L; } | |
279 | char * inet_ntoa(in) struct in_addr in; { return (char *) 0; } | |
280 | int initgroups(uname, agroup) char *uname; { return 0; } | |
281 | char * initstate( s, st, n) unsigned s; char *st; { return st; } | |
282 | insque(elem, pred) struct qelem *elem, pred; { ; } | |
d39f24e1 SL |
283 | int isatty(f) { return 1; } |
284 | double ldexp( v, e) double v; { return v; } | |
fb0e6ec3 | 285 | longjmp( e, v) jmp_buf e; {;} |
d5dc2acf | 286 | longjmperror() {;} |
7291578b | 287 | struct tm *localtime(c) long *c; { return localtime(c); } |
d39f24e1 | 288 | char * malloc(n) unsigned n; {static char c; return(&c);} |
b8f704da DS |
289 | char * memccpy(t, f, c, n) char *t, *f; { return t; } |
290 | char * memchr(s, c, n) char *s; { return s; } | |
291 | int memcmp(s1, s2, n) char *s1, *s2; { return 0; } | |
292 | char * memcpy(t, f, n) char *t, *f; { return t; } | |
293 | char * memset(s, c, n) char *s; { return s; } | |
d39f24e1 | 294 | char * mktemp(p) char *p; { return(p);} |
d5dc2acf | 295 | int mkstemp(p) char *p; { return(0);} |
b8f704da DS |
296 | double modf( v, p ) double v, *p; { return v; } |
297 | moncontrol(mode) { ; } | |
d39f24e1 SL |
298 | monitor(l, h, b, s, n) int (*l)(), (*h)(); short *b; {} |
299 | monstartup( l, h) int (*l)(), (*h)(); {;} | |
d5dc2acf DS |
300 | int nice(incr) { return 0; } |
301 | int nlist( f, n) char *f; struct nlist n[]; { return (0);} | |
302 | struct ns_addr ns_addr(name) char *name; { struct ns_addr ns; return ns; } | |
303 | char * ns_ntoa(addr) struct ns_addr addr; { return (char *) 0; } | |
304 | #ifndef ntohl | |
305 | u_long ntohl(netlong) u_long netlong; { return netlong; } | |
306 | #endif ntohl | |
307 | #ifndef ntohs | |
308 | u_short ntohs(netshort) u_short netshort; { return netshort; } | |
309 | #endif ntohs | |
d39f24e1 | 310 | DIR * opendir( f ) char *f; { return (DIR *)NULL; } |
848b9d76 | 311 | openlog(s, f, l) char *s; {} |
d5dc2acf DS |
312 | char * optarg; |
313 | int optind; | |
2b3e2cdd | 314 | pause() {;} |
d39f24e1 | 315 | perror(s) char *s; {} |
d5dc2acf | 316 | psignal(sig, s) unsigned sig; char *s; {} |
d39f24e1 SL |
317 | qsort( b, n, w, c ) char *b; int (*c)(); {;} |
318 | int rand(){ return 1; } | |
319 | long random() { return 1L; } | |
d5dc2acf | 320 | int rcmd(a, rp, lu, ru, c, f) char **a, *lu, *ru, *c; u_short rp; int *f; { return 0; } |
d39f24e1 SL |
321 | char * re_comp(s) char *s ; { return s; } |
322 | int re_exec(s) char *s ; { return 1; } | |
d5dc2acf | 323 | struct direct * readdir( p ) DIR *p; { return (struct direct *)NULL; } |
d39f24e1 | 324 | char * realloc(p, n) char *p; unsigned n; { static char c[1]; return(c);} |
d5dc2acf DS |
325 | remque(elem) struct qelem *elem; { ; } |
326 | int rexec(a, rp, n, p, c, f) char **a, *n, *p, *c; u_short rp; int *f; { return 0; } | |
d39f24e1 | 327 | char * rindex(s, c) char *s, c; { return s; } |
d5dc2acf DS |
328 | int rresvport(p) int *p; { return 0; } |
329 | int ruserok(rh, su, ru, lu) char *rh, *ru, *lu; { return 0; } | |
d39f24e1 SL |
330 | int scandir(d, n, s, c) char *d; struct direct *(*n[]); int (*s)(),(*c)(); |
331 | { return 1; } | |
332 | void seekdir( p, l) DIR *p; long l; {} | |
d5dc2acf DS |
333 | int setegid(egid) gid_t egid; { return 0; } |
334 | int seteuid(euid) uid_t euid; { return 0; } | |
d39f24e1 SL |
335 | int setfsent() { return 0; } |
336 | int setgrent() { return 0; } | |
f8eedcbc | 337 | int setgid(g) gid_t g; { return(0); } |
d5dc2acf DS |
338 | sethostent(stayopen) { ; } |
339 | sethostfile(name) char *name; { ; } | |
d39f24e1 SL |
340 | int setjmp(e) jmp_buf e; { return(0); } |
341 | setkey(k) char *k; {} | |
848b9d76 | 342 | int setlogmask(m) { return(0); } |
d5dc2acf DS |
343 | setnetent(stayopen) { ; } |
344 | setprotoent(stayopen) { ; } | |
b7bed598 | 345 | setpwent() {} |
20d1eaee | 346 | void setpwfile(file) char *file; {} |
d5dc2acf DS |
347 | int setrgid(rgid) gid_t rgid; { return 0; } |
348 | int setruid(ruid) uid_t ruid; { return 0; } | |
349 | setservent(stayopen) { ; } | |
350 | char * setstate( st ) char *st; { return st; } | |
351 | setttyent() { ; } | |
f8eedcbc | 352 | int setuid(u) uid_t u; { return(0); } |
d5dc2acf DS |
353 | setusershell() { ; } |
354 | int siginterrupt(sig, flag) { return 0; } | |
d39f24e1 SL |
355 | sleep(i) unsigned i; {} |
356 | int srand(s){ return s; } | |
357 | char * strcat(a, b) char *a, *b; { return a; } | |
b8f704da DS |
358 | char * strcatn(a, b, n) char *a, *b; { return a;} |
359 | char * strchr(s, c) char *s, c; { return s; } | |
4f50d19e | 360 | int strcmp(a, b) char *a, *b; { return(1); } |
40a39704 | 361 | int strcasecmp(a, b) char *a, *b; { return(1); } |
b8f704da | 362 | int strcmpn(a, b, n) char *a, *b; { return(1); } |
d39f24e1 | 363 | char * strcpy(a, b) char *a, *b; { return a; } |
b8f704da DS |
364 | char * strcpyn(a, b, n) char *a, *b; { return a; } |
365 | int strcspn(s, set) char *s, *set; { return(0); } | |
4f50d19e | 366 | int strlen(s) char *s; { return(1); } |
d39f24e1 SL |
367 | char * strncat(a, b, n) char *a, *b; { return a;} |
368 | int strncmp(a, b, n) char *a, *b; { return(1); } | |
40a39704 | 369 | int strncasecmp(a, b, n) char *a, *b; { return(1); } |
d39f24e1 | 370 | char * strncpy(a, b, n) char *a, *b; { return a; } |
a8017d6c | 371 | char * strpbrk(s, brk) char *s, *brk; { return s; } |
b8f704da DS |
372 | char * strrchr(s, c) char *s, c; { return s; } |
373 | int strspn(s, set) char *s, *set; { return(0); } | |
a8017d6c | 374 | char * strtok(s, sep) char *s, *sep; { return s; } |
4f50d19e | 375 | int stty(f, b) struct sgttyb *b; { return(0); } |
d39f24e1 | 376 | swab( f, t, n) char *f, *t; {;} |
848b9d76 RC |
377 | /* VARARGS2 */ |
378 | syslog(l, f) char *f; {} | |
d39f24e1 | 379 | char * sys_errlist[]; |
d5dc2acf | 380 | char * sys_siglist[]; |
d39f24e1 | 381 | int sys_nerr; |
4f50d19e | 382 | int system(s) char *s; { return(0); } |
d39f24e1 SL |
383 | long tell(f) { return((long)0); } |
384 | long telldir( p ) DIR *p; { return 1L; } | |
a58146b7 | 385 | long time(t) long *t; { return( 0L );} |
d5dc2acf | 386 | int times(tmsp) struct tms *tmsp; { return 0; } |
0ec487b1 | 387 | char * timezone( z, d ){ return (char *)0; } |
b8f704da | 388 | char * tmpnam(s) char *s; { return s; } |
d39f24e1 SL |
389 | char * ttyname(f) { return " "; } |
390 | int ttyslot() { return 1; } | |
d5dc2acf DS |
391 | unsigned ualarm(value, interval) unsigned value, interval; { return 0; } |
392 | usleep(useconds) unsigned useconds; { ; } | |
393 | int utime(name, timep) char *name; time_t *timep; { return 0; } | |
9454b747 | 394 | char * valloc(s) unsigned s; { return malloc(s); } |
d5dc2acf DS |
395 | int vlimit(limit, value) { return 0; } |
396 | int vtimes(par, ch) struct vtimes *par, *ch; { return 0; } | |
d39f24e1 SL |
397 | |
398 | /* standard I/O library */ | |
399 | ||
400 | int fclose(f) FILE *f; {return(0);} | |
401 | FILE * fdopen(fd, m) char *m; { return(stdin);} | |
402 | int fflush(f) FILE *f; {return(0);} | |
403 | int fgetc(f) FILE *f; {return 0; } | |
404 | char * fgets( s, l, f ) char *s; FILE *f; { return(s); } | |
405 | int _filbuf( f ) FILE *f; { return 0; } | |
bc3d5c84 | 406 | int _flsbuf( c, f ) unsigned char c; FILE *f; { return 0; } |
d39f24e1 | 407 | FILE * fopen(s,m) char *s, *m; { return(stdin); } |
24ae3669 | 408 | /* VARARGS2 */ |
4f50d19e | 409 | fprintf( f, s ) FILE *f; char *s; {;} |
d39f24e1 | 410 | int fputc(c, f) char c; FILE *f; {return 0; } |
4f50d19e | 411 | fputs(s,f) char *s; FILE *f; {;} |
d39f24e1 SL |
412 | int fread( p, s, n, f ) char *p; FILE *f; {return(1);} |
413 | FILE * freopen(s, m, f) char *s, *m; FILE *f; { return(stdin); } | |
24ae3669 | 414 | /* VARARGS2 */ |
4f50d19e | 415 | fscanf( f, s ) FILE *f; char *s; {return(1);} |
fb6ec1f9 | 416 | int fseek(f, o, p) FILE *f; long o; { return(0); } |
d39f24e1 | 417 | long ftell(f) FILE *f; { return(0L); } |
4f50d19e | 418 | int fwrite( p, s, n, f ) char *p; FILE *f; {return(0);} |
d5dc2acf DS |
419 | #ifndef getc |
420 | int getc(f) FILE *f; { return EOF; } | |
421 | #endif getc | |
d39f24e1 SL |
422 | int getw(f) FILE *f; { return 0;} |
423 | char * gets( s ) char *s; { return(s); } | |
43bce047 | 424 | struct _iobuf _iob[]; |
d39f24e1 SL |
425 | int pclose( f ) FILE *f; { return 0; } |
426 | FILE * popen( c, t ) char *c, *t; { return(stdin); } | |
24ae3669 | 427 | /* VARARGS1 */ |
4f50d19e | 428 | printf( s ) char *s; {;} |
d39f24e1 | 429 | puts(s) char *s;{;} |
d5dc2acf DS |
430 | #ifndef putc |
431 | int putc(c, f) char c; FILE *f; { return 0; } | |
432 | #endif putc | |
d39f24e1 | 433 | int putw(w, f) FILE *f; { return 0;} |
4f50d19e | 434 | rewind(f) FILE *f; {;} |
24ae3669 | 435 | /* VARARGS1 */ |
4f50d19e RH |
436 | scanf( f ) char *f; {return(1); } |
437 | setbuf( f, b ) FILE *f; char *b; {;} | |
d39f24e1 | 438 | setbuffer( f, b, s ) FILE *f; char *b; {;} |
d5dc2acf | 439 | setlinebuf( f ) FILE *f; {;} |
24ae3669 | 440 | /* VARARGS2 */ |
20d1eaee | 441 | int sprintf( s, f ) char *s, *f; { return(1);} |
24ae3669 | 442 | /* VARARGS2 */ |
4f50d19e RH |
443 | sscanf( s, f ) char *s, *f; { return(1); } |
444 | ungetc( c, f ) FILE *f; { return(c); } |