From: ceriel Date: Fri, 18 Oct 1991 09:47:46 +0000 (+0000) Subject: Some fixes X-Git-Tag: release-5-5~718 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=948711ae6f3d772640d07ad3fd30c6b554f4ffd1;p=ack.git Some fixes --- diff --git a/lang/cem/lint/llib/proto.make b/lang/cem/lint/llib/proto.make index ea8b501f1..930cac946 100644 --- a/lang/cem/lint/llib/proto.make +++ b/lang/cem/lint/llib/proto.make @@ -26,6 +26,7 @@ install: all -mkdir $(TARGET_HOME)/lib.bin/lint -mkdir $(TARGET_HOME)/lib.bin/lint/llib cp $(SRC_DIR)/*.llb $(TARGET_HOME)/lib.bin/lint/llib + chmod +w $(TARGET_HOME)/lib.bin/lint/llib/* cp *.llb $(TARGET_HOME)/lib.bin/lint/llib chmod +w $(TARGET_HOME)/lib.bin/lint/llib/* @@ -49,7 +50,7 @@ c.llb: $(SRC_DIR)/unix7.c ansi_c.llb: $(SRC_DIR)/unix7.c cp $(SRC_DIR)/ansi_c.llb ansi_c.llb chmod +w ansi_c.llb - $(LINT) -ansi -Lansi_c.llb $(SRC_DIR)/unix7.c + $(LINT) -ansi -Lansi_c.llb -o $(SRC_DIR)/unix7.c curses.llb: $(LINT) -Lcurses.llb $(CURSESDIR)/*.c diff --git a/lang/cem/lint/llib/unix7.c b/lang/cem/lint/llib/unix7.c index e45537da4..cecfb3df4 100644 --- a/lang/cem/lint/llib/unix7.c +++ b/lang/cem/lint/llib/unix7.c @@ -63,7 +63,9 @@ int ptrace(r, p, a, d) int *a;{ return(0); } int read(f, b, l) char *b; { return(0); } int setuid(u) { return(0); } int setgid(g) { return(0); } +#ifndef __STDC__ int (*signal(c, f))() int (*f)(); { return(f); } +#endif int stat(s, b) char *s; struct stat *b; { return(0); } int fstat(f, b) struct stat *b; { return(0); } int stime(t) time_t *t; { return(0); } @@ -85,12 +87,24 @@ int abort() {/*NOTREACHED*/ } %[feg] = double %c = int %s = char * $ */ +#ifdef __STDC__ +int printf(const char *_format, ...); +#else printf(fmt) char *fmt; { ; } +#endif /* FORMAT1 */ +#ifdef __STDC__ +int fprintf(FILE *_stream, const char *_format, ...); +#else fprintf(fp, fmt) FILE *fp; char *fmt; { ; } +#endif /* FORMAT1 */ +#ifdef __STDC__ +int sprintf(char *_s, const char *_format, ...); +#else sprintf(s, fmt) char *s; char *fmt; { ; } +#endif /* FORMAT0 $ %[dox] = int * %l[dox] = long * %[DOX] = long * @@ -99,14 +113,26 @@ sprintf(s, fmt) char *s; char *fmt; { ; } %[fe] = float * %l[fe] = double * %[FE] = double * %c = char * %s = char * %[[] = char * $ */ +#ifdef __STDC__ +int scanf(const char *_format, ...); +#else int scanf(fmt) char *fmt; { return(0); } +#endif /* FORMAT1 */ +#ifdef __STDC__ +int fscanf(FILE *_stream, const char *_format, ...); +#else int fscanf(fp, fmt) FILE *fp; char *fmt; { return(0); } +#endif /* FORMAT1 */ +#ifdef __STDC__ +int sscanf(const char *_s, const char *_format, ...); +#else int sscanf(s, fmt) char *s; char *fmt; { return(0); } +#endif int _flsbuf(i, fp) unsigned int i; FILE *fp; { return(0); } /* System variables */ char **environ; int errno; -char *sys_errlist[]; +char *sys_errlist[1];