projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add and consolidate nasty stdio_ext junk
[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 SYS_nice
8
return syscall(SYS_nice, inc);
9
#else
10
return setpriority(PRIO_PROCESS, 0, getpriority(PRIO_PROCESS, 0)+inc);
11
#endif
12
}