/* @(#)llib-lc 1.37 (Berkeley) 5/17/86 */ /* LINTLIBRARY */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /*** SECTION 2 ***/ int errno; int accept(s, a, l) struct sockaddr *a; int *l; { return s; } int access( p, m) char *p; { return 0; } int acct(f) char *f; { return 0;} int adjtime(delta, odelta) struct timeval *delta, *odelta; { return 0; } int bind(s, n, l) struct sockaddr *n; { return 0; } char *brk(a) char *a; { return(a); } int chdir(s) char *s; { return(0); } int chmod(s, m) char *s; { return(0); } int chown(s, u, g) char *s; { return(0); } int chroot( d ) char *d; { return 0; } int close(f) { return(0); } int connect( s, n, l) struct sockaddr *n; { return 0; } int dup(f) { return(f); } int dup2( o, n) { return o; } execve(s, v, e) char *s, *v[], *e[]; {;} _exit(s) {;} int fchmod(f, m) { return(0); } int fchown(f, u, g) { return(0); } int fcntl(f, c, a) { return (0); } int flock( f, o ) { return 0; } int fork() { return(0); } int fsync( f ) { return 0; } int fstat(f, b) struct stat *b; { return(0); } int ftruncate( d, l) off_t l; { return 0;} int getdtablesize() { return 20 ; } gid_t getegid() { return((gid_t)1); } uid_t geteuid() { return((uid_t)1); } gid_t getgid() { return((gid_t)1); } int getgroups( n, g ) int n, *g; { return 0; } long gethostid() { return 1L; } int gethostname( n, l ) char *n; int l; { return 0 ;} int getitimer( w, v ) struct itimerval *v; { return 0; } int getpagesize() { return 1; } int getpeername(s, n, l) struct sockaddr *n; int *l; { return (0); } int getpgrp(p) { return 1; } int getpid() { return(1); } int getppid() { return(1); } int getpriority( w, who) { return 1;} int getrlimit( res, rip) struct rlimit *rip; { return 0;} int getrusage( res, rip) struct rusage *rip; { return 0;} int getsockname(s, name, namelen) char *name; int *namelen; { return(0); } int getsockopt( s, level, opt, buf, len ) char *buf; int *len; { return 0;} int gettimeofday( t, z ) struct timeval *t; struct timezone *z; { return 0;} uid_t getuid() { return((uid_t)1); } int ioctl( d, r, p) u_long r; char *p; { return 0;} int kill(p, s) { return(0); } int killpg( pg, s) { return 0;} int link(a, b) char *a, *b; { return(0); } int listen( s, b ){ return 0; } off_t lseek(f, o, d) off_t o; { return(o); } int lstat(s, b) char *s; struct stat *b; { return(0); } #ifdef notdef int madvise( a, l, b ) char * a; int l, b; { return 0;} int mmap( a, l, p, s, f, o ) char * a; off_t o; { return 0;} int mincore( a, l, v ) char * a; int l; char *v; { return 0; } #endif int mkdir( p, m ) char *p; { return 0; } int mknod(n, m, a) char *n; { return(0); } int mount(s, n, f) char *s, *n; { return(0); } #ifdef notdef int mprotect( a, l, p) char * a; { return 0;} int mremap( a, l, p, s, f) char * a, f; { return 0;} int munmap( a, l) char * a; { return 0;} #endif /* VARARGS2 */ int open(f, m, stuff) char *f; { return(0); } int pipe(f) int f[2]; { return(0); } profil(b, s, o, i) char *b; {;} int ptrace(r, p, a, d) int *a; { return(0); } int quota(c, u, a, ad) char *ad; { return(0); } int read(f, b, l) char *b; { return(l); } int readv( d, v, l) struct iovec *v; { return l; } int readlink( p, b, s ) char *p, *b; { return 1; } reboot( h ) {;} int recv( s, b, l, f ) char *b; { return l ; } int recvfrom( s, b, l, f, fr, fl ) char *b; struct sockaddr *fr; int *fl; { return l; } int recvmsg( s, m, f ) struct msghdr m[]; { return 1; } int rename( f, t ) char *f, *t; { return 0;} int rmdir( p ) char *p; { return 0;} char *sbrk(i) { return((char *)0); } int select( n, r, w, e, t ) fd_set *r, *w, *e; struct timeval *t; { return n; } int send( s, m, l, f ) char *m; { return l; } int sendto( s, m, l, f, t, tl ) char *m; struct sockaddr *t; { return l; } int sendmsg( s, m, l) struct msghdr m[]; { return l; } int setgroups( n, g) int *g; { return 0; } int sethostid( h ) long h; { return 0;} int sethostname( n, l ) char *n; int l; { return 0 ;} int setitimer( w, v, ov ) struct itimerval *v, *ov; { return 0; } int setpgrp( g, pg) { return 0; } int setpriority( w, who, pri ) { return 1;} int setquota(s, f) char *s, *f; { return 0; } int setregid( r, e) int r, e; { return 0; } int setreuid( r, e) int r, e; { return 0; } int setrlimit( res, rip) struct rlimit *rip; { return 0;} /* VARARGS */ int setsockopt( s, level, opt, buf, len ) char *buf; { return 0;} int settimeofday( t, z ) struct timeval *t; struct timezone *z; { return 0;} int shutdown( s, h ){ return 0;} int (*signal(c, f))() int (*f)(); { return(f); } int sigvec(c, f, m) struct sigvec *f, *m; { return 0; } int sigblock(m) { return (m); } int sigsetmask(m) { return (m); } sigpause(m) { ; } int sigreturn(scp) struct sigcontext *scp; { return -1; } int sigstack(ss, oss) struct sigstack *ss, *oss; { return 0 ; } int socket( a, t, p) {return 1;} int socketpair( d, t, p, s ) int s[2]; { return 0; } int stat(s, b) char *s; struct stat *b; { return(0); } #ifdef notdef char * stk( a ) char * a; { return a; } char * sstk( a ) int a; { return (char *)0; } #endif int swapon( s ) char *s; { return 0;} int symlink( t, f) char *t, *f; { return 0;} sync(){;} int truncate( p, l) char *p; off_t l; { return 0;} int umask( n ) { return n; } int umount(s) char *s; { return 0; } int unlink(s) char *s; { return(0); } int utimes( f, t ) char *f; struct timeval t[2]; { return 0 ;} int vfork() { return(0); } vhangup() { ; } int wait(s) union wait *s; { return(1); } int wait3( s, o, r) union wait *s; struct rusage *r; { return 1;} int write(f, b, l) char *b; { return(l); } int writev( f, v, l) struct iovec *v; { return l; } /*** SECTION 3 ***/ struct qelem { /* this should really be defined in an include file */ struct qelem *q_forw; struct qelem *q_back; char data[1]; } /* antique system calls and unclassified */ _longjmp( e, v) jmp_buf e; {;} int _setjmp(e) jmp_buf e; { return(0); } abort() {;} int abs(i) int i; { return(i); } int alarm(s) unsigned s; { return(s); } alphasort( d1, d2) struct direct **d1, **d2; { return 0;} char * asctime(t) struct tm *t; { return(""); } double atof(s) char *s; { return(1.); } int atoi(s) char *s; { return 1; } long atol(s) char *s; { return 1L; } int bcmp(b1, b2, length) char *b1, *b2; { return 0; } bcopy(src, dst, length) char *src, *dst; { ; } bzero(b, length) char *b; { ; } char * calloc(n,s) unsigned n, s; { static char c[1]; return(c); } void closedir( p ) DIR *p; {} closelog() {} int creat(s, m) char *s; { return(0); } char * crypt(k,s) char *k, *s; { return(""); } char * ctime(c) long *c;{ return(""); } char _ctype_[]; DBM * dbm_open(file, flags, mode) char *file; { return (DBM *) 0; } void dbm_close(db) DBM *db; { ; } datum dbm_fetch(db, key) DBM *db; datum key; { return key; } int dbm_store(db, key, cont, flags) DBM *db; datum key, cont; { return 0; } int dbm_delete(db, key) DBM *db; datum key; { return 0; } datum dbm_firstkey(db) DBM *db; { datum key; return key; } datum dbm_nextkey(db) DBM *db; { datum key; return key; } char * ecvt(v, n, d, s) double v; int *d, *s; { return(""); } encrypt(s, i) char *s; {} int endfsent() { return 0; } int endgrent() { return 0; } endhostent() { ; } endnetent() { ; } endprotoent() { ; } endpwent() {} endservent() { ; } endttyent() { ; } endusershell() { ; } char ** environ; /* VARARGS */ execl(f, a) char *f, *a; {;} /* VARARGS */ execle(f, a) char *f, *a; {;} /* VARARGS */ execlp(f, a) char *f, *a; {;} execv(s, v) char *s, *v[]; {;} execvp(s, v) char *s, *v[]; {;} exect(s, v, e) char *s, *v[], *e[]; {;} exit(s) {;} char * fcvt(v, n, d, s) double v; int *d, *s; { return(""); } int ffs(i) { return i; } free(p) char *p; {;} double frexp( v, e) double v; int *e; { return v; } ftime(tp) struct timeb *tp; { ; } char * gcvt(v, n, b) double v; char *b; { return(""); } struct disktab * getdiskbyname(name) char *name; { return (struct disktab *) 0; } char * getenv( n ) char *n; { return n; } struct fstab * getfsent() { return (struct fstab *)NULL; } struct fstab * getfsspec( n ) char *n; { return (struct fstab *)NULL; } struct fstab * getfsfile( n ) char *n; { return (struct fstab *)NULL; } struct fstab * getfstype( t ) char *t; { return (struct fstab *)NULL; } struct group * getgrent() { return (struct group *)NULL; } struct group * getgrgid( n ) { return (struct group *)NULL; } struct group * getgrnam( n ) char *n; { return (struct group *)NULL; } struct hostent * gethostbyaddr(addr, len, type) char *addr; { return (struct hostent *) 0; } struct hostent * gethostbyname(name) char *name; { return (struct hostent *) 0; } struct hostent * gethostent() { return (struct hostent *) 0; } char * getlogin(){ return " "; } struct netent * getnetbyaddr(net, type) { return (struct netent *) 0; } struct netent * getnetbyname(name) char *name; { return (struct netent *) 0; } struct netent * getnetent() { return (struct netent *) 0; } int getopt(argc, argv, optstr) char **argv, *optstr; { return EOF; } char * getpass( n ) char *n ; { return n; } struct protoent * getprotobyname(name) char *name; { return (struct protoent *) 0; } struct protoent * getprotobynumber(proto) { return (struct protoent *) 0; } struct protoent * getprotoent() { return (struct protoent *) 0; } int getpw( u, b) char *b; { return 0; } struct passwd * getpwent() { return (struct passwd *)NULL; } struct passwd * getpwuid( n ) { return (struct passwd *)NULL; } struct passwd * getpwnam( n ) char *n; { return (struct passwd *)NULL; } struct servent * getservbyname(name, proto) char *name, *proto; { return (struct servent *) 0; } struct servent * getservbyport(port, proto) char *proto; { return (struct servent *) 0; } struct servent * getservent() { return (struct servent *) 0; } struct ttyent * getttynam(name) char *name; { return (struct ttyent *) 0; } char * getusershell() { return (char *) 0; } char * getwd(pathname) char *pathname; { return pathname; } struct tm * gmtime(c) long *c; { return gmtime(c); } int gtty(f, b) struct sgttyb *b; { return(0); } #ifndef htonl u_long htonl(hostlong) u_long hostlong; { return hostlong; } #endif htonl #ifndef htons u_short htons(hostshort) u_short hostshort; { return hostshort; } #endif htons char * index(s, c) char *s, c; { return s; } u_long inet_addr(cp) char *cp; { return 0L; } int inet_lnaof(in) struct in_addr in; { return 0; } int inet_netof(in) struct in_addr in; { return 0; } struct in_addr inet_makeaddr(net, host) { struct in_addr in; return in; } u_long inet_network(cp) char *cp; { return 0L; } char * inet_ntoa(in) struct in_addr in; { return (char *) 0; } int initgroups(uname, agroup) char *uname; { return 0; } char * initstate( s, st, n) unsigned s; char *st; { return st; } insque(elem, pred) struct qelem *elem, pred; { ; } int isatty(f) { return 1; } double ldexp( v, e) double v; { return v; } longjmp( e, v) jmp_buf e; {;} longjmperror() {;} struct tm *localtime(c) long *c; { return localtime(c); } char * malloc(n) unsigned n; {static char c; return(&c);} char * memccpy(t, f, c, n) char *t, *f; { return t; } char * memchr(s, c, n) char *s; { return s; } int memcmp(s1, s2, n) char *s1, *s2; { return 0; } char * memcpy(t, f, n) char *t, *f; { return t; } char * memset(s, c, n) char *s; { return s; } char * mktemp(p) char *p; { return(p);} int mkstemp(p) char *p; { return(0);} double modf( v, p ) double v, *p; { return v; } moncontrol(mode) { ; } monitor(l, h, b, s, n) int (*l)(), (*h)(); short *b; {} monstartup( l, h) int (*l)(), (*h)(); {;} int nice(incr) { return 0; } int nlist( f, n) char *f; struct nlist n[]; { return (0);} struct ns_addr ns_addr(name) char *name; { struct ns_addr ns; return ns; } char * ns_ntoa(addr) struct ns_addr addr; { return (char *) 0; } #ifndef ntohl u_long ntohl(netlong) u_long netlong; { return netlong; } #endif ntohl #ifndef ntohs u_short ntohs(netshort) u_short netshort; { return netshort; } #endif ntohs DIR * opendir( f ) char *f; { return (DIR *)NULL; } openlog(s, f, l) char *s; {} char * optarg; int optind; pause() {;} perror(s) char *s; {} psignal(sig, s) unsigned sig; char *s; {} qsort( b, n, w, c ) char *b; int (*c)(); {;} int rand(){ return 1; } long random() { return 1L; } int rcmd(a, rp, lu, ru, c, f) char **a, *lu, *ru, *c; u_short rp; int *f; { return 0; } char * re_comp(s) char *s ; { return s; } int re_exec(s) char *s ; { return 1; } struct direct * readdir( p ) DIR *p; { return (struct direct *)NULL; } char * realloc(p, n) char *p; unsigned n; { static char c[1]; return(c);} remque(elem) struct qelem *elem; { ; } int rexec(a, rp, n, p, c, f) char **a, *n, *p, *c; u_short rp; int *f; { return 0; } char * rindex(s, c) char *s, c; { return s; } int rresvport(p) int *p; { return 0; } int ruserok(rh, su, ru, lu) char *rh, *ru, *lu; { return 0; } int scandir(d, n, s, c) char *d; struct direct *(*n[]); int (*s)(),(*c)(); { return 1; } void seekdir( p, l) DIR *p; long l; {} int setegid(egid) gid_t egid; { return 0; } int seteuid(euid) uid_t euid; { return 0; } int setfsent() { return 0; } int setgrent() { return 0; } int setgid(g) gid_t g; { return(0); } sethostent(stayopen) { ; } sethostfile(name) char *name; { ; } int setjmp(e) jmp_buf e; { return(0); } setkey(k) char *k; {} int setlogmask(m) { return(0); } setnetent(stayopen) { ; } setprotoent(stayopen) { ; } setpwent() {} setpwfile(file) char *file; {} int setrgid(rgid) gid_t rgid; { return 0; } int setruid(ruid) uid_t ruid; { return 0; } setservent(stayopen) { ; } char * setstate( st ) char *st; { return st; } setttyent() { ; } int setuid(u) uid_t u; { return(0); } setusershell() { ; } int siginterrupt(sig, flag) { return 0; } sleep(i) unsigned i; {} int srand(s){ return s; } char * strcat(a, b) char *a, *b; { return a; } char * strcatn(a, b, n) char *a, *b; { return a;} char * strchr(s, c) char *s, c; { return s; } int strcmp(a, b) char *a, *b; { return(1); } int strcmpn(a, b, n) char *a, *b; { return(1); } char * strcpy(a, b) char *a, *b; { return a; } char * strcpyn(a, b, n) char *a, *b; { return a; } int strcspn(s, set) char *s, *set; { return(0); } int strlen(s) char *s; { return(1); } char * strncat(a, b, n) char *a, *b; { return a;} int strncmp(a, b, n) char *a, *b; { return(1); } char * strncpy(a, b, n) char *a, *b; { return a; } char * strpbrk(s, brk) char *s, *brk; { return s; } char * strrchr(s, c) char *s, c; { return s; } int strspn(s, set) char *s, *set; { return(0); } char * strtok(s, sep) char *s, *sep; { return s; } int stty(f, b) struct sgttyb *b; { return(0); } swab( f, t, n) char *f, *t; {;} /* VARARGS2 */ syslog(l, f) char *f; {} char * sys_errlist[]; char * sys_siglist[]; int sys_nerr; int system(s) char *s; { return(0); } long tell(f) { return((long)0); } long telldir( p ) DIR *p; { return 1L; } long time(t) long *t; { return( 0L );} int times(tmsp) struct tms *tmsp; { return 0; } char * timezone( z, d ){ return (char *)0; } char * tmpnam(s) char *s; { return s; } char * ttyname(f) { return " "; } int ttyslot() { return 1; } unsigned ualarm(value, interval) unsigned value, interval; { return 0; } usleep(useconds) unsigned useconds; { ; } int utime(name, timep) char *name; time_t *timep; { return 0; } char * valloc(s) unsigned s; { return malloc(s); } int vlimit(limit, value) { return 0; } int vtimes(par, ch) struct vtimes *par, *ch; { return 0; } /* standard I/O library */ int fclose(f) FILE *f; {return(0);} FILE * fdopen(fd, m) char *m; { return(stdin);} int fflush(f) FILE *f; {return(0);} int fgetc(f) FILE *f; {return 0; } char * fgets( s, l, f ) char *s; FILE *f; { return(s); } int _filbuf( f ) FILE *f; { return 0; } int _flsbuf( c, f ) unsigned char c; FILE *f; { return 0; } FILE * fopen(s,m) char *s, *m; { return(stdin); } /* VARARGS2 */ fprintf( f, s ) FILE *f; char *s; {;} int fputc(c, f) char c; FILE *f; {return 0; } fputs(s,f) char *s; FILE *f; {;} int fread( p, s, n, f ) char *p; FILE *f; {return(1);} FILE * freopen(s, m, f) char *s, *m; FILE *f; { return(stdin); } /* VARARGS2 */ fscanf( f, s ) FILE *f; char *s; {return(1);} int fseek(f, o, p) FILE *f; long o; { return(0); } long ftell(f) FILE *f; { return(0L); } int fwrite( p, s, n, f ) char *p; FILE *f; {return(0);} #ifndef getc int getc(f) FILE *f; { return EOF; } #endif getc int getw(f) FILE *f; { return 0;} char * gets( s ) char *s; { return(s); } struct _iobuf _iob[]; int pclose( f ) FILE *f; { return 0; } FILE * popen( c, t ) char *c, *t; { return(stdin); } /* VARARGS1 */ printf( s ) char *s; {;} puts(s) char *s;{;} #ifndef putc int putc(c, f) char c; FILE *f; { return 0; } #endif putc int putw(w, f) FILE *f; { return 0;} rewind(f) FILE *f; {;} /* VARARGS1 */ scanf( f ) char *f; {return(1); } setbuf( f, b ) FILE *f; char *b; {;} setbuffer( f, b, s ) FILE *f; char *b; {;} setlinebuf( f ) FILE *f; {;} /* VARARGS2 */ char * sprintf( s, f ) char *s, *f; { return(s);} /* VARARGS2 */ sscanf( s, f ) char *s, *f; { return(1); } ungetc( c, f ) FILE *f; { return(c); }