summaryrefslogtreecommitdiff
path: root/lib/libc/sys/mkdir.2
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2013-07-17 05:42:12 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2013-07-17 05:42:12 +0000
commita4c82024e6538bbd6183d6a9a256cba8e7870740 (patch)
treeb978bd46eea7373d1d2888f8229d6ca8469c0252 /lib/libc/sys/mkdir.2
parentd8683ba125e75609c811ff26b7cb140871249970 (diff)
more library history
facts checked by sobrado@ style tweaks and ok jmc@
Diffstat (limited to 'lib/libc/sys/mkdir.2')
-rw-r--r--lib/libc/sys/mkdir.229
1 files changed, 25 insertions, 4 deletions
diff --git a/lib/libc/sys/mkdir.2 b/lib/libc/sys/mkdir.2
index d1142108bfd..b41a830f26e 100644
--- a/lib/libc/sys/mkdir.2
+++ b/lib/libc/sys/mkdir.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mkdir.2,v 1.13 2013/04/01 20:16:31 guenther Exp $
+.\" $OpenBSD: mkdir.2,v 1.14 2013/07/17 05:42:11 schwarze Exp $
.\" $NetBSD: mkdir.2,v 1.8 1995/02/27 12:34:22 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)mkdir.2 8.2 (Berkeley) 12/11/93
.\"
-.Dd $Mdocdate: April 1 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt MKDIR 2
.Os
.Sh NAME
@@ -169,11 +169,32 @@ and
functions conform to
.St -p1003.1-2008 .
.Sh HISTORY
-The
+A
.Fn mkdir
system call first appeared in
.At v1 .
+It was renamed to
+.Fn makdir
+in
+.At v2 .
+However, it did not exist from
+.At v4
+to
+.Bx 4.1 ;
+in those releases,
+.Xr mknod 2
+had to be used.
+Since
+.Fn mkdir
+reappeared in
+.Bx 4.1c ,
+it no longer requires superuser privileges and it automatically creates the
+.Sq \&.
+and
+.Sq \&..
+directory entries.
+.Pp
The
.Fn mkdirat
-function appeared in
+system call has been available since
.Ox 5.0 .