getpriority.2 (2010 09)

g
getpriority(2) getpriority(2)
ERRORS
If getpriority()
or setpriority()
fails, errno is set to one of the following values:
[EACCES] The calling process does not have access rights to change one or more of the indi-
cated processes. All processes for which access is allowed are still affected.
[EINVAL] which is not one of the choices listed above, or who is out of range.
[EPERM] The calling process attempted to change the priority of a process to a smaller prior-
ity value without having appropriate privileges.
[ESRCH] Processes indicated by which and who cannot be found.
WARNINGS
getpriority()
can return -1 both when it successfully finds a priority of
-1 and when it fails. To
determine whether a failure occurred, set
errno
to 0 before calling getpriority(), then examine
errno after the call returns.
AUTHOR
getpriority()
and setpriority()
were developed by the University of California, Berkeley.
SEE ALSO
nice(1), renice(1M), nice(2).
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010