4 * Needs to do some post-syscall mangling to distinguish error returns...
5 * but only on some platforms. Sigh.
10 #include <sys/resource.h>
11 #include <sys/syscall.h>
13 #if !defined(__alpha__) && !defined(__ia64__)
15 extern int __getpriority(int, int);
17 int getpriority(int which, int who)
19 int rv = __getpriority(which, who);
20 return ( rv < 0 ) ? rv : 20-rv;