summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2008-04-16 20:53:13 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2008-04-16 20:53:13 +0000
commit84736d470fd6d37560017f2e26ab80ee92200bab (patch)
tree7829d5418aca5a7e03c9999a2f357bd79558982f
parentecf26c98d06bc7c8cbc49abba7289ee84e98bc1f (diff)
mkfifo makes fifos, not directories; from Ben Calvert
while here, make the description of -m more consistent for mkdir, mkfifo, and mknod. add a touch of .Ex for mkdir too.
-rw-r--r--bin/mkdir/mkdir.111
-rw-r--r--sbin/mknod/mkfifo.119
-rw-r--r--sbin/mknod/mknod.823
3 files changed, 26 insertions, 27 deletions
diff --git a/bin/mkdir/mkdir.1 b/bin/mkdir/mkdir.1
index 42429a2fe89..b3dcca2b009 100644
--- a/bin/mkdir/mkdir.1
+++ b/bin/mkdir/mkdir.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mkdir.1,v 1.24 2007/08/06 19:16:05 sobrado Exp $
+.\" $OpenBSD: mkdir.1,v 1.25 2008/04/16 20:53:12 jmc Exp $
.\" $NetBSD: mkdir.1,v 1.9 1995/07/25 19:37:13 jtc Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
@@ -33,7 +33,7 @@
.\"
.\" @(#)mkdir.1 8.2 (Berkeley) 1/25/94
.\"
-.Dd $Mdocdate: August 6 2007 $
+.Dd $Mdocdate: April 16 2008 $
.Dt MKDIR 1
.Os
.Sh NAME
@@ -56,8 +56,7 @@ as modified by the current
The options are as follows:
.Bl -tag -width Ds
.It Fl m Ar mode
-Set the file permission bits of the final created directory to
-the specified
+Set the file permission bits of the newly created directory to
.Ar mode .
The mode argument can be in any of the formats specified to the
.Xr chmod 1
@@ -85,9 +84,7 @@ For an explanation of the directory hierarchy,
see
.Xr hier 7 .
.Pp
-The
-.Nm
-utility exits 0 on success or >0 if an error occurred.
+.Ex -std mkdir
.Sh EXAMPLES
Create a directory named
.Pa foobar :
diff --git a/sbin/mknod/mkfifo.1 b/sbin/mknod/mkfifo.1
index 15e80e25718..0fb10f1e164 100644
--- a/sbin/mknod/mkfifo.1
+++ b/sbin/mknod/mkfifo.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mkfifo.1,v 1.9 2007/05/31 19:19:45 jmc Exp $
+.\" $OpenBSD: mkfifo.1,v 1.10 2008/04/16 20:53:12 jmc Exp $
.\" $NetBSD: mkfifo.1,v 1.4 1994/12/23 07:16:54 jtc Exp $
.\"
.\" Copyright (c) 1990, 1993
@@ -33,7 +33,7 @@
.\"
.\" @(#)mkfifo.1 8.2 (Berkeley) 1/5/94
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: April 16 2008 $
.Dt MKFIFO 1
.Os
.Sh NAME
@@ -54,15 +54,16 @@ It requires write permission in the parent directory.
The options are as follows:
.Bl -tag -width Ds
.It Fl m Ar mode
-Set the file permission bits of newly created directories to
+Set the file permission bits of newly created fifos to
.Ar mode .
-The mode is specified as in
-.Xr chmod 1 .
-In symbolic mode strings, the
-.Sq +
+The mode argument can be in any of the formats specified to the
+.Xr chmod 1
+utility.
+If a symbolic mode is specified, strings and the operators
+.Ql +
and
-.Sq -
-operators are interpreted relative to an assumed initial mode of
+.Ql -
+are interpreted relative to an initial mode of
.Dq a=rw .
.El
.Pp
diff --git a/sbin/mknod/mknod.8 b/sbin/mknod/mknod.8
index 67a1b634583..ca005a52654 100644
--- a/sbin/mknod/mknod.8
+++ b/sbin/mknod/mknod.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mknod.8,v 1.12 2007/05/31 19:19:45 jmc Exp $
+.\" $OpenBSD: mknod.8,v 1.13 2008/04/16 20:53:12 jmc Exp $
.\" $NetBSD: mknod.8,v 1.9 1995/08/10 23:47:32 jtc Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,12 +30,12 @@
.\"
.\" @(#)mknod.8 8.2 (Berkeley) 12/11/93
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: April 16 2008 $
.Dt MKNOD 8
.Os
.Sh NAME
.Nm mknod
-.Nd build special file
+.Nd make device special files
.Sh SYNOPSIS
.Nm mknod
.Op Fl m Ar mode
@@ -60,15 +60,16 @@ device.
The options are as follows:
.Bl -tag -width Ds
.It Fl m Ar mode
-Set the file mode.
-.Ar mode
-may be absolute or symbolic, as described in
-.Xr chmod 1 .
-In symbolic mode strings, the
-.Sq +
+Set the file permission bits of newly created device special files to
+.Ar mode .
+The mode argument can be in any of the formats specified to the
+.Xr chmod 1
+utility.
+If a symbolic mode is specified, strings and the operators
+.Ql +
and
-.Sq -
-operators are interpreted relative to an assumed initial mode of
+.Ql -
+are interpreted relative to an initial mode of
.Dq a=rw .
.El
.Pp