mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
180 B
9 lines
180 B
#include <sys/resource.h>
|
|
#include "syscall.h"
|
|
|
|
int getpriority(int which, id_t who)
|
|
{
|
|
int ret = syscall(SYS_getpriority, which, who);
|
|
if (ret < 0) return ret;
|
|
return 20-ret;
|
|
}
|
|
|