Sign in
fuchsia
/
fuchsia
/
910c42476df82c3677bebaaff64b4c52d76651f4
/
.
/
third_party
/
ulib
/
musl
/
src
/
unistd
/
nice.c
blob: d4c81766cc84cfa48064fdcc3e307325af37aefa [
file
] [
log
] [
blame
]
#include
<sys/resource.h>
#include
<unistd.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
}