Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/sys Sort error descriptions.



details:   https://anonhg.NetBSD.org/src/rev/0c3f56b5f3c0
branches:  trunk
changeset: 767089:0c3f56b5f3c0
user:      wiz <wiz%NetBSD.org@localhost>
date:      Fri Jul 08 19:25:51 2011 +0000

description:
Sort error descriptions.

diffstat:

 lib/libc/sys/mknod.2  |  64 ++++++++++++++++++++++++--------------------------
 lib/libc/sys/revoke.2 |  20 +++++++-------
 2 files changed, 41 insertions(+), 43 deletions(-)

diffs (130 lines):

diff -r 27d463ebbbc4 -r 0c3f56b5f3c0 lib/libc/sys/mknod.2
--- a/lib/libc/sys/mknod.2      Fri Jul 08 19:10:14 2011 +0000
+++ b/lib/libc/sys/mknod.2      Fri Jul 08 19:25:51 2011 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: mknod.2,v 1.21 2011/07/03 14:11:43 jruoho Exp $
+.\"    $NetBSD: mknod.2,v 1.22 2011/07/08 19:25:51 wiz Exp $
 .\"
 .\" Copyright (c) 1980, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -66,8 +66,30 @@
 .Fn mknod
 will fail and the file will be not created if:
 .Bl -tag -width Er
-.It Bq Er ENOTDIR
-A component of the path prefix is not a directory.
+.It Bq Er EACCES
+Search permission is denied for a component of the path prefix.
+.It Bq Er 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; or
+the user's quota of inodes on the file system on
+which the node is being created has been exhausted.
+.It Bq Er EEXIST
+The named file exists.
+.It Bq Er EFAULT
+.Fa path
+points outside the process's allocated address space.
+.It Bq Er EINVAL
+The supplied
+.Fa mode
+or
+.Fa dev
+is invalid.
+.It Bq Er EIO
+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
@@ -76,42 +98,18 @@
 characters.
 .It Bq Er ENOENT
 A component of the path prefix does not exist.
-.It Bq Er EACCES
-Search permission is denied for a component of the path prefix.
-.It Bq Er EINVAL
-The supplied
-.Fa mode
-or
-.Fa dev
-is invalid.
-.It Bq Er ELOOP
-Too many symbolic links were encountered in translating the pathname.
-.It Bq Er EPERM
-The process's effective user ID is not super-user.
-.It Bq Er EIO
-An I/O error occurred while making the directory entry or allocating the inode.
 .It Bq Er 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.
-.It Bq Er ENOSPC
-There are no free inodes on the file system on which the
+system containing the directory; or
+there are no free inodes on the file system on which the
 node is being created.
-.It Bq Er 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.
-.It Bq Er EDQUOT
-The user's quota of inodes on the file system on
-which the node is being created has been exhausted.
+.It Bq Er ENOTDIR
+A component of the path prefix is not a directory.
+.It Bq Er EPERM
+The process's effective user ID is not super-user.
 .It Bq Er EROFS
 The named file resides on a read-only file system.
-.It Bq Er EEXIST
-The named file exists.
-.It Bq Er EFAULT
-.Fa path
-points outside the process's allocated address space.
 .El
 .Sh SEE ALSO
 .Xr chmod 2 ,
diff -r 27d463ebbbc4 -r 0c3f56b5f3c0 lib/libc/sys/revoke.2
--- a/lib/libc/sys/revoke.2     Fri Jul 08 19:10:14 2011 +0000
+++ b/lib/libc/sys/revoke.2     Fri Jul 08 19:25:51 2011 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: revoke.2,v 1.14 2011/07/03 20:36:34 jruoho Exp $
+.\"    $NetBSD: revoke.2,v 1.15 2011/07/08 19:26:19 wiz Exp $
 .\"
 .\" Copyright (c) 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -76,20 +76,20 @@
 .Sh ERRORS
 Access to the named file is revoked unless one of the following:
 .Bl -tag -width Er
-.It Bq Er ENOTDIR
-A component of the path prefix is not a directory.
+.It Bq Er EACCES
+Search permission is denied for a component of the path prefix.
+.It Bq Er EFAULT
+.Fa path
+points outside the process's allocated address space.
+.It Bq Er ELOOP
+Too many symbolic links were encountered in translating the pathname.
 .It Bq Er ENAMETOOLONG
 A component of a pathname exceeded 255 characters,
 or an entire path name exceeded 1024 characters.
 .It Bq Er ENOENT
 The named file or a component of the path name does not exist.
-.It Bq Er EACCES
-Search permission is denied for a component of the path prefix.
-.It Bq Er ELOOP
-Too many symbolic links were encountered in translating the pathname.
-.It Bq Er EFAULT
-.Fa path
-points outside the process's allocated address space.
+.It Bq Er ENOTDIR
+A component of the path prefix is not a directory.
 .It Bq Er EPERM
 The caller is neither the owner of the file nor the super user.
 .El



Home | Main Index | Thread Index | Old Index