Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/sys Use '.Rv -std' for RETURN VALUES, sort ERRORS.



details:   https://anonhg.NetBSD.org/src/rev/84b6eb82ac20
branches:  trunk
changeset: 332897:84b6eb82ac20
user:      njoly <njoly%NetBSD.org@localhost>
date:      Sat Oct 11 11:50:11 2014 +0000

description:
Use '.Rv -std' for RETURN VALUES, sort ERRORS.

diffstat:

 lib/libc/sys/rmdir.2 |  40 +++++++++++++++++++---------------------
 1 files changed, 19 insertions(+), 21 deletions(-)

diffs (76 lines):

diff -r 811453f6bc9c -r 84b6eb82ac20 lib/libc/sys/rmdir.2
--- a/lib/libc/sys/rmdir.2      Sat Oct 11 11:26:57 2014 +0000
+++ b/lib/libc/sys/rmdir.2      Sat Oct 11 11:50:11 2014 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: rmdir.2,v 1.20 2010/05/31 12:16:20 njoly Exp $
+.\"    $NetBSD: rmdir.2,v 1.21 2014/10/11 11:50:11 njoly Exp $
 .\"
 .\" Copyright (c) 1983, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -52,14 +52,25 @@
 and
 .Ql \&.. .
 .Sh RETURN VALUES
-A 0 is returned if the remove succeeds; otherwise a \-1 is
-returned and an error code is stored in the global location
-.Va errno .
+.Rv -std
 .Sh ERRORS
 The named file is removed unless:
 .Bl -tag -width Er
-.It Bq Er ENOTDIR
-A component of the path is not a directory.
+.It Bq Er EACCES
+Search permission is denied for a component of the path prefix, or
+write permission is denied on the directory containing the link
+to be removed.
+.It Bq Er EBUSY
+The directory to be removed is the mount point
+for a mounted file system.
+.It Bq Er EFAULT
+.Fa path
+points outside the process's allocated address space.
+.It Bq Er EIO
+An I/O error occurred while deleting the directory entry
+or deallocating 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
@@ -68,33 +79,20 @@
 characters.
 .It Bq Er ENOENT
 The named directory does not exist.
-.It Bq Er ELOOP
-Too many symbolic links were encountered in translating the pathname.
+.It Bq Er ENOTDIR
+A component of the path is not a directory.
 .It Bq Er ENOTEMPTY
 The named directory contains files other than
 .Ql \&.
 and
 .Ql \&..
 in it.
-.It Bq Er EACCES
-Search permission is denied for a component of the path prefix, or
-write permission is denied on the directory containing the link
-to be removed.
 .It Bq Er EPERM
 The directory containing the directory to be removed is marked sticky,
 and neither the containing directory nor the directory to be removed
 are owned by the effective user ID.
-.It Bq Er EBUSY
-The directory to be removed is the mount point
-for a mounted file system.
-.It Bq Er EIO
-An I/O error occurred while deleting the directory entry
-or deallocating the inode.
 .It Bq Er EROFS
 The directory entry to be removed resides on a read-only file system.
-.It Bq Er EFAULT
-.Fa path
-points outside the process's allocated address space.
 .El
 .Sh SEE ALSO
 .Xr mkdir 2 ,



Home | Main Index | Thread Index | Old Index