update the error return codes to reflect those in 4.3BSD
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 23 May 1985 09:32:13 +0000 (01:32 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 23 May 1985 09:32:13 +0000 (01:32 -0800)
SCCS-vsn: lib/libc/sys/access.2 6.2
SCCS-vsn: lib/libc/sys/chmod.2 6.2
SCCS-vsn: lib/libc/sys/chown.2 6.2
SCCS-vsn: lib/libc/sys/link.2 6.2
SCCS-vsn: lib/libc/sys/open.2 6.2
SCCS-vsn: lib/libc/sys/execve.2 6.2
SCCS-vsn: lib/libc/sys/acct.2 6.2
SCCS-vsn: lib/libc/sys/chdir.2 6.2
SCCS-vsn: lib/libc/compat-43/creat.2 6.2
SCCS-vsn: lib/libc/sys/mknod.2 6.2
SCCS-vsn: lib/libc/sys/mount.2 6.2
SCCS-vsn: lib/libc/sys/stat.2 6.2
SCCS-vsn: lib/libc/sys/unlink.2 6.2
SCCS-vsn: lib/libc/sys/intro.2 6.2
SCCS-vsn: lib/libc/sys/utimes.2 6.2
SCCS-vsn: lib/libc/sys/swapon.2 6.2
SCCS-vsn: lib/libc/sys/bind.2 6.2
SCCS-vsn: lib/libc/sys/chroot.2 6.2
SCCS-vsn: lib/libc/sys/connect.2 6.2
SCCS-vsn: lib/libc/sys/mkdir.2 6.2
SCCS-vsn: lib/libc/sys/readlink.2 6.2
SCCS-vsn: lib/libc/sys/rename.2 6.2
SCCS-vsn: lib/libc/sys/rmdir.2 6.2
SCCS-vsn: lib/libc/sys/symlink.2 6.2
SCCS-vsn: lib/libc/sys/truncate.2 6.2

25 files changed:
usr/src/lib/libc/compat-43/creat.2
usr/src/lib/libc/sys/access.2
usr/src/lib/libc/sys/acct.2
usr/src/lib/libc/sys/bind.2
usr/src/lib/libc/sys/chdir.2
usr/src/lib/libc/sys/chmod.2
usr/src/lib/libc/sys/chown.2
usr/src/lib/libc/sys/chroot.2
usr/src/lib/libc/sys/connect.2
usr/src/lib/libc/sys/execve.2
usr/src/lib/libc/sys/intro.2
usr/src/lib/libc/sys/link.2
usr/src/lib/libc/sys/mkdir.2
usr/src/lib/libc/sys/mknod.2
usr/src/lib/libc/sys/mount.2
usr/src/lib/libc/sys/open.2
usr/src/lib/libc/sys/readlink.2
usr/src/lib/libc/sys/rename.2
usr/src/lib/libc/sys/rmdir.2
usr/src/lib/libc/sys/stat.2
usr/src/lib/libc/sys/swapon.2
usr/src/lib/libc/sys/symlink.2
usr/src/lib/libc/sys/truncate.2
usr/src/lib/libc/sys/unlink.2
usr/src/lib/libc/sys/utimes.2

index 73ac65d..6ca85c8 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)creat.2     6.1 (Berkeley) %G%
+.\"    @(#)creat.2     6.2 (Berkeley) %G%
 .\"
 .TH CREAT 2 ""
 .UC 4
 .\"
 .TH CREAT 2 ""
 .UC 4
@@ -58,14 +58,24 @@ writing.
 will fail and the file will not be created or truncated
 if one of the following occur:
 .TP 15
 will fail and the file will not be created or truncated
 if one of the following occur:
 .TP 15
-[EPERM]
-The argument contains a byte with the high-order bit set.
-.TP 15
 [ENOTDIR]
 A component of the path prefix is not a directory.
 .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]
+The named file does not exist.
+.TP 15
+[ELOOP]
+Too many symbolic links were encountered in translating the pathname.
+.TP 15
 [EACCES]
 [EACCES]
-A needed directory does not have search permission.
+Search permission is denied for a component of the path prefix.
 .TP 15
 [EACCES]
 The file does not exist and the directory
 .TP 15
 [EACCES]
 The file does not exist and the directory
@@ -91,14 +101,13 @@ the associated device does not exist.
 The file is a pure procedure (shared text) file that is being
 executed.
 .TP 15
 The file is a pure procedure (shared text) file that is being
 executed.
 .TP 15
+[EIO]
+An I/O error occurred while making the directory entry or allocating the inode.
+.TP 15
 [EFAULT]
 .I Name
 points outside the process's allocated address space.
 .TP 15
 [EFAULT]
 .I Name
 points outside the process's allocated address space.
 .TP 15
-[ELOOP]
-Too many symbolic links were encountered in translating the
-pathname.
-.TP 15
 [EOPNOTSUPP]
 The file was a socket (not currently implemented).
 .SH "SEE ALSO"
 [EOPNOTSUPP]
 The file was a socket (not currently implemented).
 .SH "SEE ALSO"
index ec61e98..4ae3553 100644 (file)
@@ -70,15 +70,19 @@ Access to the file is denied if one or more of the following are true:
 [ENOTDIR]
 A component of the path prefix is not a directory.
 .TP 15
 [ENOTDIR]
 A component of the path prefix is not a directory.
 .TP 15
-[ENOENT]
-The argument path name was too long.
+[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]
 Read, write, or execute (search) permission is requested for a null
 path name or the named file does not exist.
 .TP 15
 .TP 15
 [ENOENT]
 Read, write, or execute (search) permission is requested for a null
 path name or the named file does not exist.
 .TP 15
-[EPERM]
-The argument contains a byte with the high-order bit set.
+[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
 [ELOOP]
 Too many symbolic links were encountered in translating the pathname.
index 2cbb81f..14d1261 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)acct.2      6.1 (Berkeley) %G%
+.\"    @(#)acct.2      6.2 (Berkeley) %G%
 .\"
 .TH ACCT 2 ""
 .UC 4
 .\"
 .TH ACCT 2 ""
 .UC 4
