9 #include <sys/resource.h>
16 int getpriority(int which
, int who
)
24 /* GETPRIORITY returns negative for error.
25 * Otherwise, it returns the priority plus the minimum
26 * priority, to distiginuish from error. We have to
27 * correct for this. (The user program has to check errno
28 * to see if something really went wrong.)
31 if((v
= _syscall(PM_PROC_NR
, GETPRIORITY
, &m
)) < 0) {
38 int setpriority(int which
, int who
, int prio
)
46 return _syscall(PM_PROC_NR
, SETPRIORITY
, &m
);