Annotation of researchv8dc/cmd/lint/llib-lc, revision 1.1

1.1     ! root        1:        /* LINTLIBRARY */
        !             2: #include <setjmp.h>
        !             3: #include <sgtty.h>
        !             4: #include <signal.h>
        !             5: #include <stdio.h>
        !             6: #include <sys/stat.h>
        !             7: #include <sys/types.h>
        !             8: #include <sys/timeb.h>
        !             9: #include <sys/times.h>
        !            10: #include <sys/utsname.h>
        !            11: #include <time.h>
        !            12: #include <ndir.h>
        !            13: char   _ctype[];
        !            14: int    errno;
        !            15: struct _iobuf _iob[_NFILE];
        !            16: int    optind;
        !            17: int    signgam;
        !            18: char   *sys_errlist[];
        !            19: int    sys_nerr;
        !            20:        abort() { }
        !            21: int    abs(i) { return i; }
        !            22: int    access(name, mode) char *name; { return 1; }
        !            23: int    acct(f) char *f; { return 1; }
        !            24: double acos(x) double x; { return x; };
        !            25: int    alarm(s) unsigned s; { return 1; }
        !            26: char   *asctime(t) struct tm *t; { return ""; }
        !            27: double asin(x) double x; { return x; };
        !            28: double atan(x) double x; { return x; };
        !            29: double atan2(x, y) double x, y; { return x; };
        !            30: double atof(s) char *s; { return 1.; }
        !            31: int    atoi(s) char *s; { return 1; }
        !            32: long   atol(s) char *s; { return 1L; }
        !            33: char   *brk(a) char *a; { return ""; }
        !            34: double cabs(z) struct { double x, y;} z; { return 1.; }
        !            35: char   *calloc(n, s) unsigned n, s; { return ""; }
        !            36: double ceil(x) double x; { return x; };
        !            37:        cfree(p) char *p; { }
        !            38: int    chdir(s) char *s; { return 1; }
        !            39: int    chmod(s, m) char *s; { return 1; }
        !            40: int    chown(s, u, g) char *s; { return 1; }
        !            41: int    chroot(d) char *d; { return 1; }
        !            42: int    clearerr(stream)  FILE *stream; { return 1; }
        !            43: int    close(f) { return 1; }
        !            44: void   closedir(d)  DIR *d; { }
        !            45: double cos(x) double x; { return x; };
        !            46: double cosh(x) double x; { return x; };
        !            47: int    creat(s, m) char *s; { return 1; }
        !            48: char   *crypt(k, s) char *k, *s; { return ""; }
        !            49: char   *ctime(c) time_t *c;{ return ""; }
        !            50: int    dialout(c, t) char *c, *t; { return 1; }
        !            51: int    dup(f) { return f; }
        !            52: int    dup2(f1, f2) { return 1; }
        !            53: char   *ecvt(v, n, d, s) double v; int *d, *s; { return ""; }
        !            54:        encrypt(s, i) char *s; { }
        !            55:        endfsent() { }
        !            56:        endgrent() { }
        !            57: int    endpwent() { }
        !            58: double erf(x) double x; { return x; };
        !            59: double erfc(x) double x; { return x; };
        !            60:        /* VARARGS */
        !            61:        execl(f, a) char *f, *a; { }
        !            62:        /* VARARGS */
        !            63:        execlp(f, a) char *f, *a; { }
        !            64:        /*VARARGS*/
        !            65:        execle(name, a) char *name, *a; { }
        !            66:        execv(s, v) char *s, *v[]; { }
        !            67:        execvp(s, v) char *s, *v[]; { }
        !            68:        execve(n, a, e) char *n, *a[], *e[]; {  }
        !            69:        exit(s) { }
        !            70: double exp(x) double x; { return x; };
        !            71: double fabs(x) double x; { return x; };
        !            72: int    fchmod(fd, mode) { return 1; }
        !            73: int    fchown(fd, owner, group) { return 1; }
        !            74: int    fclose(f) FILE *f; { return 1;}
        !            75: char   *fcvt(v, n, d, s) double v; int *d, *s; { return ""; }
        !            76: FILE   *fdopen(fd, m) char *m; { return stdin;}
        !            77: int    fflush(f) FILE *f; { return 1;}
        !            78: int    fgetc(stream)  FILE *stream; { return 1; }
        !            79: char   *fgets( s, l, f ) char *s; FILE *f; { return ""; }
        !            80: double floor(x) double x; { return x; };
        !            81: FILE   *fopen(s, m) char *s, *m; { return stdin; }
        !            82: int    fork() { return 1; }
        !            83:        /* VARARGS */  /*PRINTFLIKE2*/
        !            84: int    fprintf( f, s ) FILE *f; char *s; { }
        !            85: int    fputc(c, stream) FILE *stream; { return 1; }
        !            86: int    fputs(s, f) char *s; FILE *f; { return 1;}
        !            87: double frand(x) double x; { return x; };
        !            88: int    fread( p, s, n, f ) char *p; FILE *f; { return 1;}
        !            89:        free(p) char *p; { }
        !            90: FILE   *freopen(s, m, f) char *s, *m; FILE *f; { return stdin; }
        !            91: double frexp(v, e) double v; int *e; { return v; }
        !            92:        /* VARARGS */ /*SCANFLIKE2*/
        !            93: int    fscanf( f, s ) FILE *f; char *s; { return 1;}
        !            94: int    fseek(f, o, p) FILE *f; long o; { return 1; }
        !            95: int    fstat(f, b) struct stat *b; { return 1; }
        !            96: long   ftell(f) FILE *f; { return 1L; }
        !            97:        ftime(tp) struct timeb *tp; { }
        !            98: int    ftw(p, f, d) char *p; int (*f)(); { return 1; }
        !            99: int    fwrite( p, s, n, f ) char *p; FILE *f; { return 1;}
        !           100: char   *galloc(n) unsigned n; { return ""; }
        !           101: double gamma(x) double x; { return x; };
        !           102:        garbage( ) { }
        !           103: int    gcd(a, b) { return 1; }
        !           104: char   *gcvt(v, n, b) double v; char *b; { return ""; }
        !           105: char   *getcwd(b, s) char *b; { return ""; }
        !           106: int    getegid() { return 1; }
        !           107: char   *getenv(name) char *name; { return ""; }
        !           108: int    geteuid() { return 1; }
        !           109: struct fstab *getfsent() { return getfsent(); }
        !           110: struct fstab *getfsfile(s) char *s; { return getfsfile(s); }
        !           111: struct fstab *getfsspec(s) char *s; { return getfsspec(s); }
        !           112: int    getgid() { return 1; }
        !           113: struct group *getgrent() { return getgrent(); }
        !           114: struct group *getgrgid(g) { return getgrgid(g); }
        !           115: struct group *getgrnam(s) char *s; { return getgrnam(s); }
        !           116: char   *getlogin() { return ""; }
        !           117: int    getopt(argc, argv, o) char **argv, *o; { return 1; }
        !           118: char   *getpass(p) char *p; { return ""; }
        !           119: int    getpid() { return 1; }
        !           120: int    getppid() { return 1; }
        !           121: int    getpw(uid, buf) char *buf; { return 1; }
        !           122: struct passwd *getpwent() { return getpwent(); }
        !           123: struct passwd *getpwnam(name) char *name; { return getpwnam(name); }
        !           124: struct passwd *getpwuid(uid) { return getpwuid(uid); }
        !           125: char   *gets(s) char *s; { return ""; }
        !           126: int    getuid() { return 1; }
        !           127: int    getw(stream)  FILE *stream; { return 1; }
        !           128: char   *getwd(buf) char *buf; { return ""; }
        !           129:        gfree(p) char *p; { }
        !           130: struct tm *gmtime(c) time_t *c; { return gmtime(c); }
        !           131: int    gtty(f, b) struct sgttyb *b; { return 1; }
        !           132: double hypot(x, y) double x, y; { return x; };
        !           133:        ialloc(ptr, size) char *ptr; unsigned size; { }
        !           134: int    ioctl(f, r, argp) struct sgttyb *argp; { return 1; }
        !           135: int    isatty(fildes) { return 1; }
        !           136: double j0(x) double x; { return x; };
        !           137: double j1(x) double x; { return x; };
        !           138: double jn(n, x) double x; { return x; };
        !           139: int    kill(p, s) { return 1; }
        !           140: long   lcm(a, b) { return lcm(a, b); }
        !           141: double ldexp(x,y) double x; int y; { return x; };
        !           142: int    link(a, b) char *a, *b; { return 1; }
        !           143: struct tm *localtime(c) time_t *c; { return localtime(c); }
        !           144: double log(x) double x; { return x; };
        !           145: double log10(x) double x; { return x; };
        !           146:        longjmp(env, val) jmp_buf env; { }
        !           147: long   lrand() { return lrand(); }
        !           148: long   lseek(f, o, d) long o; { return 1; }
        !           149: int    lstat(n, b) char *n; struct stat *b; { return 1; }
        !           150:        ltol3(cp, lp, n) char *cp; long *lp; { }
        !           151: char   *malloc(n) unsigned n; { return "";}
        !           152: int    max(a, b) { return 1; }
        !           153: char   *memccpy(s1, s2, c, n) char *s1, *s2; { return ""; }
        !           154: char   *memchr(s, c, n) char *s; { return ""; }
        !           155: int    memcmp(s1, s2, n) char *s1, *s2; { return 1; }
        !           156: char   *memcpy(s1, s2, n) char *s1, *s2; { return ""; }
        !           157: char   *memset(s, c, n) char *s; { return ""; } 
        !           158: int    min(a, b) { return 1; }
        !           159: int    mknod(n, m, a) char *n; { return 1; }
        !           160: char   *mktemp(p) char *p; { return "";}
        !           161: double modf(v, iptr) double v, *iptr; { return v; }
        !           162:        monitor(l, h, b, s, n) int (*l)(), (*h)(); short *b; { }
        !           163: int    mount(s, n, f) char *s, *n; { return 1; }
        !           164: int    nice(p) { return 1; }
        !           165: int    nrand(val) { return 1; }
        !           166: int    open(f, m) char *f; { return 1; }
        !           167: DIR    *opendir(f) char *f; { return opendir(f); }
        !           168:        pause() { }
        !           169: int    pclose(stream) FILE *stream; { return 1; }
        !           170:        perror(s) char *s; { }
        !           171: int    pipe(f) int f[2]; { return 1; }
        !           172: FILE   *popen(c, t) char *c, *t; { return popen(c, t); }
        !           173: double pow(x, y) double x, y; { return x; };
        !           174: FILE   *ppopen(c, t) char *c, *t; { return ppopen(c, t); }
        !           175:        /* VARARGS */ /*PRINTFLIKE1*/
        !           176: int    printf( s ) char *s; { }
        !           177:        profil(b, s, o, i) char *b; { }
        !           178: int    ptopen(name) char *name; { return 1; }
        !           179: int    ptrace(r, p, a, d) { return 1; }
        !           180: int    puts(s) char *s; { return 1;}
        !           181: int    putw(w, stream) FILE *stream; { return 1; }
        !           182:        qsort(b, n, w, compar) char *b; int (*compar)(); { }
        !           183: struct passwd *pwdecode(p) char *p; { return pwdecode(p); }
        !           184: int    rand( ) { return 1; }
        !           185: char   *re_comp(s) char *s; { return ""; }
        !           186: int    re_exec(s) char *s; { return 1; }
        !           187: int    read(f, b, l) char *b; { return l; }
        !           188: struct direct *readdir(d) DIR *d; { return readdir(d); }
        !           189: int    readlink(name, b, s) char *name, *b; { return 1; }
        !           190: char   *realloc(p, n) char *p; unsigned n; { return "";}
        !           191:        rewind(f) FILE *f; { }
        !           192: char   *sbrk(i) { return ""; }
        !           193:        /* VARARGS */ /*SCANFLIKE1*/
        !           194: int    scanf( f ) char *f; { return 1; }
        !           195: void   seekdir(d, loc)  DIR *d; { }
        !           196: int    select(n, r, w, m) fd_set *r, *w; { return 1; }
        !           197:        setbuf( f, b ) FILE *f; char *b; { }
        !           198: int    setfsent() { return 1; }
        !           199: int    setgid(g) { return 1; }
        !           200: int    setgrent() { return 1; }
        !           201: int    setjmp(e) jmp_buf e; { return 1; }
        !           202:        setkey(k) char *k; { }
        !           203: int    setpwent() { return 1; }
        !           204: int    setuid(u) { return 1; }
        !           205: int    sgn(a) { return 1; }
        !           206: SIG_TYP        signal(c, f) SIG_TYP f; { return f; }
        !           207: double sin(x) double x; { return x; };
        !           208: double sinh(x) double x; { return x; };
        !           209:        sleep(i) unsigned i; { }
        !           210:        /* VARARGS */ /*PRINTFLIKE2*/
        !           211: int    sprintf( s, f ) char *s, *f; { return 1;}
        !           212: double sqrt(x) double x; { return x; };
        !           213: int    srand(seed) { return 1; }
        !           214:        /* VARARGS */ /*SCANFLIKE2*/
        !           215: int    sscanf( s, f ) char *s, *f; { return 1; }
        !           216: int    stat(s, b) char *s; struct stat *b; { return 1; }
        !           217: int    stime(tp) long *tp; { return 1; }
        !           218: char   *strcat(a, b) char *a, *b; { }
        !           219: char   *strchr(s, c) char *s; { return ""; }
        !           220: int    strcmp(a, b) char *a, *b; { return 1; }
        !           221: char   *strcpy(a, b) char *a, *b; { return ""; }
        !           222: int    strcspn(s1, s2) char *s1, *s2; { return 1; }
        !           223: char   *strdup(s) char *s; { return ""; }
        !           224: int    strlen(s) char *s; { return 1; }
        !           225: char   *strncat(s1, s2, n) char *s1, *s2; { return ""; }
        !           226: int    strncmp(s1, s2, n) char *s1, *s2; { return 1; }
        !           227: char   *strncpy(s1, s2, n) char *s1, *s2; { return ""; }
        !           228: char   *strpbrk(s1, s2) char *s1, *s2; { return ""; }
        !           229: char   *strrchr(s, c) char *s; { return ""; }
        !           230: int    strspn(s1, s2) char *s1, *s2; { return 1; }
        !           231: char   *strtok(s1, s2) char *s1, *s2; { return ""; }
        !           232: int    stty(f, b) struct sgttyb *b; { return 1; } 
        !           233:        swab(a, b, n) char *a, *b; { }
        !           234: int    symlink(s1, s2) char *s1, *s2; { return 1; }
        !           235:        sync() { }
        !           236:        /*VARARGS*/
        !           237:        syscall(n) { }
        !           238: int    system(s) char *s; { return 1; }
        !           239: double tan(x) double x; { return x; };
        !           240: double tanh(x) double x; { return x; };
        !           241: long   tell(f) { return 1L; }
        !           242: long   telldir(d)  DIR *d; { return 1L; }
        !           243: time_t time(t) time_t *t; { return  1;}
        !           244:        times(b) struct tms *b; { }
        !           245: char   *timezone(z, dst) { return ""; }
        !           246: char   *tmpnam(s) char s[L_tmpnam]; { return ""; }
        !           247: int    tolower(c) { return 1; }
        !           248: int    toupper(c) { return 1; }
        !           249: char   *ttyname(f) { return ""; }
        !           250: int    ttyslot() { return 1; }
        !           251: int    umask(complmode) { return 1; }
        !           252: int    umount(special) char *special; { return 1; }
        !           253: int    uname(name) struct utsname *name; { return 1; }
        !           254: int    ungetc( c, f ) FILE *f; {  return c; }
        !           255: int    unlink(s) char *s; { return 1; }
        !           256: int    utime(file, tp) char *file; time_t tp[2];  { return 1; }
        !           257: int    wait(s) int *s; { return 1; }
        !           258: int    write(f, b, l) char *b; { return l; }
        !           259: double y0(x) double x; { return x; };
        !           260: double y1(x) double x; { return x; };
        !           261: double yn(n, x) double x; { return x; };

unix.superglobalmegacorp.com

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