@@ -46,17 +46,25 @@ will fail if one of the following is true:
 [EPERM]
 The caller is not the super-user.
 .TP 15
 [EPERM]
 The caller is not the 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.
 .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]
 The named file does not exist.
 .TP 15
 [ENOENT]
 The named file does not exist.
 .TP 15
-[EISDIR]
-The named file is a directory.
+[EACCES]
+Search permission is denied for a component of the path prefix,
+or the path name is not a regular file.
+.TP 15
+[ELOOP]
+Too many symbolic links were encountered in translating the pathname.
 .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.
@@ -64,12 +72,6 @@ The named file resides on a read-only file system.
 [EFAULT]
 .I File
 points outside the process's allocated address space.
 [EFAULT]
 .I File
 points outside the process's allocated address space.
-.TP 15
-[ELOOP]
-Too many symbolic links were encountered in translating the pathname.
-.TP 15
-[EACCES]
-The file is a character or block special file.
 .SH "SEE ALSO"
 acct(5), sa(8)
 .SH BUGS
 .SH "SEE ALSO"
 acct(5), sa(8)
 .SH BUGS
index 48cfe4b..47c8a1c 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)bind.2      6.1 (Berkeley) %G%
+.\"    @(#)bind.2      6.2 (Berkeley) %G%
 .\"
 .TH BIND 2 ""
 .UC 5
 .\"
 .TH BIND 2 ""
 .UC 5
@@ -73,5 +73,33 @@ has inadequate permission to access it.
 [EFAULT]
 The \fIname\fP parameter is not in a valid part of the user
 address space.
 [EFAULT]
 The \fIname\fP parameter is not in a valid part of the user
 address space.
+.PP
+The following errors are specific to binding names in the UNIX domain.
+These errors may not apply in future versions of the UNIX ipc domain.
+.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 prefix component of the path name does not exist.
+.TP 15
+[ELOOP]
+Too many symbolic links were encountered in translating the pathname.
+.TP 15
+[EIO]
+An I/O error occurred while making the directory entry or allocating the inode.
+.TP 15
+[EROFS]
+The name would reside on a read-only file system.
+.TP 15
+[EISDIR]
+A null pathname was specified.
 .SH SEE ALSO
 connect(2), listen(2), socket(2), getsockname(2)
 .SH SEE ALSO
 connect(2), listen(2), socket(2), getsockname(2)
index 492397a..7848409 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)chdir.2     6.1 (Berkeley) %G%
+.\"    @(#)chdir.2     6.2 (Berkeley) %G%
 .\"
 .TH CHDIR 2 ""
 .UC 4
 .\"
 .TH CHDIR 2 ""
 .UC 4
@@ -35,16 +35,20 @@ will fail and the current working directory will be unchanged if
 one or more of the following are true:
 .TP 15
 [ENOTDIR]
 one or more of the following are true:
 .TP 15
 [ENOTDIR]
-A component of the pathname is not a directory.
+A component of the path prefix is not a directory.
 .TP 15
 .TP 15
-[ENOENT]
-The named directory does not exist.
+[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]
 .TP 15
 [ENOENT]
-The argument path name was too long.
+The named directory does not exist.
 .TP 15
 .TP 15
-[EPERM]
-The argument contains a byte with the high-order bit set.
+[ELOOP]
+Too many symbolic links were encountered in translating the pathname.
 .TP 15
 [EACCES]
 Search permission is denied for any component of
 .TP 15
 [EACCES]
 Search permission is denied for any component of
@@ -53,9 +57,5 @@ the path name.
 [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"
 chroot(2)
 .SH "SEE ALSO"
 chroot(2)
index 14175e8..5f4a5a8 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)chmod.2     6.1 (Berkeley) %G%
+.\"    @(#)chmod.2     6.2 (Berkeley) %G%
 .\"
 .TH CHMOD 2 ""
 .UC 4
 .\"
 .TH CHMOD 2 ""
 .UC 4
@@ -66,20 +66,24 @@ is set to indicate the error.
 .I Chmod
 will fail and the file mode will be unchanged if:
 .TP 15
 .I Chmod
 will fail and the file mode will be unchanged if:
 .TP 15
-[EPERM]
-The argument contains a byte with the high-order bit set.
-.TP 15
 [ENOTDIR]
 A component of the path prefix is not a directory.
 .TP 15
 [ENOTDIR]
 A component of the path prefix is not a directory.
 .TP 15
-[ENOENT]
-The pathname was too long.
+[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]
 The named file does not exist.
 .TP 15
 [EACCES]
 .TP 15
 [ENOENT]
 The named file does not exist.
 .TP 15
 [EACCES]
-Search permission is denied on a component of the path prefix.
+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 effective user ID does not match the owner of the file and
 .TP 15
 [EPERM]
 The effective user ID does not match the owner of the file and
@@ -91,9 +95,6 @@ The named file resides on a read-only file system.
 [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.
 .PP
 .I Fchmod
 will fail if:
 .PP
 .I Fchmod
 will fail if:
index 27e1c2e..f43be0f 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)chown.2     6.1 (Berkeley) %G%
+.\"    @(#)chown.2     6.2 (Berkeley) %G%
 .\"
 .TH CHOWN 2 ""
 .UC 4
 .\"
 .TH CHOWN 2 ""
 .UC 4
@@ -55,23 +55,24 @@ error code being placed in the global variable \fIerrno\fP.
 .I Chown
 will fail and the file will be unchanged if:
 .TP 15
 .I Chown
 will fail and the file will be unchanged if:
 .TP 15
-[EINVAL]
-The argument path does not refer to a file.
-.TP 15
 [ENOTDIR]
 A component of the path prefix is not a directory.
 .TP 15
 [ENOTDIR]
 A component of the path prefix is not a directory.
 .TP 15
