fix getaddrinfo regression with AI_ADDRCONFIG on some configurations
[musl.git] / src / misc / getpriority.c
blob5c0b1682b69a66e52edd33e9761bf0d7f51c92de
1 #include <sys/resource.h>
2 #include "syscall.h"
4 int getpriority(int which, id_t who)
6 int ret = syscall(SYS_getpriority, which, who);
7 if (ret < 0) return ret;
8 return 20-ret;