Sign in
mojo
/
mojo-tools
/
7d579155cc597aa3befcbfad66eef54bda06b57c
/
.
/
fusl
/
src
/
unistd
/
nice.c
blob: d72a89357a1d500d32eddbe1cf9093250de1ff79 [
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
}