mirror of
https://github.com/fluencelabs/musl
synced 2025-05-30 16:11:40 +00:00
13 lines
223 B
C
13 lines
223 B
C
#include <unistd.h>
|
|
#include <sys/resource.h>
|
|
#include "syscall.h"
|
|
|
|
int nice(int inc)
|
|
{
|
|
#ifdef SYS_nice
|
|
return syscall(SYS_nice, inc);
|
|
#else
|
|
return setpriority(PRIO_PROCESS, 0, getpriority(PRIO_PROCESS, 0)+inc);
|
|
#endif
|
|
}
|