summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjtc <jtc@NetBSD.org>1994-05-18 14:31:43 +0000
committerjtc <jtc@NetBSD.org>1994-05-18 14:31:43 +0000
commitbe373c50a324d2ad4b6814466212ea0395f0c19b (patch)
treea694b8b6877d988a0551946976e43f10b738a88f /lib
parentee7565c0b3d2154c6133d0992402792930bf8e2f (diff)
Fix required #include files and function prototype.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/compat-43/creat.26
-rw-r--r--lib/libc/compat-43/creat.36
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/compat-43/creat.2 b/lib/libc/compat-43/creat.2
index 2640aa3124c..1bea9674f05 100644
--- a/lib/libc/compat-43/creat.2
+++ b/lib/libc/compat-43/creat.2
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)creat.2 6.10 (Berkeley) 6/23/91
-.\" $Id: creat.2,v 1.6 1993/12/15 18:10:20 jtc Exp $
+.\" $Id: creat.2,v 1.7 1994/05/18 14:31:43 jtc Exp $
.\"
.Dd June 23, 1991
.Dt CREAT 2
@@ -39,9 +39,11 @@
.Nm creat
.Nd create a new file
.Sh SYNOPSIS
+.Fd #include <sys/types.h>
+.Fd #include <sys/stat.h>
.Fd #include <fcntl.h>
.Ft int
-.Fn creat "char *path" "mode_t mode"
+.Fn creat "const char *path" "mode_t mode"
.Sh DESCRIPTION
.Bf -symbolic
This interface is made obsolete by:
diff --git a/lib/libc/compat-43/creat.3 b/lib/libc/compat-43/creat.3
index 3ecf303dde9..cff6a7fed5e 100644
--- a/lib/libc/compat-43/creat.3
+++ b/lib/libc/compat-43/creat.3
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)creat.2 6.10 (Berkeley) 6/23/91
-.\" $Id: creat.3,v 1.6 1993/12/15 18:10:20 jtc Exp $
+.\" $Id: creat.3,v 1.7 1994/05/18 14:31:43 jtc Exp $
.\"
.Dd June 23, 1991
.Dt CREAT 2
@@ -39,9 +39,11 @@
.Nm creat
.Nd create a new file
.Sh SYNOPSIS
+.Fd #include <sys/types.h>
+.Fd #include <sys/stat.h>
.Fd #include <fcntl.h>
.Ft int
-.Fn creat "char *path" "mode_t mode"
+.Fn creat "const char *path" "mode_t mode"
.Sh DESCRIPTION
.Bf -symbolic
This interface is made obsolete by: