blob: 5c0b1682b69a66e52edd33e9761bf0d7f51c92de [file] [log] [blame]
Rich Felker0b44a032011-02-12 00:22:29 -05001#include <sys/resource.h>
2#include "syscall.h"
3
4int getpriority(int which, id_t who)
5{
Rich Felkeraa398f52011-03-20 00:16:43 -04006 int ret = syscall(SYS_getpriority, which, who);
Rich Felker0b44a032011-02-12 00:22:29 -05007 if (ret < 0) return ret;
8 return 20-ret;
9}