Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
f389c4984a0fee80c5322e4d1ec3aa207e9b5c01
/
.
/
src
/
unistd
/
nice.c
blob: da56996776e26aedd31b4c5495d24797cfbce070 [
file
] [
log
] [
blame
]
#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
}