projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
yet another ugly legacy syscall rename...
[oweals/musl.git]
/
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 __NR_nice
8
return syscall1(__NR_nice, inc);
9
#else
10
return setpriority(PRIO_PROCESS, 0, getpriority(PRIO_PROCESS, 0)+inc);
11
#endif
12
}