1/* llib-lc 1.13 84/11/20 */ 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; } 68off_t lseek(f, o, d) off_t 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 /* VARARGS2 */ 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; } 165char ** environ; 166 /* VARARGS */ 167 execl(f, a) char *f, *a; {;} 168 /* VARARGS */ 169 execle(f, a) char *f, *a; {;} 170 execv(s, v) char *s, *v[]; {;} 171 exit(s) {;} 172char * fcvt(v, n, d, s) double v; int *d, *s; { return(""); } 173 free(p) char *p; {;} 174double frexp( v, e) double v; int *e; { return v; } 175char * gcvt(v, n, b) double v; char *b; { return(""); } 176char * getenv( n ) char *n; { return n; } 177struct fstab * getfsent() { return (struct fstab *)NULL; } 178struct fstab * getfsspec( n ) char *n; { return (struct fstab *)NULL; } 179struct fstab * getfsfile( n ) char *n; { return (struct fstab *)NULL; } 180struct fstab * getfstype( t ) char *t; { return (struct fstab *)NULL; } 181struct group * getgrent() { return (struct group *)NULL; } 182struct group * getgrgid( n ) { return (struct group *)NULL; } 183struct group * getgrnam( n ) char *n; { return (struct group *)NULL; } 184char * getlogin(){ return " "; } 185char * getpass( n ) char *n ; { return n; } 186int getpw( u, b) char *b; { return 0; } 187struct passwd * getpwent() { return (struct passwd *)NULL; } 188struct passwd * getpwuid( n ) { return (struct passwd *)NULL; } 189struct passwd * getpwnam( n ) char *n; { return (struct passwd *)NULL; } 190struct tm * gmtime(c) time_t *c; { return gmtime(c); } 191int gtty(f, b) struct sgttyb *b; { return(0); } 192char * index(s, c) char *s, c; { return s; } 193long * initstate( s, st, n) unsigned s; long *st; { return st; } 194int isatty(f) { return 1; } 195double ldexp( v, e) double v; { return v; } 196 longjmp( e, v) jmp_buf e; {;} 197struct tm *localtime(c) time_t *c; { return localtime(c); } 198char * malloc(n) unsigned n; {static char c; return(&c);} 199double modf( v, p ) double v, *p; { return v; } 200char * mktemp(p) char *p; { return(p);} 201 monitor(l, h, b, s, n) int (*l)(), (*h)(); short *b; {} 202 monstartup( l, h) int (*l)(), (*h)(); {;} 203 nlist( f, n) char *f; struct nlist n[]; {;} 204DIR * opendir( f ) char *f; { return (DIR *)NULL; } 205 pause() {;} 206 perror(s) char *s; {} 207struct direct * readdir( p ) DIR *p; { return (struct direct *)NULL; } 208 qsort( b, n, w, c ) char *b; int (*c)(); {;} 209int rand(){ return 1; } 210long random() { return 1L; } 211char * re_comp(s) char *s ; { return s; } 212int re_exec(s) char *s ; { return 1; } 213char * realloc(p, n) char *p; unsigned n; { static char c[1]; return(c);} 214char * rindex(s, c) char *s, c; { return s; } 215int scandir(d, n, s, c) char *d; struct direct *(*n[]); int (*s)(),(*c)(); 216 { return 1; } 217void seekdir( p, l) DIR *p; long l; {} 218int setfsent() { return 0; } 219int setgrent() { return 0; } 220int setgid(g) { return(0); } 221int setjmp(e) jmp_buf e; { return(0); } 222 setkey(k) char *k; {} 223int setpwent() { return 0; } 224long * setstate( st ) long *st; { return st; } 225int setuid(u) { return(0); } 226 sleep(i) unsigned i; {} 227int srand(s){ return s; } 228char * strcat(a, b) char *a, *b; { return a; } 229int strcmp(a, b) char *a, *b; { return(1); } 230char * strcpy(a, b) char *a, *b; { return a; } 231int strlen(s) char *s; { return(1); } 232char * strncat(a, b, n) char *a, *b; { return a;} 233int strncmp(a, b, n) char *a, *b; { return(1); } 234char * strncpy(a, b, n) char *a, *b; { return a; } 235int stty(f, b) struct sgttyb *b; { return(0); } 236 swab( f, t, n) char *f, *t; {;} 237char * sys_errlist[]; 238int sys_nerr; 239int system(s) char *s; { return(0); } 240long tell(f) { return((long)0); } 241long telldir( p ) DIR *p; { return 1L; } 242time_t time(t) time_t *t; { return( 0 );} 243char * timezone( z, d ){} 244char * ttyname(f) { return " "; } 245int ttyslot() { return 1; } 246char * valloc(s) unsigned s; { return malloc(s); } 247 248 /* standard I/O library */ 249 250int fclose(f) FILE *f; {return(0);} 251FILE * fdopen(fd, m) char *m; { return(stdin);} 252int fflush(f) FILE *f; {return(0);} 253int fgetc(f) FILE *f; {return 0; } 254char * fgets( s, l, f ) char *s; FILE *f; { return(s); } 255int _filbuf( f ) FILE *f; { return 0; } 256/* the unsigned is due to putc and putchar macro expansion */ 257int _flsbuf( c, f ) unsigned c; FILE *f; { return 0; } 258FILE * fopen(s,m) char *s, *m; { return(stdin); } 259 /* VARARGS */ 260 fprintf( f, s ) FILE *f; char *s; {;} 261int fputc(c, f) char c; FILE *f; {return 0; } 262 fputs(s,f) char *s; FILE *f; {;} 263int fread( p, s, n, f ) char *p; FILE *f; {return(1);} 264FILE * freopen(s, m, f) char *s, *m; FILE *f; { return(stdin); } 265 /* VARARGS */ 266 fscanf( f, s ) FILE *f; char *s; {return(1);} 267 fseek(f, o, p) FILE *f; long o; { return(0); } 268long ftell(f) FILE *f; { return(0L); } 269int fwrite( p, s, n, f ) char *p; FILE *f; {return(0);} 270int getw(f) FILE *f; { return 0;} 271char * gets( s ) char *s; { return(s); } 272struct _iobuf _iob[_NFILE]; 273int pclose( f ) FILE *f; { return 0; } 274FILE * popen( c, t ) char *c, *t; { return(stdin); } 275 /* VARARGS */ 276 printf( s ) char *s; {;} 277 puts(s) char *s;{;} 278int putw(w, f) FILE *f; { return 0;} 279 rewind(f) FILE *f; {;} 280 /* VARARGS */ 281 scanf( f ) char *f; {return(1); } 282 setbuf( f, b ) FILE *f; char *b; {;} 283 setbuffer( f, b, s ) FILE *f; char *b; {;} 284 /* VARARGS */ 285char * sprintf( s, f ) char *s, *f; { return(s);} 286 /* VARARGS */ 287 sscanf( s, f ) char *s, *f; { return(1); } 288 ungetc( c, f ) FILE *f; { return(c); } 289