diff options
Diffstat (limited to 'usr/src/lib/libbc/libc/stdio/sys5/fopen.c')
-rw-r--r-- | usr/src/lib/libbc/libc/stdio/sys5/fopen.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/usr/src/lib/libbc/libc/stdio/sys5/fopen.c b/usr/src/lib/libbc/libc/stdio/sys5/fopen.c index d7cb1ee876..e156dfc876 100644 --- a/usr/src/lib/libbc/libc/stdio/sys5/fopen.c +++ b/usr/src/lib/libbc/libc/stdio/sys5/fopen.c @@ -22,37 +22,33 @@ /* Copyright (c) 1984 AT&T */ /* All Rights Reserved */ -#pragma ident "%Z%%M% %I% %E% SMI" /* from S5R2 1.8 */ +#pragma ident "%Z%%M% %I% %E% SMI" /*LINTLIBRARY*/ + #include <stdio.h> #include <fcntl.h> -extern int open(), fclose(); -extern FILE *_findiop(), *_endopen(); +extern FILE *_findiop(); +static FILE *_endopen(); FILE * -fopen(file, mode) -char *file, *mode; +fopen(char *file, char *mode) { return (_endopen(file, mode, _findiop())); } FILE * -freopen(file, mode, iop) -char *file, *mode; -register FILE *iop; +freopen(char *file, char *mode, FILE *iop) { (void) fclose(iop); /* doesn't matter if this fails */ return (_endopen(file, mode, iop)); } static FILE * -_endopen(file, mode, iop) -char *file, *mode; -register FILE *iop; +_endopen(char *file, char *mode, FILE *iop) { - register int plus, oflag, fd; + int plus, oflag, fd; if (iop == NULL || file == NULL || file[0] == '\0') return (NULL); |