-[ENOENT]
-The argument pathname is too long.
+[EINVAL]
+The pathname contains a character with the high-order bit set.
 .TP 15
 .TP 15
-[EPERM]
-The argument contains a byte with the high-order bit set.
+[ENAMETOOLONG]
+A component of a pathname exceeded 255 characters,
+or an entire path name exceeded 1023 characters.
 .TP 15
 [ENOENT]
 The named file does not exist.
 .TP 15
 [EACCES]
 .TP 15
 [ENOENT]
 The named file does not exist.
 .TP 15
 [EACCES]
-Search permission is denied on a component of the path prefix.
+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 effective user ID does not match the owner of the file and
 .TP 15
 [EPERM]
 The effective user ID does not match the owner of the file and
@@ -83,9 +84,6 @@ The named file resides on a read-only file system.
 [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.
 .PP
 .I Fchown
 will fail if:
 .PP
 .I Fchown
 will fail if:
@@ -97,5 +95,8 @@ does not refer to a valid descriptor.
 [EINVAL]
 .I Fd
 refers to a socket, not a file.
 [EINVAL]
 .I Fd
 refers to a socket, not a file.
+.TP 15
+[EROFS]
+The named file resides on a read-only file system.
 .SH "SEE ALSO"
 chmod(2), flock(2)
 .SH "SEE ALSO"
 chmod(2), flock(2)
index 91d3ecf..dee8978 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)chroot.2    6.1 (Berkeley) %G%
+.\"    @(#)chroot.2    6.2 (Berkeley) %G%
 .\"
 .TH CHROOT 2 ""
 .UC 5
 .\"
 .TH CHROOT 2 ""
 .UC 5
@@ -38,25 +38,24 @@ one or more of the following are true:
 [ENOTDIR]
 A component of the path name is not a directory.
 .TP 15
 [ENOTDIR]
 A component of the path name is not a directory.
 .TP 15
-[ENOENT]
-The pathname was too long.
+[EINVAL]
+The pathname contains a character with the high-order bit set.
 .TP 15
 .TP 15
-[EPERM]
-The argument contains a byte with the high-order bit set.
+[ENAMETOOLONG]
+A component of a pathname exceeded 255 characters,
+or an entire path name exceeded 1023 characters.
 .TP 15
 [ENOENT]
 The named directory does not exist.
 .TP 15
 [EACCES]
 .TP 15
 [ENOENT]
 The named directory does not exist.
 .TP 15
 [EACCES]
-Search permission is denied for any component of
-the path name.
+Search permission is denied for any component of the path name.
+.TP 15
+[ELOOP]
+Too many symbolic links were encountered in translating the pathname.
 .TP 15
 [EFAULT]
 .I Path
 points outside the process's allocated address space.
 .TP 15
 [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"
 chdir(2)
 .SH "SEE ALSO"
 chdir(2)
index 868c3bb..b145c20 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)connect.2   6.1 (Berkeley) %G%
+.\"    @(#)connect.2   6.2 (Berkeley) %G%
 .\"
 .TH CONNECT 2 ""
 .UC 5
 .\"
 .TH CONNECT 2 ""
 .UC 5
@@ -83,5 +83,28 @@ be completed immediately.
 It is possible to
 .IR select (2)
 the socket while it is connecting by selecting it for writing.
 It is possible to
 .IR select (2)
 the socket while it is connecting by selecting it for writing.
+.PP
+.PP
+The following errors are specific to connecting names in the UNIX domain.
+These errors may not apply in future versions of the UNIX ipc domain.
+.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]
+The named socket 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.
 .SH SEE ALSO
 accept(2), select(2), socket(2), getsockname(2)
 .SH SEE ALSO
 accept(2), select(2), socket(2), getsockname(2)
index cd02f07..21d9036 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)execve.2    6.1 (Berkeley) %G%
+.\"    @(#)execve.2    6.2 (Berkeley) %G%
 .\"
 .TH EXECVE 2 ""
 .UC 4
 .\"
 .TH EXECVE 2 ""
 .UC 4
@@ -147,16 +147,24 @@ will contain an error code.
 will fail and return to the calling process if one or more
 of the following are true:
 .TP 15
 will fail and return to the calling process if one or more
 of the following are true:
 .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]
 [ENOENT]
-One or more components of the new process file's
-path name do not exist.
+The new process file does not exist.
 .TP 15
 .TP 15
-[ENOTDIR]
-A component of the new process file is not a directory.
+[ELOOP]
+Too many symbolic links were encountered in translating the pathname.
 .TP 15
 [EACCES]
 .TP 15
 [EACCES]
-Search permission is denied for a directory listed
-in the new process file's path prefix.
+Search permission is denied for a component of the path prefix.
 .TP 15
 [EACCES]
 The new process file is not an ordinary file.
 .TP 15
 [EACCES]
 The new process file is not an ordinary file.
index 5899608..9b8ed45 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)intro.2     6.1 (Berkeley) %G%
+.\"    @(#)intro.2     6.2 (Berkeley) %G%
 .\"
 .TH INTRO 2 ""
 .UC 4
 .\"
 .TH INTRO 2 ""
 .UC 4
@@ -118,12 +118,13 @@ access the arguments of a system call.
 A plain file was mentioned where a block device was required,
 e.g. in
 .IR mount .
 A plain file was mentioned where a block device was required,
 e.g. in
 .IR mount .
-.en 16 EBUSY "Mount device busy
+.en 16 EBUSY "Device busy
 An attempt to mount a device that was already mounted or
 an attempt was made to dismount a device
 on which there is an active file
 directory.
 (open file, current directory, mounted-on file, active text segment).
 An attempt to mount a device that was already mounted or
 an attempt was made to dismount a device
 on which there is an active file
 directory.
 (open file, current directory, mounted-on file, active text segment).
+A request was made to an exclusive access device that was already in use.
 .en 17 EEXIST "File exists
 An existing file was mentioned in an inappropriate context,
 e.g.
 .en 17 EEXIST "File exists
 An existing file was mentioned in an inappropriate context,
 e.g.
