date and time created 91/03/06 18:09:53 by bostic
[unix-history] / usr / src / lib / libc / stdio / fdopen.c
index d504911..a2dd7a2 100644 (file)
@@ -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;
+       const char *mode;
 {
        register FILE *fp;
        static int nofile;
 {
        register FILE *fp;
        static int nofile;