projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
da56996776e26aedd31b4c5495d24797cfbce070
[musl]
/
src
/
unistd
/
nice.c
1
#include <unistd.h>
2
#include <sys/resource.h>
3
#include "syscall.h"
4
5
int nice(int inc)
6
{
7
#ifdef SYS_nice
8
return syscall(SYS_nice, inc);
9
#else
10
return setpriority(PRIO_PROCESS, 0, getpriority(PRIO_PROCESS, 0)+inc);
11
#endif
12
}