index 9763a4f..eb5945c 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)link.2      6.1 (Berkeley) %G%
+.\"    @(#)link.2      6.2 (Berkeley) %G%
 .\"
 .TH LINK 2 ""
 .UC 4
 .\"
 .TH LINK 2 ""
 .UC 4
@@ -48,21 +48,29 @@ is set to indicate the error.
 will fail and no link will be created if one or more of the following
 are true:
 .TP 15
 will fail and no link will be created if one or more of the following
 are true:
 .TP 15
-[EPERM]
-Either pathname contains a byte with the high-order bit set.
-.TP 15
-[ENOENT]
-Either pathname was too long.
-.TP 15
 [ENOTDIR]
 A component of either path prefix is not a directory.
 .TP 15
 [ENOTDIR]
 A component of either path prefix is not a directory.
 .TP 15
+[EINVAL]
+Either pathname contains a character with the high-order bit set.
+.TP 15
+[ENAMETOOLONG]
+A component of either pathname exceeded 255 characters,
+or entire length of either path name exceeded 1023 characters.
+.TP 15
 [ENOENT]
 A component of either path prefix does not exist.
 .TP 15
 [EACCES]
 A component of either path prefix denies search permission.
 .TP 15
 [ENOENT]
 A component of either path prefix does not exist.
 .TP 15
 [EACCES]
 A component of either path prefix denies search permission.
 .TP 15
+[EACCES]
+The requested link requires writing in a directory with a mode
+that denies write permission.
+.TP 15
+[ELOOP]
+Too many symbolic links were encountered in translating one of the pathnames.
+.TP 15
 [ENOENT]
 The file named by \fIname1\fP does not exist.
 .TP 15
 [ENOENT]
 The file named by \fIname1\fP does not exist.
 .TP 15
@@ -77,9 +85,8 @@ user ID is not super-user.
 The link named by \fIname2\fP and the file named by \fIname1\fP
 are on different file systems.
 .TP 15
 The link named by \fIname2\fP and the file named by \fIname1\fP
 are on different file systems.
 .TP 15
-[EACCES]
-The requested link requires writing in a directory with a mode
-that denies write permission.
+[EIO]
+An I/O error occurred while making the directory entry.
 .TP 15
 [EROFS]
 The requested link requires writing in a directory on a read-only file
 .TP 15
 [EROFS]
 The requested link requires writing in a directory on a read-only file
@@ -88,8 +95,5 @@ system.
 [EFAULT]
 One of the pathnames specified
 is outside the process's allocated address space.
 [EFAULT]
 One of the pathnames specified
 is outside the process's allocated address space.
-.TP 15
-[ELOOP]
-Too many symbolic links were encountered in translating the pathname.
 .SH "SEE ALSO"
 symlink(2), unlink(2)
 .SH "SEE ALSO"
 symlink(2), unlink(2)
index 6e795fd..aa04881 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)mkdir.2     6.1 (Berkeley) %G%
+.\"    @(#)mkdir.2     6.2 (Berkeley) %G%
 .\"
 .TH MKDIR 2 ""
 .UC 5
 .\"
 .TH MKDIR 2 ""
 .UC 5
@@ -43,31 +43,44 @@ indicates an error, and an error code is stored in
 .I Mkdir
 will fail and no directory will be created if:
 .TP 15
 .I Mkdir
 will fail and no directory will be created if:
 .TP 15
-[EPERM]
-The process's effective user ID is not super-user.
-.TP 15
-[EPERM]
-The \fIpath\fP argument contains a byte with the high-order bit set.
-.TP 15
 [ENOTDIR]
 A component of the path prefix is not a directory.
 .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
 [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 \fIpath\fP argument contains a byte with the high-order bit set.
+.TP 15
 [EROFS]
 The named file resides on a read-only file system.
 .TP 15
 [EEXIST]
 The named file exists.
 .TP 15
 [EROFS]
 The named file resides on a read-only file system.
 .TP 15
 [EEXIST]
 The named file exists.
 .TP 15
+[EIO]
+An I/O error occurred while making the directory entry or allocating the inode.
+.TP 15
 [EFAULT]
 .I Path
 points outside the process's allocated address space.
 .TP 15
 [EFAULT]
 .I Path
 points outside the process's allocated address space.
 .TP 15
-[ELOOP]
-Too many symbolic links were encountered in translating the pathname.
-.TP 15
 [EIO]
 An I/O error occured while writing to the file system.
 .SH "SEE ALSO"
 [EIO]
 An I/O error occured while writing to the file system.
 .SH "SEE ALSO"
index c09bd86..8383e33 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.2 (Berkeley) %G%
 .\"
 .TH MKNOD 2 ""
 .UC 4
 .\"
 .TH MKNOD 2 ""
 .UC 4
@@ -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)
index 6ed7a1f..78afca9 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)mount.2     6.1 (Berkeley) %G%
+.\"    @(#)mount.2     6.2 (Berkeley) %G%
 .\"
 .TH MOUNT 2 ""
 .UC 4
 .\"
 .TH MOUNT 2 ""
 .UC 4
@@ -83,12 +83,21 @@ file system.
 .I Mount
 will fail when one of the following occurs:
 .TP 15
 .I Mount
 will fail when one of the following occurs:
 .TP 15
-[NODEV]
+[ENAMETOOLONG]
+A component of either pathname exceeded 255 characters,
+or the entire length of either path name exceeded 1023 characters.
+.TP 15
+[ELOOP]
+Too many symbolic links were encountered in translating either pathname.
+.TP 15
+[EPERM]
 The caller is not the super-user.
 .TP 15
 The caller is not the super-user.
 .TP 15
-[NODEV]
-.I Special
-does not exist.
+[ENOENT]
+A component of \fIname\fP does not exist.
+.TP 15
+[ENODEV]
+A component of \fIspecial\fP does not exist.
 .TP 15
 [ENOTBLK]
 .I Special
 .TP 15
 [ENOTBLK]
 .I Special
