BSD 4_3_Reno release
[unix-history] / usr / src / lib / libc / sys / mknod.2
index c09bd86..f7917eb 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     6.1 (Berkeley) %G%
+.\"    @(#)mknod.2     6.4 (Berkeley) 5/23/86
 .\"
 .\"
-.TH MKNOD 2 ""
+.TH MKNOD 2 "May 23, 1986"
 .UC 4
 .SH NAME
 mknod \- make a special file
 .UC 4
 .SH NAME
 mknod \- make a special file
@@ -26,8 +26,8 @@ The mode of the new file
 is initialized from
 .IR mode .
 (The protection part of the mode
 is initialized from
 .IR mode .
 (The protection part of the mode
-is modified by the process's mode masksee
-.IR umask (2)).
+is modified by the process's mode mask (see
+.IR umask (2))).
 The first block pointer of the i-node
 is initialized from
 .I dev 
 The first block pointer of the i-node
 is initialized from
 .I dev 
@@ -53,17 +53,52 @@ 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
+[ENOTDIR]
+A component of the path prefix is not a directory.
+.TP 15
+[EINVAL]
+The pathname contains a character with the high-order bit set.
+.TP 15
+[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
+[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
 [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
-[ENOTDIR]
-A component of the path prefix is not a directory.
+[EIO]
+An I/O error occurred while making the directory entry or allocating the inode.
 .TP 15
 .TP 15
-[ENOENT]
-A component of the path prefix does not exist.
+[ENOSPC]
+The directory in which the entry for the new node is being placed
+cannot be extended because there is no space left on the file
+system containing the directory.
+.TP 15
+[ENOSPC]
+There are no free inodes on the file system on which the
+node is being created.
+.TP 15
+[EDQUOT]
+The directory in which the entry for the new node
+is being placed cannot be extended because the
+user's quota of disk blocks on the file system
+containing the directory has been exhausted.
+.TP 15
+[EDQUOT]
+The user's quota of inodes on the file system on
+which the node is being created has been exhausted.
 .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.
@@ -74,8 +109,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)