summaryrefslogtreecommitdiff
path: root/usr/src/lib/libbc/libc/stdio/sys5/fopen.c
diff options
context:
space:
mode:
authormuffin <none@none>2005-10-20 11:47:44 -0700
committermuffin <none@none>2005-10-20 11:47:44 -0700
commit5d54f3d8999eac1762fe0a8c7177d20f1f201fae (patch)
tree65c7761c305dbd97609e64517f5781b433efa980 /usr/src/lib/libbc/libc/stdio/sys5/fopen.c
parent1b42782e10f177b2bd092559506a96dbbefefa54 (diff)
downloadillumos-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.c20
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);