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