diff options
author | muffin <none@none> | 2005-10-20 11:47:44 -0700 |
---|---|---|
committer | muffin <none@none> | 2005-10-20 11:47:44 -0700 |
commit | 5d54f3d8999eac1762fe0a8c7177d20f1f201fae (patch) | |
tree | 65c7761c305dbd97609e64517f5781b433efa980 /usr/src/lib/libbc/libc/stdio/sys5/fopen.c | |
parent | 1b42782e10f177b2bd092559506a96dbbefefa54 (diff) | |
download | illumos-gate-5d54f3d8999eac1762fe0a8c7177d20f1f201fae.tar.gz |
6309237 gcc and libbc don't get along
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); |