In the spirit of commit 4131356cd ("man*/, man-pages.7: VERSIONS, STANDARDS, HISTORY: Reorganize sections"), move the historical information about EPERM error from NOTES to HISTORY, and fix the section reference accordingly. Signed-off-by: Kir Kolyshkin <kolyshkin@xxxxxxxxx> --- man/man2/getpriority.2 | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/man/man2/getpriority.2 b/man/man2/getpriority.2 index 111b591b5..4784407ee 100644 --- a/man/man2/getpriority.2 +++ b/man/man2/getpriority.2 @@ -138,7 +138,7 @@ .SH ERRORS and was not privileged (on Linux: did not have the .B CAP_SYS_NICE capability). -But see NOTES below. +But see HISTORY below. .TP .B ESRCH No process was located using the @@ -151,21 +151,6 @@ .SH STANDARDS .SH HISTORY POSIX.1-2001, SVr4, 4.4BSD (these interfaces first appeared in 4.2BSD). -.SH NOTES -For further details on the nice value, see -.BR sched (7). -.P -.IR Note : -the addition of the "autogroup" feature in Linux 2.6.38 means that -the nice value no longer has its traditional effect in many circumstances. -For details, see -.BR sched (7). -.P -A child created by -.BR fork (2) -inherits its parent's nice value. -The nice value is preserved across -.BR execve (2). .P The details on the condition for .B EPERM @@ -182,6 +167,21 @@ .SH NOTES 4.3BSD, FreeBSD 4.3, OpenBSD-2.5, ...) behave in the same manner as Linux 2.6.12 and later. .\" +.SH NOTES +For further details on the nice value, see +.BR sched (7). +.P +.IR Note : +the addition of the "autogroup" feature in Linux 2.6.38 means that +the nice value no longer has its traditional effect in many circumstances. +For details, see +.BR sched (7). +.P +A child created by +.BR fork (2) +inherits its parent's nice value. +The nice value is preserved across +.BR execve (2). .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. -- 2.45.2