summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-03-28 08:33:01 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-03-28 08:33:01 +0000
commitd42244e8656c10e14f3e3b452cd7de00c9ef4162 (patch)
tree690ac85a6bd4496831ac6907e8ed4bb513b3f1b3 /lib/libc/sys
parentae8033e71128c240d9406935c1db91e7622ac37d (diff)
document superuser requirements, with input from jmc@
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/swapctl.210
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libc/sys/swapctl.2 b/lib/libc/sys/swapctl.2
index 4cf69543f8d..cc705b9d340 100644
--- a/lib/libc/sys/swapctl.2
+++ b/lib/libc/sys/swapctl.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: swapctl.2,v 1.16 2007/05/31 19:19:34 jmc Exp $
+.\" $OpenBSD: swapctl.2,v 1.17 2009/03/28 08:33:00 espie Exp $
.\" $NetBSD: swapctl.2,v 1.10 1998/08/29 17:11:09 mrg Exp $
.\"
.\" Copyright (c) 1997 Matthew R. Green
@@ -29,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: March 28 2009 $
.Dt SWAPCTL 2
.Os
.Sh NAME
@@ -103,6 +103,12 @@ The flags are defined as
SWF_BUSY busy: I/O happening here
SWF_FAKE fake: still being built
.Ed
+.Pp
+All but
+.Dv SWAP_NSWAP
+and
+.Dv SWAP_STATS
+require superuser privileges.
.It
If
.Fa cmd