]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
getpriority.2: Minor tweaks to Theodore's patch
authorAlejandro Colomar <alx.manpages@gmail.com>
Sat, 14 May 2022 21:25:42 +0000 (23:25 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Sat, 14 May 2022 21:25:42 +0000 (23:25 +0200)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man2/getpriority.2

index 8970410053c66f0a29778df2da3985aa99559105..67fd971be233d9d4352d4d069a867f14db73118b 100644 (file)
@@ -183,9 +183,12 @@ manner as Linux 2.6.12 and later.
 .SS C library/kernel differences
 The getpriority system call returns nice values translated to the range 40..1,
 since a negative return value would be interpreted as an error.
-The glibc wrapper function for getpriority translates the value back according to the formula
-.IR "unice\ =\ 20\ \-\ knice" .
-(Thus, the 40..1 range returned by the kernel corresponds to the range \-20..19 as seen by user space.)
+The glibc wrapper function for
+.BR getpriority ()
+translates the value back according to the formula
+.I unice\~=\~20\~\-\~knice
+(thus, the 40..1 range returned by the kernel
+corresponds to the range \-20..19 as seen by user space).
 .SH BUGS
 According to POSIX, the nice value is a per-process setting.
 However, under the current Linux/NPTL implementation of POSIX threads,