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 ERRORS.



details:   https://anonhg.NetBSD.org/src/rev/4f7a428201cd
branches:  trunk
changeset: 764572:4f7a428201cd
user:      wiz <wiz%NetBSD.org@localhost>
date:      Thu Apr 28 11:58:50 2011 +0000

description:
Sort ERRORS.

diffstat:

 lib/libc/sys/swapctl.2 |  53 ++++++++++++++++++++++++-------------------------
 1 files changed, 26 insertions(+), 27 deletions(-)

diffs (80 lines):

diff -r 6af1d1d9cd75 -r 4f7a428201cd lib/libc/sys/swapctl.2
--- a/lib/libc/sys/swapctl.2    Thu Apr 28 11:57:08 2011 +0000
+++ b/lib/libc/sys/swapctl.2    Thu Apr 28 11:58:50 2011 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: swapctl.2,v 1.37 2010/05/31 12:16:20 njoly Exp $
+.\"    $NetBSD: swapctl.2,v 1.38 2011/04/28 11:58:50 wiz Exp $
 .\"
 .\" Copyright (c) 1997 Matthew R. Green
 .\" All rights reserved.
@@ -212,8 +212,25 @@
 .Fn swapctl
 succeeds unless:
 .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 EBUSY
+The device specified by
+.Fa arg
+has already been made available for swapping.
+.It Bq Er EFAULT
+.Fa arg
+points outside the process' allocated address space.
+.It Bq Er EINVAL
+The device configured by
+.Fa arg
+has no associated size, or the
+.Fa cmd
+was unknown.
+.It Bq Er EIO
+An I/O error occurred while opening the swap device.
+.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
@@ -225,36 +242,18 @@
 For the
 .Dv SWAP_CTL
 command, the named device is not currently enabled for swapping.
-.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 EPERM
-The caller is not the super-user.
-.It Bq Er EBUSY
-The device specified by
-.Fa arg
-has already been made available for swapping.
-.It Bq Er EINVAL
-The device configured by
-.Fa arg
-has no associated size, or the
-.Fa cmd
-was unknown.
+.It Bq Er ENOTDIR
+A component of the path prefix is not a directory.
 .It Bq Er ENXIO
 The major device number of
 .Fa arg
 is out of range (this indicates no device driver exists
-for the associated hardware).
-.It Bq Er ENXIO
-The block device specified by
+for the associated hardware); or
+the block device specified by
 .Fa arg
 is not marked as a swap partition in the disklabel.
-.It Bq Er EIO
-An I/O error occurred while opening the swap device.
-.It Bq Er EFAULT
-.Fa arg
-points outside the process' allocated address space.
+.It Bq Er EPERM
+The caller is not the super-user.
 .El
 .Sh SEE ALSO
 .Xr swapctl 8



Home | Main Index | Thread Index | Old Index