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