projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
date and time created 91/03/06 18:09:53 by bostic
[unix-history]
/
usr
/
src
/
lib
/
libc
/
stdio
/
fdopen.c
diff --git
a/usr/src/lib/libc/stdio/fdopen.c
b/usr/src/lib/libc/stdio/fdopen.c
index
d504911
..
a2dd7a2
100644
(file)
--- a/
usr/src/lib/libc/stdio/fdopen.c
+++ b/
usr/src/lib/libc/stdio/fdopen.c
@@
-9,11
+9,12
@@
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)fdopen.c 5.
4
(Berkeley) %G%";
+static char sccsid[] = "@(#)fdopen.c 5.
6
(Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
-#include <sys/file.h>
+#include <fcntl.h>
+#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include "local.h"
#include <stdio.h>
#include <errno.h>
#include "local.h"
@@
-21,7
+22,7
@@
static char sccsid[] = "@(#)fdopen.c 5.4 (Berkeley) %G%";
FILE *
fdopen(fd, mode)
int fd;
FILE *
fdopen(fd, mode)
int fd;
- char *mode;
+ c
onst c
har *mode;
{
register FILE *fp;
static int nofile;
{
register FILE *fp;
static int nofile;