Subject: misc/4931: swapctl(2) man page typos
To: None <gnats-bugs@gnats.netbsd.org>
From: None <bgrayson@ece.utexas.edu>
List: netbsd-bugs
Date: 02/03/1998 08:38:59
>Number: 4931
>Category: misc
>Synopsis: typos
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 3 06:50:01 1998
>Last-Modified:
>Originator: Brian Grayson
>Organization:
Parallel and Distributed Systems
Electrical and Computer Engineering
The University of Texas at Austin
>Release: 1.3
>Environment:
NetBSD marvin 1.3_BETA NetBSD 1.3_BETA (MARVIN) #25: Sun Dec 28 11:54:44 CST 1997 bgrayson@marvin:/a/c3p0/home/c3p0/src/sys/arch/i386/compile/MARVIN i386
>Description:
The man page for swapctl(2) has a typo -- NSTATS is used
instead of NSWAP.
>How-To-Repeat:
>Fix:
--- swapctl.2.orig Tue Feb 3 08:28:31 1998
+++ swapctl.2 Tue Feb 3 08:35:40 1998
@@ -137,12 +137,12 @@
If the
.Fa cmd
parameter is
-.Dv SWAP_NSTATS
+.Dv SWAP_NSWAP
or
.Dv SWAP_STATS ,
.Fn swapctl
returns the number of swap devices, if successful. The
-.Dv SWAP_NSTATS
+.Dv SWAP_NSWAP
command is always successful. Otherwise it returns 0 on success
and -1
on failure, setting the global variable
.Va errno
>Audit-Trail:
>Unformatted: