summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/fopen.c
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2001-01-24 13:01:12 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2001-01-24 13:01:12 +0000
commitd201fe46e355212750b727061e6a7ac005267852 (patch)
treed949d903e602687ee53252807dc4281a27c4f0c4 /lib/libc/stdio/fopen.c
parente0aa5ab7184d7449e4c2e2e65107898ad23b31f7 (diff)
Notes
Diffstat (limited to 'lib/libc/stdio/fopen.c')
-rw-r--r--lib/libc/stdio/fopen.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/stdio/fopen.c b/lib/libc/stdio/fopen.c
index 1ef6bda15da1..4ea2eb99f8bb 100644
--- a/lib/libc/stdio/fopen.c
+++ b/lib/libc/stdio/fopen.c
@@ -40,11 +40,14 @@
static char sccsid[] = "@(#)fopen.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
+#include "namespace.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
+#include "un-namespace.h"
+
#include "local.h"
FILE *
@@ -52,8 +55,8 @@ fopen(file, mode)
const char *file;
const char *mode;
{
- register FILE *fp;
- register int f;
+ FILE *fp;
+ int f;
int flags, oflags;
if ((flags = __sflags(mode, &oflags)) == 0)
@@ -71,7 +74,7 @@ fopen(file, mode)
fp->_write = __swrite;
fp->_seek = __sseek;
fp->_close = __sclose;
-
+ /* fp->_lock = NULL; */
/*
* When opening in append mode, even though we use O_APPEND,
* we need to seek to the end so that ftell() gets the right