diff --git a/man2/getpriority.2 b/man2/getpriority.2 index da3bc579d..a2b5c23bf 100644 --- a/man2/getpriority.2 +++ b/man2/getpriority.2 @@ -198,6 +198,19 @@ Linux before 1.3.36 had \-infinity..15. Since kernel 1.3.43, Linux has the range \-20..19. On some other systems, the range of nice values is \-20..20. +Including +.I +is not required these days, but increases portability. +(Indeed, +.I +defines the +.I rusage +structure with fields of type +.I struct timeval +defined in +.IR .) +.\" +.SS C library/kernel ABI differences Within the kernel, nice values are actually represented using the corresponding range 40..1 (since negative numbers are error codes) and these are the values @@ -210,18 +223,6 @@ The glibc wrapper functions for these system calls handle the translations between the user-land and kernel representations of the nice value according to the formula .IR "unice\ =\ 20\ \-\ knice" . -.LP -Including -.I -is not required these days, but increases portability. -(Indeed, -.I -defines the -.I rusage -structure with fields of type -.I struct timeval -defined in -.IR .) .SH BUGS According to POSIX, the nice value is a per-process setting. However, under the current Linux/NPTL implementation of POSIX threads,