-fix use of arguments and remove an outdated section

-Xr mkfifo(2)
(btw, SUSv3 says that the only portable use of mknod() is to create
a FIFO. This is not supported by NetBSD.)
This commit is contained in:
drochner 2007-01-18 14:07:01 +00:00
parent b64481fed4
commit 11f2202b96
1 changed files with 8 additions and 17 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: mknod.2,v 1.18 2004/05/13 10:20:58 wiz Exp $
.\" $NetBSD: mknod.2,v 1.19 2007/01/18 14:07:01 drochner Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -29,7 +29,7 @@
.\"
.\" @(#)mknod.2 8.1 (Berkeley) 6/4/93
.\"
.Dd June 4, 1993
.Dd January 18, 2007
.Dt MKNOD 2
.Os
.Sh NAME
@ -45,26 +45,16 @@
The device special file
.Fa path
is created with the major and minor
device numbers extracted from
.Fa mode .
device numbers specified by
.Fa dev .
The access permissions of
.Fa path
are descendant from the
are extracted from
.Fa mode ,
modified by the
.Xr umask 2
of the parent process.
.Pp
If
.Fa mode
indicates a block or character special file,
.Fa dev
is a configuration dependent specification of a character or block
I/O device and the superblock of the device.
If
.Fa mode
does not indicate a block special or character special device,
.Fa dev
is ignored.
.Pp
.Fn mknod
requires super-user privileges.
.Sh RETURN VALUES
@ -119,6 +109,7 @@ points outside the process's allocated address space.
.El
.Sh SEE ALSO
.Xr chmod 2 ,
.Xr mkfifo 2 ,
.Xr stat 2 ,
.Xr umask 2
.Sh HISTORY