Annotation of 40BSD/cmd/lint/llib-lc, revision 1.1.1.1

1.1       root        1:        /* LINTLIBRARY */
                      2: #include <stdio.h>
                      3: #include <sgtty.h>
                      4: #include <signal.h>
                      5: #include <sys/types.h>
                      6: #include <sys/stat.h>
                      7: #include <time.h>
                      8: int    errno;
                      9: int    alarm(s) unsigned s; { return(s); }
                     10: char   *brk(a) char *a; { return(a); }
                     11: int    chdir(s) char *s; { return(0); }
                     12: int    chmod(s, m) char *s; { return(0); }
                     13: int    chown(s, u, g) char *s; { return(0); }
                     14: int    close(f) { return(0); }
                     15: int    creat(s, m) char *s; { return(0); }
                     16: int    dup(f) { return(f); }
                     17:        /* VARARGS */
                     18:        execl(f, a) char *f, *a; {;}
                     19:        execv(s, v) char *s, *v[]; {;}
                     20:        exit(s) {;}
                     21: int    fork() { return(0); }
                     22: int    fstat(f, b) struct stat *b; { return(0); }
                     23: int    getgid() { return(1); }
                     24: int    getegid() { return(1); }
                     25: int    getpid() { return(1); }
                     26: int    getuid() { return(1); }
                     27: int    geteuid() { return(1); }
                     28: int    gtty(f, b) struct sgttyb *b; { return(0); }
                     29: int    kill(p, s) { return(0); }
                     30: int    link(a, b) char *a, *b; { return(0); }
                     31: long   lseek(f, o, d) long o; { return(0); }
                     32: int    mknod(n, m, a) char *n; { return(0); }
                     33: char   *mktemp(p) char *p; { return(p);}
                     34: int    mount(s, n, f) char *s, *n; { return(0); }
                     35: int    nice(p) { return(0); }
                     36: int    open(f, m) char *f; { return(0); }
                     37:        pause() {;}
                     38: int    pipe(f) int f[2]; { return(0); }
                     39:        profil(b, s, o, i) char *b; {;}
                     40: int    ptrace(r, p, a, d) { return(0); }
                     41: int    read(f, b, l) char *b; { return(l); }
                     42: char   *sbrk(i) { return((char *)0); }
                     43: int    setgid(g) { return(0); }
                     44: int    setuid(u) { return(0); }
                     45: int    (*signal(c, f))() int (*f)(); { return(f); }
                     46: int    stat(s, b) char *s; struct stat *b; { return(0); }
                     47: char   *strcat(a, b) char *a, *b; { ; }
                     48: int    strcmp(a, b) char *a, *b; { return(1); }
                     49: char   *strcpy(a, b) char *a, *b; { ; }
                     50: int    strlen(s) char *s; { return(1); }
                     51: int    stty(f, b) struct sgttyb *b; { return(0); }
                     52: long   tell(f) { return((long)0); }
                     53: int    system(s) char *s; { return(0); }
                     54: time_t time(t) time_t *t; { return( 0 );}
                     55: int    unlink(s) char *s; { return(0); }
                     56: int    wait(s) int *s; { return(1); }
                     57: int    write(f, b, l) char *b; { return(l); }
                     58: char   *calloc(n,s) unsigned n, s; { static char c[1]; return(c); }
                     59: char   *malloc(n) unsigned n; {static char c; return(&c);}
                     60: char   *realloc(p, n) char *p; unsigned n; { static char c; return(&c);}
                     61:        free(p) char *p; {;}
                     62:        fclose(f) FILE *f; {return(0);}
                     63:        fflush(f) FILE *f; {return(0);}
                     64: char   *fgets( s, l, f ) char *s; FILE *f; { return(s); }
                     65: FILE   *fopen(s,m) char *s, *m; { return(stdin); }
                     66: FILE   *freopen(s, m, f) char *s, *m; FILE *f; { return(stdin); }
                     67: FILE   *fdopen(fd, m) char *m; { return(stdin);}
                     68:        /* VARARGS */
                     69:        fprintf( f, s ) FILE *f; char *s; {;}
                     70:        fputs(s,f) char *s; FILE *f; {;}
                     71:        fread( p, s, n, f ) char *p; FILE *f; {return(1);}
                     72:        /* VARARGS */
                     73:        fscanf( f, s ) FILE *f; char *s; {return(1);}
                     74: int    fwrite( p, s, n, f ) char *p; FILE *f; {return(0);}
                     75:        intss(){return(1); }
                     76:        /* VARARGS */
                     77:        printf( s ) char *s; {;}
                     78:        rewind(f) FILE *f; {;}
                     79: long   ftell(f) FILE *f; { return(0L); }
                     80:        fseek(f, o, p) FILE *f; long o; { return(0); }
                     81:        /* VARARGS */
                     82:        scanf( f ) char *f; {return(1); }
                     83:        setbuf( f, b ) FILE *f; char *b; {;}
                     84:        /* VARARGS */
                     85: char   *sprintf( s, f ) char *s, *f; { return(s);}
                     86:        /* VARARGS */
                     87:        sscanf( s, f ) char *s, *f; { return(1); }
                     88:        ungetc( c, f ) FILE *f; {  return(c); }
                     89: char   *ctime(c) time_t *c;{ return(""); }
                     90: struct tm *localtime(c) time_t *c; { return localtime(c); }
                     91: struct tm *gmtime(c) time_t *c; { return gmtime(c); }
                     92: char   *asctime(t) struct tm *t; { return(""); }
                     93:        abort() {}
                     94: int    abs(i) int i; { return(i); }
                     95: double atof(s) char *s; { return(1.); }
                     96: char   *crypt(k,s) char *k, *s; { return(""); }
                     97:        setkey(k) char *k; {}
                     98:        encrypt(s, i) char *s; {}
                     99: char   *ecvt(v, n, d, s) double v; int *d, *s; { return(""); }
                    100: char   *fcvt(v, n, d, s) double v; int *d, *s; { return(""); }
                    101: char   *gcvt(v, n, b) double v; char *b; { return(""); }
                    102:        monitor(l, h, b, s, n) int (*l)(), (*h)(); short *b; {}
                    103:        perror(s) char *s; {}
                    104: #include <setjmp.h>
                    105:        setjmp(e) jmp_buf e; { return(0); }
                    106:        sleep(i) unsigned i; {}
                    107: struct _iobuf _iob[_NFILE];
                    108: char   _ctype_[];

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.