Bell 32V development
[unix-history] / usr / src / cmd / lint / llib-lc
CommitLineData
aacb43bf
TL
1 /* LINTLIBRARY */
2#include <stdio.h>
3#include <sgtty.h>
4#include <sys/types.h>
5#include <sys/stat.h>
6#include <time.h>
7int errno;
8int alarm(s) unsigned s; { return(s); }
9char *brk(a) char *a; { return(a); }
10int chdir(s) char *s; { return(0); }
11int chmod(s, m) char *s; { return(0); }
12int chown(s, u, g) char *s; { return(0); }
13int close(f) { return(0); }
14int creat(s, m) char *s; { return(0); }
15int dup(f) { return(f); }
16 /* VARARGS */
17 execl(f, a) char *f, *a; {;}
18 execv(s, v) char *s, *v[]; {;}
19 exit(s) {;}
20int fork() { return(0); }
21int fstat(f, b) struct stat *b; { return(0); }
22int getgid() { return(1); }
23int getegid() { return(1); }
24int getpid() { return(1); }
25int getuid() { return(1); }
26int geteuid() { return(1); }
27int gtty(f, b) struct sgttyb *b; { return(0); }
28int kill(p, s) { return(0); }
29int link(a, b) char *a, *b; { return(0); }
30long lseek(f, o, d) long o; { return(0); }
31int mknod(n, m, a) char *n; { return(0); }
32char *mktemp(p) char *p; { return(p);}
33int mount(s, n, f) char *s, *n; { return(0); }
34int nice(p) { return(0); }
35int open(f, m) char *f; { return(0); }
36 pause() {;}
37int pipe(f) int f[2]; { return(0); }
38 profil(b, s, o, i) char *b; {;}
39int ptrace(r, p, a, d) { return(0); }
40int read(f, b, l) char *b; { return(l); }
41char *sbrk(i) { return((char *)0); }
42int seek(f, o, p) { return(0); }
43int setgid(g) { return(0); }
44int setuid(u) { return(0); }
45int (*signal(c, f))() int (*f)(); { return(f); }
46int stat(s, b) char *s; struct stat *b; { return(0); }
47char *strcat(a, b) char *a, *b; { ; }
48int strcmp(a, b) char *a, *b; { return(1); }
49char *strcpy(a, b) char *a, *b; { ; }
50int strlen(s) char *s; { return(1); }
51int stty(f, b) struct sgttyb *b; { return(0); }
52long tell(f) { return((long)0); }
53int system(s) char *s; { return(0); }
54time_t time(t) time_t *t; { return( 0 );}
55int unlink(s) char *s; { return(0); }
56int wait(s) int *s; { return(1); }
57int write(f, b, l) char *b; { return(l); }
58char *calloc(n,s) unsigned n, s; { static char c[1]; return(c); }
59char *malloc(n) unsigned n; {static char c; return(&c);}
60char *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);}
64char *fgets( s, l, f ) char *s; FILE *f; { return(s); }
65FILE *fopen(s,m) char *s, *m; { return(stdin); }
66FILE *freopen(s, m, f) char *s, *m; FILE *f; { return(stdin); }
67FILE *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);}
74int 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 /* VARARGS */
80 scanf( f ) char *f; {return(1); }
81 setbuf( f, b ) FILE *f; char *b; {;}
82 /* VARARGS */
83char *sprintf( s, f ) char *s, *f; { return(s);}
84 /* VARARGS */
85 sscanf( s, f ) char *s, *f; { return(1); }
86 ungetc( c, f ) FILE *f; { return(c); }
87char *ctime(c) time_t *c;{ return(""); }
88struct tm *localtime(c) time_t *c; { return localtime(c); }
89struct tm *gmtime(c) time_t *c; { return gmtime(c); }
90char *asctime(t) struct tm *t; { return(""); }
91 abort() {}
92int abs(i) int i; { return(i); }
93double atof(s) char *s; { return(1.); }
94char *crypt(k,s) char *k, *s; { return(""); }
95 setkey(k) char *k; {}
96 encrypt(s, i) char *s; {}
97char *ecvt(v, n, d, s) double v; int *d, *s; { return(""); }
98char *fcvt(v, n, d, s) double v; int *d, *s; { return(""); }
99char *gcvt(v, n, b) double v; char *b; { return(""); }
100 monitor(l, h, b, s, n) int (*l)(), (*h)(); short *b; {}
101 perror(s) char *s; {}
102 setjmp(e) int e[3]; { return(0); }
103 sleep(i) unsigned i; {}
104struct _iobuf _iob[_NFILE];
105char _ctype_[];