@@ -100,45 +109,53 @@ The major device number of
 is out of range (this indicates no device driver exists
 for the associated hardware).
 .TP 15
 is out of range (this indicates no device driver exists
 for the associated hardware).
 .TP 15
-[EPERM]
-The pathname contains a character with the high-order bit set.
-.TP 15
 [ENOTDIR]
 [ENOTDIR]
-A component of the path prefix in
-.I name
-is not a directory.
-.TP 15
-[EROFS]
-.I Name
-resides on a read-only file system.
+A component of \fIname\fP is not a directory,
+or a path prefix of \fIspecial\fP is not a directory.
 .TP 15
 .TP 15
-[EBUSY]
-.I Name
-is not a directory, or another process currently
-holds a reference to it.
-.TP 15
-[EBUSY]
-No space remains in the mount table.
+[EINVAL]
+Either pathname contains a character with the high-order bit set.
 .TP 15
 .TP 15
-[EBUSY]
+[EINVAL]
 The super block for the file system had a bad magic
 number or an out of range block size.
 .TP 15
 [EBUSY]
 The super block for the file system had a bad magic
 number or an out of range block size.
 .TP 15
 [EBUSY]
+Another process currently holds a reference to
+.IR name ,
+or \fIspecial\fP is already mounted.
+.TP 15
+[EMFILE]
+No space remains in the mount table.
+.TP 15
+[ENOMEM]
 Not enough memory was available to read the cylinder
 group information for the file system.
 .TP 15
 Not enough memory was available to read the cylinder
 group information for the file system.
 .TP 15
-[EBUSY]
+[EIO]
 An i/o error occurred while reading the super block or
 cylinder group information.
 .PP
 .I Umount
 may fail with one of the following errors:
 .TP 15
 An i/o error occurred while reading the super block or
 cylinder group information.
 .PP
 .I Umount
 may fail with one of the following errors:
 .TP 15
-[NODEV]
+[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
+[ELOOP]
+Too many symbolic links were encountered in translating the pathname.
+.TP 15
+[EPERM]
 The caller is not the super-user.
 .TP 15
 The caller is not the super-user.
 .TP 15
-[NODEV]
+[ENODEV]
 .I Special
 does not exist.
 .TP 15
 .I Special
 does not exist.
 .TP 15
@@ -161,5 +178,4 @@ on the file system.
 .SH "SEE ALSO"
 mount(8), umount(8)
 .SH BUGS
 .SH "SEE ALSO"
 mount(8), umount(8)
 .SH BUGS
-The error codes are in a state of disarray; too many errors
-appear to the caller as one value.
+Some of the error codes need translation to more obvious messages.
index 0909330..ad051a9 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)open.2      6.1 (Berkeley) %G%
+.\"    @(#)open.2      6.2 (Berkeley) %G%
 .\"
 .TH OPEN 2 ""
 .UC 4
 .\"
 .TH OPEN 2 ""
 .UC 4
@@ -85,22 +85,29 @@ simultaneously.
 The named file is opened unless one or more of the
 following are true:
 .TP 15
 The named file is opened unless one or more of the
 following are true:
 .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.
 .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]
 O_CREAT is not set and the named file does not exist.
 .TP 15
 [EACCES]
 [ENOENT]
 O_CREAT is not set and the named file does not exist.
 .TP 15
 [EACCES]
-A component of the path prefix denies search permission.
+Search permission is denied for a component of the path prefix.
 .TP 15
 [EACCES]
 The required permissions (for reading and/or writing)
 are denied for the named flag.
 .TP 15
 .TP 15
 [EACCES]
 The required permissions (for reading and/or writing)
 are denied for the named flag.
 .TP 15
+[ELOOP]
+Too many symbolic links were encountered in translating the pathname.
+.TP 15
 [EISDIR]
 The named file is a directory, and the arguments specify
 it is to be opened for writting.
 [EISDIR]
 The named file is a directory, and the arguments specify
 it is to be opened for writting.
@@ -117,6 +124,14 @@ The named file is a character special or block
 special file, and the device associated with this special file
 does not exist.
 .TP 15
 special file, and the device associated with this special file
 does not exist.
 .TP 15
+[ENXIO]
+The O_NDELAY flag is given, and the file is a communications device
+on which their is no carrier present.
+.TP 15
+[EIO]
+An I/O error occurred while making the directory entry or
+allocating the inode for O_CREAT.
+.TP 15
 [ETXTBSY]
 The file is a pure procedure (shared text) file that is being
 executed and the \fIopen\fP call requests write access.
 [ETXTBSY]
 The file is a pure procedure (shared text) file that is being
 executed and the \fIopen\fP call requests write access.
@@ -125,16 +140,9 @@ executed and the \fIopen\fP call requests write access.
 .I Path
 points outside the process's allocated address space.
 .TP 15
 .I Path
 points outside the process's allocated address space.
 .TP 15
-[ELOOP]
-Too many symbolic links were encountered in translating the pathname.
-.TP 15
 [EEXIST]
 O_EXCL was specified and the file exists.
 .TP 15
 [EEXIST]
 O_EXCL was specified and the file exists.
 .TP 15
-[ENXIO]
-The O_NDELAY flag is given, and the file is a communications device
-on which their is no carrier present.
-.TP 15
 [EOPNOTSUPP]
 An attempt was made to open a socket (not currently implemented).
 .SH "SEE ALSO"
 [EOPNOTSUPP]
 An attempt was made to open a socket (not currently implemented).
 .SH "SEE ALSO"
index aca6c95..92c7450 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)readlink.2  6.1 (Berkeley) %G%
+.\"    @(#)readlink.2  6.2 (Berkeley) %G%
 .\"
 .TH READLINK 2 ""
 .UC 5
 .\"
 .TH READLINK 2 ""
 .UC 5
@@ -34,27 +34,24 @@ code in the global variable \fIerrno\fP.
 .I Readlink
 will fail and the file mode will be unchanged if:
 .TP 15
 .I Readlink
 will fail and the file mode will be unchanged if:
 .TP 15
