summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-05-19 19:37:29 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-05-19 19:37:29 +0000
commitcfa056700cd5ccf9c5295853b2543e1e99514d29 (patch)
treecedd79d041707d7762653447805fcd81f5d835cc /lib
parent68db937752caf03fdab44a52de1656f0a73453ad (diff)
Explicitly state that priority values outside the range -20 to 20 are
truncated to the appropriate limit.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/nice.33
-rw-r--r--lib/libc/sys/getpriority.27
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/gen/nice.3 b/lib/libc/gen/nice.3
index 41bfa6e979f..7082b9e997c 100644
--- a/lib/libc/gen/nice.3
+++ b/lib/libc/gen/nice.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: nice.3,v 1.12 2002/06/03 22:32:04 millert Exp $
+.\" $OpenBSD: nice.3,v 1.13 2003/05/19 19:37:28 millert Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -56,6 +56,7 @@ to the scheduling priority of the invoking process.
.Fa incr
is an integer such that the resulting scheduling priority
is within the range \-20 to 20.
+Priority values outside this range are truncated to the appropriate limit.
The default priority is 0; lower priorities cause more favorable scheduling.
Only the superuser may lower priorities.
.Pp
diff --git a/lib/libc/sys/getpriority.2 b/lib/libc/sys/getpriority.2
index b840d35b1c0..0382dba49b0 100644
--- a/lib/libc/sys/getpriority.2
+++ b/lib/libc/sys/getpriority.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getpriority.2,v 1.7 2000/10/18 05:12:09 aaron Exp $
+.\" $OpenBSD: getpriority.2,v 1.8 2003/05/19 19:37:28 millert Exp $
.\" $NetBSD: getpriority.2,v 1.4 1995/02/27 12:33:15 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -80,8 +80,7 @@ A zero value of
denotes the current process, process group, or user.
.Fa prio
is a value in the range \-20 to 20.
-The default priority is 0;
-lower priorities cause more favorable scheduling.
+The default priority is 0; lower priorities cause more favorable scheduling.
.Pp
The
.Fn getpriority
@@ -91,6 +90,8 @@ The
.Fn setpriority
call sets the priorities of all of the specified processes
to the specified value.
+Priority values outside the range \-20 to 20 are truncated to the
+appropriate limit.
Only the superuser may lower priorities.
.Sh RETURN VALUES
Since