From 7f185ad2cbe9ae2ab003e6f71d21e1e965aa973f Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 23 Jun 2005 13:36:09 +0000 Subject: [PATCH] Noted that the nice value rande is -20..20 on some systems --- man2/getpriority.2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/man2/getpriority.2 b/man2/getpriority.2 index dc12a83371..d27768edc9 100644 --- a/man2/getpriority.2 +++ b/man2/getpriority.2 @@ -152,11 +152,13 @@ the effective user ID of the caller to match the real or effective user ID of the process \fIwho\fP. .LP The actual priority range varies between kernel versions. -Linux before 1.3.36 had -infinity..15. Linux since 1.3.43 has -20..19, +Linux before 1.3.36 had -infinity..15. Linux since 1.3.43 has \-20..19, and the system call getpriority returns 40..1 for these values (since negative numbers are error codes). The library call converts N into 20-N. .LP +On some systems, the range of nice values is \-20..20. +.LP Including .I is not required these days, but increases portability. -- 2.47.2