HP-UX Reference (11i v3 07/02) - 2 System Calls (vol 5)
g
getpriority(2) getpriority(2)
[EACCES] The calling process does not have access rights to change one or more of the indicated
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 priority
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).
HP-UX 11i Version 3: February 2007 − 2 − Hewlett-Packard Company 149