source:
azure_iot_hub_mbedtls/trunk/musl-1.1.18/src/misc/getpriority.c@
413
Last change on this file since 413 was 398, checked in by , 5 years ago | |
---|---|
|
|
File size: 180 bytes |
Line | |
---|---|
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.