-[EPERM]
-The \fIpath\fP argument contained a byte with the high-order bit set.
-.TP 15
-[ENOENT]
-The pathname was too long.
-.TP 15
 [ENOTDIR]
 A component of the path prefix is not a directory.
 .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]
 The named file does not exist.
 .TP 15
 [ENOENT]
 The named file does not exist.
 .TP 15
-[ENXIO]
-The named file is not a symbolic link.
-.TP 15
 [EACCES]
 [EACCES]
-Search permission is denied on a component of the path prefix.
+Search permission is denied for a component of the path prefix.
 .TP 15
 .TP 15
-[EPERM]
-The effective user ID does not match the owner of the file and
-the effective user ID is not the super-user.
+[ELOOP]
+Too many symbolic links were encountered in translating the pathname.
 .TP 15
 [EINVAL]
 The named file is not a symbolic link.
 .TP 15
 [EINVAL]
 The named file is not a symbolic link.
@@ -62,8 +59,5 @@ The named file is not a symbolic link.
 [EFAULT]
 .I Buf
 extends outside the process's allocated address space.
 [EFAULT]
 .I Buf
 extends outside the process's allocated address space.
-.TP 15
-[ELOOP]
-Too many symbolic links were encountered in translating the pathname.
 .SH SEE ALSO
 stat(2), lstat(2), symlink(2)
 .SH SEE ALSO
 stat(2), lstat(2), symlink(2)
index 0d2b587..8c83abb 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)rename.2    6.1 (Berkeley) %G%
+.\"    @(#)rename.2    6.2 (Berkeley) %G%
 .\"
 .TH RENAME 2 ""
 .UC 5
 .\"
 .TH RENAME 2 ""
 .UC 5
@@ -61,21 +61,37 @@ indicates the reason for the failure.
 will fail and neither of the argument files will be
 affected if any of the following are true:
 .TP 15
 will fail and neither of the argument files will be
 affected if any of the following are true:
 .TP 15
-[ENOTDIR]
-A component of either path prefix is not a directory.
+[EINVAL]
+Either pathname contains a character with the high-order bit set.
+.TP 15
+[ENAMETOOLONG]
+A component of either pathname exceeded 255 characters,
+or the entire length of either path name exceeded 1023 characters.
 .TP 15
 [ENOENT]
 .TP 15
 [ENOENT]
-A component of either path prefix does not exist.
+A component of the \fIfrom\fP path does not exist,
+or a path prefix of \fIto\fP does not exist.
 .TP 15
 [EACCES]
 A component of either path prefix denies search permission.
 .TP 15
 .TP 15
 [EACCES]
 A component of either path prefix denies search permission.
 .TP 15
-[ENOENT]
-The file named by \fIfrom\fP does not exist.
+[EACCES]
+The requested link requires writing in a directory with a mode
+that denies write permission.
+.TP 15
+[ELOOP]
+Too many symbolic links were encountered in translating either pathname.
+.TP 15
+[ENOTDIR]
+A component of either path prefix is not a directory.
+.TP 15
+[ENOTDIR]
+.I From
+is a directory, but \fIto\fP is not a directory.
 .TP 15
 .TP 15
-[EPERM]
-The file named by \fIfrom\fP is a directory and the effective
-user ID is not super-user.
+[EISDIR]
+.I To
+is a directory, but \fIfrom\fP is not a directory.
 .TP 15
 [EXDEV]
 The link named by \fIto\fP and the file named by \fIfrom\fP
 .TP 15
 [EXDEV]
 The link named by \fIto\fP and the file named by \fIfrom\fP
@@ -83,9 +99,8 @@ are on different logical devices (file systems).  Note that this error
 code will not be returned if the implementation permits cross-device
 links.
 .TP 15
 code will not be returned if the implementation permits cross-device
 links.
 .TP 15
-[EACCES]
-The requested link requires writing in a directory with a mode
-that denies write permission.
+[EIO]
+An I/O error occurred while making or updating a directory entry.
 .TP 15
 [EROFS]
 The requested link requires writing in a directory on a read-only file
 .TP 15
 [EROFS]
 The requested link requires writing in a directory on a read-only file
@@ -98,6 +113,11 @@ points outside the process's allocated address space.
 [EINVAL]
 .I From
 is a parent directory of
 [EINVAL]
 .I From
 is a parent directory of
-.IR to .
+.IR to ,
+or an attempt is made to rename ``.'' or ``..''.
+.TP 15
+[ENOTEMPTY]
+.I To
+is a directory and is not empty.
 .SH "SEE ALSO"
 open(2)
 .SH "SEE ALSO"
 open(2)
index d8df32c..282eee9 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)rmdir.2     6.1 (Berkeley) %G%
+.\"    @(#)rmdir.2     6.2 (Berkeley) %G%
 .\"
 .TH RMDIR 2 ""
 .UC 5
 .\"
 .TH RMDIR 2 ""
 .UC 5
@@ -29,23 +29,27 @@ returned and an error code is stored in the global location \fIerrno\fP\|.
 The named file is removed unless one or more of the
 following are true:
 .TP 15
 The named file is removed unless one or more of the
 following are true:
 .TP 15
-[ENOTEMPTY]
-The named directory contains files other than ``.'' and ``..'' in it.
+[ENOTDIR]
+A component of the path 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
+[ENAMETOOLONG]
+A component of a pathname exceeded 255 characters,
+or an entire path name exceeded 1023 characters.
+.TP 15
 [ENOENT]
 [ENOENT]
-The pathname was too long.
+The named directory does not exist.
 .TP 15
 .TP 15
-[ENOTDIR]
-A component of the path prefix is not a directory.
+[ELOOP]
+Too many symbolic links were encountered in translating the pathname.
 .TP 15
 .TP 15
