source:
azure_iot_hub/trunk/musl-1.1.18/src/misc/getpriority.c
Last change on this file was 389, checked in by , 5 years ago | |
---|---|
|
|
File size: 180 bytes |
Rev | Line | |
---|---|---|
[388] | 1 | #include <sys/resource.h> |
2 | #include "syscall.h" | |
3 | ||
4 | int getpriority(int which, id_t who) | |
5 | { | |
6 | int ret = syscall(SYS_getpriority, which, who); | |
7 | if (ret < 0) return ret; | |
8 | return 20-ret; | |
9 | } |
Note:
See TracBrowser
for help on using the repository browser.