diff options
Diffstat (limited to 'klibc/klibc/getpriority.c')
-rw-r--r-- | klibc/klibc/getpriority.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/klibc/klibc/getpriority.c b/klibc/klibc/getpriority.c deleted file mode 100644 index 4ea630487d..0000000000 --- a/klibc/klibc/getpriority.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * getpriority.c - * - * Needs to do some post-syscall mangling to distinguish error returns... - * but only on some platforms. Sigh. - */ - -#include <unistd.h> -#include <sys/time.h> -#include <sys/resource.h> -#include <sys/syscall.h> - -#if !defined(__alpha__) && !defined(__ia64__) - -extern int __getpriority(int, int); - -int getpriority(int which, int who) -{ - int rv = __getpriority(which, who); - return ( rv < 0 ) ? rv : 20-rv; -} - -#endif |