summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-11-16 01:01:23 +0000
committerderaadt <deraadt@openbsd.org>1997-11-16 01:01:23 +0000
commit043d4a5bf9dbe2fbcfa3f36fc07c6ceeaea39367 (patch)
tree5c6d5c54278b7bd1c10cc0793deac64b6661ab4b
parentcleanups from various sources (diff)
downloadwireguard-openbsd-043d4a5bf9dbe2fbcfa3f36fc07c6ceeaea39367.tar.xz
wireguard-openbsd-043d4a5bf9dbe2fbcfa3f36fc07c6ceeaea39367.zip
move proto to sys/stat.h; XPG4.2
-rw-r--r--include/unistd.h3
-rw-r--r--lib/libc/sys/mknod.22
-rw-r--r--sys/sys/stat.h3
3 files changed, 4 insertions, 4 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 5063e7f721a..af7e79ab426 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: unistd.h,v 1.13 1997/06/20 04:10:20 millert Exp $ */
+/* $OpenBSD: unistd.h,v 1.14 1997/11/16 01:01:24 deraadt Exp $ */
/* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */
/*-
@@ -131,7 +131,6 @@ char *getwd __P((char *)); /* obsoleted by getcwd() */
int initgroups __P((const char *, gid_t));
int iruserok __P((u_int32_t, int, const char *, const char *));
int lchown __P((const char *, uid_t, gid_t));
-int mknod __P((const char *, mode_t, dev_t));
char *mkdtemp __P((char *));
int mkstemp __P((char *));
char *mktemp __P((char *));
diff --git a/lib/libc/sys/mknod.2 b/lib/libc/sys/mknod.2
index e92dd449f43..8c3f2462f6b 100644
--- a/lib/libc/sys/mknod.2
+++ b/lib/libc/sys/mknod.2
@@ -40,7 +40,7 @@
.Nm mknod
.Nd make a special file node
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.Fd #include <sys/stat.h>
.Ft int
.Fn mknod "const char *path" "mode_t mode" "dev_t dev"
.Sh DESCRIPTION
diff --git a/sys/sys/stat.h b/sys/sys/stat.h
index 38e13aa1e16..10a8cf9a12e 100644
--- a/sys/sys/stat.h
+++ b/sys/sys/stat.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stat.h,v 1.4 1996/10/18 03:00:08 tholo Exp $ */
+/* $OpenBSD: stat.h,v 1.5 1997/11/16 01:01:23 deraadt Exp $ */
/* $NetBSD: stat.h,v 1.20 1996/05/16 22:17:49 cgd Exp $ */
/*-
@@ -197,6 +197,7 @@ struct stat {
__BEGIN_DECLS
int chmod __P((const char *, mode_t));
int fstat __P((int, struct stat *));
+int mknod __P((const char *, mode_t, dev_t));
int mkdir __P((const char *, mode_t));
int mkfifo __P((const char *, mode_t));
int stat __P((const char *, struct stat *));