Module Name: src Committed By: wiz Date: Sun Jul 28 09:27:07 UTC 2013
Modified Files: src/lib/libc/sys: rename.2 Log Message: Fix punctuation formatting and sort errors. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/lib/libc/sys/rename.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/sys/rename.2 diff -u src/lib/libc/sys/rename.2:1.30 src/lib/libc/sys/rename.2:1.31 --- src/lib/libc/sys/rename.2:1.30 Sun Jul 28 09:07:55 2013 +++ src/lib/libc/sys/rename.2 Sun Jul 28 09:27:07 2013 @@ -1,4 +1,4 @@ -.\" $NetBSD: rename.2,v 1.30 2013/07/28 09:07:55 njoly Exp $ +.\" $NetBSD: rename.2,v 1.31 2013/07/28 09:27:07 wiz Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -93,11 +93,11 @@ In that case, it is looked up from a dir descriptor was passed as .Fa fromfd (resp. -.Fa tofd ). +.Fa tofd ) . Search permission is required on the directories named by .Fa fromfd and -.Fa tofd. +.Fa tofd . .\" (These alternatives await a decision about the semantics of O_SEARCH) .\" Search permission is required on the directories named by .\" .Fa fromfd @@ -131,6 +131,42 @@ indicates the reason for the failure. will fail and neither of the argument files will be affected if: .Bl -tag -width Er +.It Bq Er EACCES +A component of either path prefix denies search permission, or +the requested link requires writing in a directory with a mode +that denies write permission. +.It Bq Er EBUSY +.Fa from +or +.Fa to +is the mount point for a mounted file system. +.It Bq Er EDQUOT +The directory in which the entry for the new name +is being placed cannot be extended because the +user's quota of disk blocks on the file system +containing the directory has been exhausted. +.It Bq Er EFAULT +.Fa from +or +.Fa to +points outside the process's allocated address space. +.It Bq Er EINVAL +.Fa from +is a parent directory of +.Fa to , +or an attempt is made to rename +.Ql \&. +or +.Ql \&.. . +.It Bq Er EIO +An I/O error occurred while making or updating a directory entry. +.It Bq Er EISDIR +.Fa to +is a directory, but +.Fa from +is not a directory. +.It Bq Er ELOOP +Too many symbolic links were encountered in translating either pathname. .It Bq Er ENAMETOOLONG A component of a pathname exceeded .Brq Dv NAME_MAX @@ -144,10 +180,19 @@ path does not exist, or a path prefix of .Fa to does not exist. -.It Bq Er EACCES -A component of either path prefix denies search permission, or -the requested link requires writing in a directory with a mode -that denies write permission. +.It Bq Er ENOSPC +The directory in which the entry for the new name is being placed +cannot be extended because there is no space left on the file +system containing the directory. +.It Bq Er ENOTDIR +A component of either path prefix is not a directory, or +.Fa from +is a directory, but +.Fa to +is not a directory. +.It Bq Er ENOTEMPTY +.Fa to +is a directory and is not empty. .It Bq Er EPERM The directory containing .Fa from @@ -164,19 +209,9 @@ is marked sticky, and neither the containing directory nor .Fa to are owned by the effective user ID. -.It Bq Er ELOOP -Too many symbolic links were encountered in translating either pathname. -.It Bq Er ENOTDIR -A component of either path prefix is not a directory, or -.Fa from -is a directory, but -.Fa to -is not a directory. -.It Bq Er EISDIR -.Fa to -is a directory, but -.Fa from -is not a directory. +.It Bq Er EROFS +The requested link requires writing in a directory on a read-only file +system. .It Bq Er EXDEV The link named by .Fa to @@ -185,41 +220,6 @@ and the file named by are on different logical devices (file systems). Note that this error code will not be returned if the implementation permits cross-device links. -.It Bq Er ENOSPC -The directory in which the entry for the new name is being placed -cannot be extended because there is no space left on the file -system containing the directory. -.It Bq Er EDQUOT -The directory in which the entry for the new name -is being placed cannot be extended because the -user's quota of disk blocks on the file system -containing the directory has been exhausted. -.It Bq Er EIO -An I/O error occurred while making or updating a directory entry. -.It Bq Er EROFS -The requested link requires writing in a directory on a read-only file -system. -.It Bq Er EFAULT -.Fa from -or -.Fa to -points outside the process's allocated address space. -.It Bq Er EINVAL -.Fa from -is a parent directory of -.Fa to , -or an attempt is made to rename -.Ql \&. -or -.Ql \&.. . -.It Bq Er ENOTEMPTY -.Fa to -is a directory and is not empty. -.It Bq Er EBUSY -.Fa from -or -.Fa to -is the mount point for a mounted file system. .El .Sh SEE ALSO .Xr open 2 ,