diff options
Diffstat (limited to 'lib/libc/sys/mknod.2')
-rw-r--r-- | lib/libc/sys/mknod.2 | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/lib/libc/sys/mknod.2 b/lib/libc/sys/mknod.2 index d77ccbc..2fa6342 100644 --- a/lib/libc/sys/mknod.2 +++ b/lib/libc/sys/mknod.2 @@ -42,25 +42,19 @@ .Ft int .Fn mknod "const char *path" "mode_t mode" "dev_t dev" .Sh DESCRIPTION -The device special file +The filesystem node .Fa path -is created with the major and minor -device numbers extracted from -.Fa mode. -The access permissions of -.Fa path -are descendant from the -.Xr umask 2 -of the parent process. +is created with the file type and access permissions specified in +.Fa mode . +The access permissions are modified by the process's umask value. .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, +is a configuration dependent specification denoting a particular device +on the system. +Otherwise, .Fa dev is ignored. .Pp @@ -77,8 +71,6 @@ will fail and the file will be not created if: .Bl -tag -width Er .It Bq Er ENOTDIR A component of the path prefix is not a directory. -.It Bq Er EINVAL -The pathname contains a character with the high-order bit set. .It Bq Er ENAMETOOLONG A component of a pathname exceeded 255 characters, or an entire path name exceeded 1023 characters. @@ -119,9 +111,11 @@ 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 A -.Nm -function call appeared in Version 6 AT&T UNIX. +.Fn mknod +function call appeared in +.At v6 . |