1/* llib-lc 1.4 83/04/12 */ 2/* LINTLIBRARY */ 3#include <sys/types.h> 4#include <sys/descrip.h> 5#include <fstab.h> 6#include <grp.h> 7#include <sys/dir.h> 8#include <nlist.h> 9#include <pwd.h> 10#include <setjmp.h> 11#include <stdio.h> 12#include <sgtty.h> 13#include <signal.h> 14#include <time.h> 15#include <resource.h> 16#include <wait.h> 17#include <sys/socket.h> 18#include <sys/stat.h> 19#include <sys/uio.h> 20 21 /*** SECTION 2 ***/ 22int errno; 23 24int accept(s, a, l) struct sockaddr *a; int *l; { return s; } 25int access( p, m) char *p; { return 0; } 26int acct(f) char *f; { return 0;} 27int bind(s, n, l) struct sockaddr *n; { return 0; } 28char *brk(a) char *a; { return(a); } 29int chdir(s) char *s; { return(0); } 30int chmod(s, m) char *s; { return(0); } 31int chown(s, u, g) char *s; { return(0); } 32int chroot( d ) char *d; { return 0; } 33int close(f) { return(0); } 34int connect( s, n, l) struct sockaddr *n; { return 0; } 35int dup(f) { return(f); } 36int dup2( o, n) { return o; } 37 execve(s, v, e) char *s, *v[], *e[]; {;} 38 _exit(s) {;} 39int flock( f, o ) { return 0; } 40int fork() { return(0); } 41int fsync( f ) { return 0; } 42int fstat(f, b) struct stat *b; { return(0); } 43int ftruncate( d, l) { return 0;} 44int getdopt( x, w, d ) struct dopt *d; { return 0; } 45int getdtablesize() { return 20 ; } 46int getegid() { return(1); } 47int geteuid() { return(1); } 48int getgid() { return(1); } 49int getgroups( n, g ) int *n, *g; { return 0; } 50int gethostid() { return 1; } 51int gethostname( n, l ) char *n; int *l; { return 0 ;} 52int getitimer( w, v ) struct itimerval *v; { return 0; } 53int getpagesize() { return 1; } 54int getpgrp(p) { return 1; } 55int getpid() { return(1); } 56int getppid() { return(1); } 57int getpriority( w, who) { return 1;} 58int getrlimit( res, rip) struct rlimit *rip; { return 0;} 59int getrusage( res, rip) struct rusage *rip; { return 0;} 60int getsockname(s, name, namelen) char *name; int *namelen; { return(0); } 61int getsockopt( s, level, opt, buf, len ) { return 0;} 62int gettimeofday( t, z ) struct timeval *t; struct timezone *z; { return 0;} 63int getuid() { return(1); } 64int ioctl( d, r, p) char *p; { return 0;} 65int kill(p, s) { return(0); } 66int killpg( pg, s) { return 0;} 67int link(a, b) char *a, *b; { return(0); } 68int listen( s, b ){ return 0; } 69long lseek(f, o, d) long o; { return(0); } 70int lstat(s, b) char *s; struct stat *b; { return(0); } 71int madvise( a, l, b ) char * a; int l, b; { return 0;} 72int mmap( a, l, p, s, f, o ) char * a; off_t o; { return 0;} 73int mincore( a, l, v ) char * a; int l; char *v; { return 0; } 74int mkdir( p, m ) char *p; { return 0; } 75int mknod(n, m, a) char *n; { return(0); } 76int mount(s, n, f) char *s, *n; { return(0); } 77int mprotect( a, l, p) char * a; { return 0;} 78int mremap( a, l, p, s, f) char * a, f; { return 0;} 79int munmap( a, l) char * a; { return 0;} 80 /* VARARGS */ 81int open(f, m, stuff) char *f; { return(0); } 82 pause() {;} 83int pipe(f) int f[2]; { return(0); } 84 profil(b, s, o, i) char *b; {;} 85int ptrace(r, p, a, d) { return(0); } 86int read(f, b, l) char *b; { return(l); } 87int readv( d, v, l) struct iovec *v; { return l; } 88int readlink( p, b, s ) char *p, *b; { return 1; } 89 reboot( h ) {;} 90int recv( s, b, l, f ) char *b; { return l ; } 91int recvfrom( s, b, l, f, fr, fl ) char *b; struct sockaddr *fr; int *fl; 92 { return l; } 93int recvmsg( s, m, f ) struct msghdr m[]; { return 1; } 94int rename( f, t ) char *f, *t; { return 0;} 95int rmdir( p ) char *p; { return 0;} 96char *sbrk(i) { return((char *)0); } 97int select( n, r, w, e, t ) int *r, *w, *e; struct timeval *t; { return n; } 98int send( s, m, l, f ) char *m; { return l; } 99int sendto( s, m, l, f, t, tl ) char *m; struct sockaddr *t; { return l; } 100int sendmsg( s, m, l) struct msghdr m[]; { return l; } 101int setdopt( x, w, d ) struct dopt *d; { return 0; } 102int setgroups( n, g) int *g; { return 0; } 103int sethostid( h ) { return 0;} 104int sethostname( n, l ) char *n; int l; { return 0 ;} 105int setitimer( w, v ) struct itimerval *v; { return 0; } 106int setpgrp( g, pg) { return 0; } 107int setpriority( w, who, pri ) { return 1;} 108int setregid( r, e){ return 0; } 109int setreuid( r, e){ return 0; } 110int setrlimit( res, rip) struct rlimit *rip; { return 0;} 111 /* VARARGS */ 112int setsockopt( s, level, opt, buf, len ) { return 0;} 113int settimeofday( t, z ) struct timeval *t; struct timezone *z; { return 0;} 114int shutdown( s, h ){ return 0;} 115int (*signal(c, f))() int (*f)(); { return(f); } 116int (*sigsys(c, f))() int (*f)(); { return(f); } 117int socket( a, t, p) {return 1;} 118int socketpair( d, t, p, s ) int s[2]; { return 0; } 119int stat(s, b) char *s; struct stat *b; { return(0); } 120char * stk( a ) char * a; { return a; } 121char * sstk( a ) int a; { return (char *)0; } 122int swapon( b, s, q ) char *b; { return 0;} 123int swapoff( i, m) { return 0;} 124int symlink( t, f) char *t, *f; { return 0;} 125 sync(){;} 126int truncate( p, l) char *p; { return 0;} 127int umask( n ) { return n; } 128int unlink(s) char *s; { return(0); } 129int utimes( f, t ) char *f; struct timeval *t[2]; { return 0 ;} 130int vfork() { return(0); } 131int wait(s) union wait *s; { return(1); } 132int wait3( s, o, r) union wait s; struct rusage *r; { return 1;} 133int write(f, b, l) char *b; { return(l); } 134int writev( f, v, l) struct iovec *v; { return l; } 135 136 137 /*** SECTION 3 ***/ 138 139 /* antique system calls and unclassified */ 140 abort() {;} 141int abs(i) int i; { return(i); } 142int alarm(s) unsigned s; { return(s); } 143 alphasort( d1, d2) struct direct *d1, *d2; { return 0;} 144char * asctime(t) struct tm *t; { return(""); } 145double atof(s) char *s; { return(1.); } 146int atoi(s) char *s; { return 1; } 147long atol(s) char *s; { return 1L; } 148char * calloc(n,s) unsigned n, s; { static char c[1]; return(c); } 149void closedir( p ) DIR *p; {} 150int creat(s, m) char *s; { return(0); } 151char * crypt(k,s) char *k, *s; { return(""); } 152char * ctime(c) time_t *c;{ return(""); } 153char _ctype_[]; 154char * ecvt(v, n, d, s) double v; int *d, *s; { return(""); } 155 encrypt(s, i) char *s; {} 156int endfsent() { return 0; } 157int endgrent() { return 0; } 158int endpwent() { return 0; } 159 /* VARARGS */ 160 execl(f, a) char *f, *a; {;} 161 /* VARARGS */ 162 execle(f, a) char *f, *a; {;} 163 execv(s, v) char *s, *v[]; {;} 164 exit(s) {;} 165char * fcvt(v, n, d, s) double v; int *d, *s; { return(""); } 166 free(p) char *p; {;} 167double frexp( v, e) double v; int *e; { return v; } 168char * gcvt(v, n, b) double v; char *b; { return(""); } 169char * getenv( n ) char *n; { return n; } 170struct fstab * getfsent() { return (struct fstab *)NULL; } 171struct fstab * getfsspec( n ) char *n; { return (struct fstab *)NULL; } 172struct fstab * getfsfile( n ) char *n; { return (struct fstab *)NULL; } 173struct group * getgrent() { return (struct group *)NULL; } 174struct group * getgrgid( n ) { return (struct group *)NULL; } 175struct group * getgrnam( n ) char *n; { return (struct group *)NULL; } 176char * getlogin(){ return " "; } 177char * getpass( n ) char *n ; { return n; } 178int getpw( u, b) char *b; { return 0; } 179struct passwd * getpwent() { return (struct passwd *)NULL; } 180struct passwd * getpwuid( n ) { return (struct passwd *)NULL; } 181struct passwd * getpwnam( n ) char *n; { return (struct passwd *)NULL; } 182struct tm * gmtime(c) time_t *c; { return gmtime(c); } 183int gtty(f, b) struct sgttyb *b; { return(0); } 184char * index(s, c) char *s, c; { return s; } 185long * initstate( s, st, n) unsigned s; long *st; { return st; } 186int isatty(f) { return 1; } 187double ldexp( v, e) double v; { return v; } 188 longjmp( e, v) jmp_buf *e; {;} 189struct tm *localtime(c) time_t *c; { return localtime(c); } 190char * malloc(n) unsigned n; {static char c; return(&c);} 191double modf( v, p ) double v, *p; { return v; } 192char * mktemp(p) char *p; { return(p);} 193 monitor(l, h, b, s, n) int (*l)(), (*h)(); short *b; {} 194 monstartup( l, h) int (*l)(), (*h)(); {;} 195 nlist( f, n) char *f; struct nlist n[]; {;} 196DIR * opendir( f ) char *f; { return (DIR *)NULL; } 197 perror(s) char *s; {} 198struct direct * readdir( p ) DIR *p; { return (struct direct *)NULL; } 199 qsort( b, n, w, c ) char *b; int (*c)(); {;} 200int rand(){ return 1; } 201long random() { return 1L; } 202char * re_comp(s) char *s ; { return s; } 203int re_exec(s) char *s ; { return 1; } 204char * realloc(p, n) char *p; unsigned n; { static char c[1]; return(c);} 205char * rindex(s, c) char *s, c; { return s; } 206int scandir(d, n, s, c) char *d; struct direct *(*n[]); int (*s)(),(*c)(); 207 { return 1; } 208void seekdir( p, l) DIR *p; long l; {} 209int setfsent() { return 0; } 210int setgrent() { return 0; } 211int setgid(g) { return(0); } 212int setjmp(e) jmp_buf e; { return(0); } 213 setkey(k) char *k; {} 214int setpwent() { return 0; } 215long * setstate( st ) long *st; { return st; } 216int setuid(u) { return(0); } 217 sleep(i) unsigned i; {} 218int srand(s){ return s; } 219char * strcat(a, b) char *a, *b; { return a; } 220int strcmp(a, b) char *a, *b; { return(1); } 221char * strcpy(a, b) char *a, *b; { return a; } 222int strlen(s) char *s; { return(1); } 223char * strncat(a, b, n) char *a, *b; { return a;} 224int strncmp(a, b, n) char *a, *b; { return(1); } 225char * strncpy(a, b, n) char *a, *b; { return a; } 226int stty(f, b) struct sgttyb *b; { return(0); } 227 swab( f, t, n) char *f, *t; {;} 228char * sys_errlist[]; 229int sys_nerr; 230int system(s) char *s; { return(0); } 231long tell(f) { return((long)0); } 232long telldir( p ) DIR *p; { return 1L; } 233time_t time(t) time_t *t; { return( 0 );} 234char * timezone( z, d ){} 235char * ttyname(f) { return " "; } 236int ttyslot() { return 1; } 237char * valloc(s) unsigned s; { return malloc(s); } 238 239 /* standard I/O library */ 240 241int fclose(f) FILE *f; {return(0);} 242FILE * fdopen(fd, m) char *m; { return(stdin);} 243int fflush(f) FILE *f; {return(0);} 244int fgetc(f) FILE *f; {return 0; } 245char * fgets( s, l, f ) char *s; FILE *f; { return(s); } 246int _filbuf( f ) FILE *f; { return 0; } 247int _flsbuf( c, f ) FILE *f; { return c; } 248FILE * fopen(s,m) char *s, *m; { return(stdin); } 249 /* VARARGS */ 250 fprintf( f, s ) FILE *f; char *s; {;} 251int fputc(c, f) char c; FILE *f; {return 0; } 252 fputs(s,f) char *s; FILE *f; {;} 253int fread( p, s, n, f ) char *p; FILE *f; {return(1);} 254FILE * freopen(s, m, f) char *s, *m; FILE *f; { return(stdin); } 255 /* VARARGS */ 256 fscanf( f, s ) FILE *f; char *s; {return(1);} 257 fseek(f, o, p) FILE *f; long o; { return(0); } 258long ftell(f) FILE *f; { return(0L); } 259int fwrite( p, s, n, f ) char *p; FILE *f; {return(0);} 260int getw(f) FILE *f; { return 0;} 261char * gets( s ) char *s; { return(s); } 262struct _iobuf _iob[_NFILE]; 263int pclose( f ) FILE *f; { return 0; } 264FILE * popen( c, t ) char *c, *t; { return(stdin); } 265 /* VARARGS */ 266 printf( s ) char *s; {;} 267 puts(s) char *s;{;} 268int putw(w, f) FILE *f; { return 0;} 269 rewind(f) FILE *f; {;} 270 /* VARARGS */ 271 scanf( f ) char *f; {return(1); } 272 setbuf( f, b ) FILE *f; char *b; {;} 273 setbuffer( f, b, s ) FILE *f; char *b; {;} 274 /* VARARGS */ 275char * sprintf( s, f ) char *s, *f; { return(s);} 276 /* VARARGS */ 277 sscanf( s, f ) char *s, *f; { return(1); } 278 ungetc( c, f ) FILE *f; { return(c); } 279