]> git.ipfire.org Git - thirdparty/man-pages.git/commit
getpriority: Only getpriority translates the priority values
authorTheodore Dubois <tbodt@google.com>
Tue, 10 May 2022 22:08:21 +0000 (15:08 -0700)
committerAlejandro Colomar <alx.manpages@gmail.com>
Sat, 14 May 2022 21:13:15 +0000 (23:13 +0200)
commit7745313f33c058f0e8327ede58e646ed2790f5ce
treefc3c9f924e9a6e02c3345778e8e5d2aa7c3cd8e2
parent38900358313c45110be779abf818b9b8b3464c58
getpriority: Only getpriority translates the priority values

The translation is needed to avoid returning a negative number from a
successful syscall, and this requirement doesn't apply to setpriority.
See the implementation of getpriority in kernel/sys.c.

Signed-off-by: Theodore Dubois <tbodt@google.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man2/getpriority.2