-[ENOENT]
-The named file does not exist.
+[ENOTEMPTY]
+The named directory contains files other than ``.'' and ``..'' in it.
 .TP 15
 [EACCES]
 .TP 15
 [EACCES]
-A component of the path prefix denies search permission.
+Search permission is denied for a component of the path prefix.
 .TP 15
 [EACCES]
 Write permission is denied on the directory containing the link
 .TP 15
 [EACCES]
 Write permission is denied on the directory containing the link
@@ -55,14 +59,15 @@ to be removed.
 The directory to be removed is the mount point
 for a mounted file system.
 .TP 15
 The directory to be removed is the mount point
 for a mounted file system.
 .TP 15
+[EIO]
+An I/O error occurred while deleting the directory entry
+or deallocating the inode.
+.TP 15
 [EROFS]
 The directory entry to be removed resides on a read-only file system.
 .TP 15
 [EFAULT]
 .I Path
 points outside the process's allocated address space.
 [EROFS]
 The directory entry to be removed resides on a read-only file system.
 .TP 15
 [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"
 mkdir(2), unlink(2)
 .SH "SEE ALSO"
 mkdir(2), unlink(2)
index 5a8ab54..a477f74 100644 (file)
@@ -153,11 +153,12 @@ will fail if one or more of the following are true:
 [ENOTDIR]
 A component of the path prefix is not a directory.
 .TP 15
 [ENOTDIR]
 A component of the path prefix is not a directory.
 .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
-[ENOENT]
-The pathname was too long.
+[ENAMETOOLONG]
+A component of a pathname exceeded 255 characters,
+or an entire path name exceeded 1023 characters.
 .TP 15
 [ENOENT]
 The named file does not exist.
 .TP 15
 [ENOENT]
 The named file does not exist.
@@ -165,14 +166,14 @@ The named file does not exist.
 [EACCES]
 Search permission is denied for a component of the path prefix.
 .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
 [EFAULT]
 .I Buf
 or
 .I name
 points to an invalid address.
 [EFAULT]
 .I Buf
 or
 .I name
 points to an invalid address.
-.TP 15
-[ELOOP]
-Too many symbolic links were encountered in translating the pathname.
 .PP
 .I Fstat
 will fail if one or both of the following are true:
 .PP
 .I Fstat
 will fail if one or both of the following are true:
index d3da5da..d4bd82a 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)swapon.2    6.1 (Berkeley) %G%
+.\"    @(#)swapon.2    6.2 (Berkeley) %G%
 .\"
 .TH SWAPON 2 ""
 .UC 4
 .\"
 .TH SWAPON 2 ""
 .UC 4
@@ -24,6 +24,31 @@ configuration time.  The size of the swap area on
 .I special 
 is calculated at the time the device is first made available
 for swapping.
 .I special 
 is calculated at the time the device is first made available
 for swapping.
+.SH ERRORS
+.I Swapon
+succeeds unless:
+.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]
+The named device 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 caller is not the super-user.
 .SH "SEE ALSO"
 swapon(8), config(8)
 .SH BUGS
 .SH "SEE ALSO"
 swapon(8), config(8)
 .SH BUGS
index 0d216d4..a785024 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)symlink.2   6.1 (Berkeley) %G%
+.\"    @(#)symlink.2   6.2 (Berkeley) %G%
 .\"
 .TH SYMLINK 2 ""
 .UC 5
 .\"
 .TH SYMLINK 2 ""
 .UC 5
@@ -33,24 +33,33 @@ and a \-1 value is returned.
 The symbolic link is made unless on or more of the
 following are true:
 .TP 15
 The symbolic link is made unless on or more of the
 following are true:
 .TP 15
-[EPERM]
-Either
-.I name1
-or
-.I name2
+[ENOTDIR]
+A component of the \fIname2\fP prefix is not a directory.
+.TP 15
+[EINVAL]
+Either \fIname1\fP or \fIname2\fP
 contains a character with the high-order bit set.
 .TP 15
 contains a character with the high-order bit set.
 .TP 15
+[ENAMETOOLONG]
+A component of either pathname exceeded 255 characters,
+or the entire length of either path name exceeded 1023 characters.
+.TP 15
 [ENOENT]
 [ENOENT]
-One of the pathnames specified was too long.
+The named file does not exist.
 .TP 15
 .TP 15
-[ENOTDIR]
-A component of the \fIname2\fP prefix is not a directory.
+[EACCES]
+A component of the \fIname2\fP path prefix denies search permission.
+.TP 15
+[ELOOP]
+Too many symbolic links were encountered in translating the pathname.
 .TP 15
 [EEXIST]
 \fIName2\fP already exists.
 .TP 15
 .TP 15
 [EEXIST]
 \fIName2\fP already exists.
 .TP 15
-[EACCES]
-A component of the \fIname2\fP path prefix denies search permission.
+[EIO]
+An I/O error occurred while making the directory entry for \fIname2\fP,
+or allocating the inode for \fIname2\fP,
+or writing out the link contents of \fIname2\fP.
 .TP 15
 [EROFS]
 The file \fIname2\fP would reside on a read-only file system.
 .TP 15
 [EROFS]
 The file \fIname2\fP would reside on a read-only file system.
@@ -60,8 +69,5 @@ The file \fIname2\fP would reside on a read-only file system.
 or
 .I name2
 points outside the process's allocated address space.
 or
 .I name2
 points outside the process's allocated address space.
-.TP 15
-[ELOOP]
-Too may symbolic links were encountered in translating the pathname.
 .SH "SEE ALSO"
 link(2), ln(1), unlink(2)
 .SH "SEE ALSO"
 link(2), ln(1), unlink(2)
index 2bbb50b..b95991b 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)truncate.2  6.1 (Berkeley) %G%
+.\"    @(#)truncate.2  6.2 (Berkeley) %G%
 .\"
 .TH TRUNCATE 2 ""
 .UC 5
 .\"
 .TH TRUNCATE 2 ""
 .UC 5
