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