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