7 #include <sys/resource.h>
14 int getpriority(int which
, int who
)
22 /* GETPRIORITY returns negative for error.
23 * Otherwise, it returns the priority plus the minimum
24 * priority, to distiginuish from error. We have to
25 * correct for this. (The user program has to check errno
26 * to see if something really went wrong.)
29 if((v
= _syscall(MM
, GETPRIORITY
, &m
)) < 0) {
36 int setpriority(int which
, int who
, int prio
)
44 return _syscall(MM
, SETPRIORITY
, &m
);