summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2003-05-19 19:37:28 +0000
committermillert <millert@openbsd.org>2003-05-19 19:37:28 +0000
commit6dcab1350eb4b889a08a835d2621f91a537f4b0f (patch)
tree88daf2e80fea603e6f3ed0df32a4ef6f243d10b3 /lib/libc
parentAdd the generated files as a dependency for the 'all' target. (diff)
downloadwireguard-openbsd-6dcab1350eb4b889a08a835d2621f91a537f4b0f.tar.xz
wireguard-openbsd-6dcab1350eb4b889a08a835d2621f91a537f4b0f.zip
Explicitly state that priority values outside the range -20 to 20 are
truncated to the appropriate limit.
Diffstat (limited to 'lib/libc')
-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