@@ -41,20 +41,24 @@ specifies the error.
 .I Truncate
 succeeds unless:
 .TP 15
 .I Truncate
 succeeds unless:
 .TP 15
-[EPERM]
-The pathname contains a character with the high-order bit set.
+[ENOTDIR]
+A component of the path prefix is not a directory.
 .TP 15
 .TP 15
-[ENOENT]
-The pathname was too long.
+[EINVAL]
+The pathname contains a character with the high-order bit set.
 .TP 15
 .TP 15
-[ENOTDIR]
-A component of the path prefix of \fIpath\fP is not a directory.
+[ENAMETOOLONG]
+A component of a pathname exceeded 255 characters,
+or an entire path name exceeded 1023 characters.
 .TP 15
 [ENOENT]
 The named file does not exist.
 .TP 15
 [EACCES]
 .TP 15
 [ENOENT]
 The named file does not exist.
 .TP 15
 [EACCES]
-A component of the \fIpath\fP prefix denies search permission.
+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
 [EISDIR]
 The named file is a directory.
 .TP 15
 [EISDIR]
 The named file is a directory.
@@ -65,6 +69,9 @@ The named file resides on a read-only file system.
 [ETXTBSY]
 The file is a pure procedure (shared text) file that is being executed.
 .TP 15
 [ETXTBSY]
 The file is a pure procedure (shared text) file that is being executed.
 .TP 15
+[EIO]
+An I/O error occurred updating the inode.
+.TP 15
 [EFAULT]
 .I Name
 points outside the process's allocated address space.
 [EFAULT]
 .I Name
 points outside the process's allocated address space.
index 1622ba7..f9ceab8 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)unlink.2    6.1 (Berkeley) %G%
+.\"    @(#)unlink.2    6.2 (Berkeley) %G%
 .\"
 .TH UNLINK 2 ""
 .UC 4
 .\"
 .TH UNLINK 2 ""
 .UC 4
@@ -34,15 +34,16 @@ is set to indicate the error.
 .SH "ERRORS
 The \fIunlink\fP succeeds unless:
 .TP 15
 .SH "ERRORS
 The \fIunlink\fP succeeds unless:
 .TP 15
-[EPERM]
-The path contains a character with the high-order bit set.
-.TP 15
-[ENOENT]
-The path name is too long.
-.TP 15
 [ENOTDIR]
 A component of the path prefix is not a directory.
 .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]
 The named file does not exist.
 .TP 15
 [ENOENT]
 The named file does not exist.
 .TP 15
@@ -53,22 +54,31 @@ Search permission is denied for a component of the path prefix.
 Write permission is denied on the directory containing the link
 to be removed.
 .TP 15
 Write permission is denied on the directory containing the link
 to be removed.
 .TP 15
+[ELOOP]
+Too many symbolic links were encountered in translating the pathname.
+.TP 15
 [EPERM]
 The named file is a directory and the effective user ID
 of the process is not the super-user.
 .TP 15
 [EPERM]
 The named file is a directory and the effective user ID
 of the process is not the super-user.
 .TP 15
+[EPERM]
+The directory containing the file is marked sticky,
+and neither the containing directory nor the file to be removed
+are owned by the effective user ID.
+.TP 15
 [EBUSY]
 The entry to be unlinked is the mount point for a
 mounted file system.
 .TP 15
 [EBUSY]
 The entry to be unlinked is the mount point for a
 mounted file system.
 .TP 15
+[EIO]
+An I/O error occurred while deleting the directory entry
+or deallocating the inode.
+.TP 15
 [EROFS]
 The named file resides on a read-only file system.
 .TP 15
 [EFAULT]
 .I Path
 points outside the process's allocated address space.
 [EROFS]
 The named file resides on a read-only file system.
 .TP 15
 [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"
 close(2), link(2), rmdir(2)
 .SH "SEE ALSO"
 close(2), link(2), rmdir(2)
index e7eec8c..de48a82 100644 (file)
@@ -2,7 +2,7 @@
 .\" 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.
 .\"
-.\"    @(#)utimes.2    6.1 (Berkeley) %G%
+.\"    @(#)utimes.2    6.2 (Berkeley) %G%
 .\"
 .TH UTIMES 2 ""
 .UC 4
 .\"
 .TH UTIMES 2 ""
 .UC 4
@@ -41,25 +41,29 @@ is set to indicate the error.
 .I Utime
 will fail if one or more of the following are true:
 .TP 15
 .I Utime
 will fail if one or more of the following are true:
 .TP 15
-[EPERM]
-The pathname contained a character with the high-order bit set.
+[ENOTDIR]
+A component of the path prefix is not a directory.
 .TP 15
 .TP 15
-[ENOENT]
-The pathname was too long.
+[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]
 The named file does not exist.
 .TP 15
 .TP 15
 [ENOENT]
 The named file does not exist.
 .TP 15
-[ENOTDIR]
-A component of the path prefix is not a directory.
-.TP 15
-[EACCES]
-A component of the path prefix denies search permission.
+[ELOOP]
+Too many symbolic links were encountered in translating the pathname.
 .TP 15
 [EPERM]
 The process is not super-user and not the owner of the file.
 .TP 15
 [EACCES]
 .TP 15
 [EPERM]
 The process is not super-user and not the owner of the file.
 .TP 15
 [EACCES]
+Search permission is denied for a component of the path prefix.
+.TP 15
+[EACCES]
 The effective user ID is not super-user and not the
 owner of the file and \fItimes\fP is NULL and write access
 is denied.
 The effective user ID is not super-user and not the
 owner of the file and \fItimes\fP is NULL and write access
 is denied.
@@ -70,8 +74,5 @@ The file system containing the file is mounted read-only.
 [EFAULT]
 .I Tvp
 points outside the process's allocated address space.
 [EFAULT]
 .I Tvp
 points outside the process's allocated address space.
-.TP 15
-[ELOOP]
-Too many symbolic links were encountered in translating the pathname.
 .SH SEE ALSO
 stat(2)
 .SH SEE ALSO
 stat(2)