Module Name: src
Committed By: wiz
Date: Sat Dec 1 21:00:18 UTC 2012
Modified Files:
src/lib/libc/sys: symlink.2
Log Message:
Bump date. New sentence, new line. Wording/articles.
Sort errors while here.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/lib/libc/sys/symlink.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/symlink.2
diff -u src/lib/libc/sys/symlink.2:1.22 src/lib/libc/sys/symlink.2:1.23
--- src/lib/libc/sys/symlink.2:1.22 Sat Dec 1 20:45:01 2012
+++ src/lib/libc/sys/symlink.2 Sat Dec 1 21:00:18 2012
@@ -1,4 +1,4 @@
-.\" $NetBSD: symlink.2,v 1.22 2012/12/01 20:45:01 wiz Exp $
+.\" $NetBSD: symlink.2,v 1.23 2012/12/01 21:00:18 wiz Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)symlink.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd June 4, 1993
+.Dd November 18, 2012
.Dt SYMLINK 2
.Os
.Sh NAME
@@ -63,14 +63,15 @@ works the same way as
.Fn symlink
except if
.Fa path2
-is relative. In that case, it is looked up from a directory whose file
+is relative.
+In that case, it is looked up from a directory whose file
descriptor was passed as
.Fa fd .
Search permission is required on
.Fa fd
-except if that file descriptor was open with
+except if that file descriptor was opened with the
.Dv O_SEARCH
-option.
+flag.
.Fa fd
can be set to
.Dv AT_FDCWD
@@ -83,29 +84,28 @@ and a \-1 value is returned.
.Sh ERRORS
The symbolic link succeeds unless:
.Bl -tag -width Er
-.It Bq Er ENOTDIR
-A component of the
-.Fa name2
-prefix is not a directory.
-.It Bq Er ENAMETOOLONG
-A component of a pathname exceeded
-.Brq Dv NAME_MAX
-characters, or an entire path name exceeded
-.Brq Dv PATH_MAX
-characters.
-.It Bq Er ENOENT
-A component of the
-.Fa name2
-path does not exist.
.It Bq Er EACCES
A component of the
.Fa name2
path prefix denies search permission.
-.It Bq Er ELOOP
-Too many symbolic links were encountered in translating the pathname.
+.It Bq Er EDQUOT
+The directory in which the entry for the new symbolic link
+is being placed cannot be extended because the
+user's quota of disk blocks on the file system
+containing the directory has been exhausted.
+Or, the new symbolic link cannot be created because the user's
+quota of disk blocks on the file system that will
+contain the symbolic link has been exhausted.
+Or, the user's quota of inodes on the file system on
+which the symbolic link is being created has been exhausted.
.It Bq Er EEXIST
.Fa name2
already exists.
+.It Bq Er EFAULT
+.Fa name1
+or
+.Fa name2
+points outside the process's allocated address space.
.It Bq Er EIO
An I/O error occurred while making the directory entry for
.Fa name2 ,
@@ -113,40 +113,36 @@ or allocating the inode for
.Fa name2 ,
or writing out the link contents of
.Fa name2 .
-.It Bq Er EROFS
-The file
+Or, an I/O error occurred while making the directory entry or allocating the inode.
+.It Bq Er ELOOP
+Too many symbolic links were encountered in translating the pathname.
+.It Bq Er ENAMETOOLONG
+A component of a pathname exceeded
+.Brq Dv NAME_MAX
+characters, or an entire path name exceeded
+.Brq Dv PATH_MAX
+characters.
+.It Bq Er ENOENT
+A component of the
.Fa name2
-would reside on a read-only file system.
+path does not exist.
.It Bq Er ENOSPC
The directory in which the entry for the new symbolic link is being placed
cannot be extended because there is no space left on the file
system containing the directory.
-.It Bq Er ENOSPC
-The new symbolic link cannot be created because there
+Or, the new symbolic link cannot be created because there
there is no space left on the file
system that will contain the symbolic link.
-.It Bq Er ENOSPC
-There are no free inodes on the file system on which the
+Or, there are no free inodes on the file system on which the
symbolic link is being created.
-.It Bq Er EDQUOT
-The directory in which the entry for the new symbolic link
-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 EDQUOT
-The new symbolic link cannot be created because the user's
-quota of disk blocks on the file system that will
-contain the symbolic link has been exhausted.
-.It Bq Er EDQUOT
-The user's quota of inodes on the file system on
-which the symbolic link is being created has been exhausted.
-.It Bq Er EIO
-An I/O error occurred while making the directory entry or allocating the inode.
-.It Bq Er EFAULT
-.Fa name1
-or
+.It Bq Er ENOTDIR
+A component of the
.Fa name2
-points outside the process's allocated address space.
+prefix is not a directory.
+.It Bq Er EROFS
+The file
+.Fa name2
+would reside on a read-only file system.
.El
.Sh SEE ALSO
.Xr ln 1 ,