improved english
[unix-history] / usr / src / lib / libc / sys / mknod.2
index 8812f2f..8383e33 100644 (file)
@@ -2,9 +2,9 @@
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
-.\"    @(#)mknod.2     5.1 (Berkeley) %G%
+.\"    @(#)mknod.2     6.2 (Berkeley) %G%
 .\"
 .\"
-.TH MKNOD 2 "2 July 1983"
+.TH MKNOD 2 ""
 .UC 4
 .SH NAME
 mknod \- make a special file
 .UC 4
 .SH NAME
 mknod \- make a special file
@@ -53,18 +53,34 @@ is set to indicate the error.
 .I Mknod
 will fail and the file mode will be unchanged if:
 .TP 15
 .I Mknod
 will fail and the file mode will be unchanged if:
 .TP 15
-[EPERM]
-The process's effective user ID is not super-user.
+[ENOTDIR]
+A component of the path prefix is not a directory.
 .TP 15
 .TP 15
-[EPERM]
+[EINVAL]
 The pathname contains a character with the high-order bit set.
 .TP 15
 The pathname contains a character with the high-order bit set.
 .TP 15
-[ENOTDIR]
-A component of the path prefix is not a directory.
+[ENAMETOOLONG]
+A component of a pathname exceeded 255 characters,
+or an entire path name exceeded 1023 characters.
 .TP 15
 [ENOENT]
 A component of the path prefix does not exist.
 .TP 15
 .TP 15
 [ENOENT]
 A component of the path prefix does not exist.
 .TP 15
+[EACCES]
+Search permission is denied for a component of the path prefix.
+.TP 15
+[ELOOP]
+Too many symbolic links were encountered in translating the pathname.
+.TP 15
+[EPERM]
+The process's effective user ID is not super-user.
+.TP 15
+[EPERM]
+The pathname contains a character with the high-order bit set.
+.TP 15
+[EIO]
+An I/O error occurred while making the directory entry or allocating the inode.
+.TP 15
 [EROFS]
 The named file resides on a read-only file system.
 .TP 15
 [EROFS]
 The named file resides on a read-only file system.
 .TP 15
@@ -74,8 +90,5 @@ The named file exists.
 [EFAULT]
 .I Path
 points outside the process's allocated address space.
 [EFAULT]
 .I Path
 points outside the process's allocated address space.
-.TP 15
-[ELOOP]
-Too many symbolic links were encountered in translating the pathname.
 .SH "SEE ALSO"
 chmod(2), stat(2), umask(2)
 .SH "SEE ALSO"
 chmod(2), stat(2), umask(2)