Sign in
googlers
/
maze
/
klibc
/
0386dda2b9e6e6f8b901d56ec9be08c8404f52dd
/
.
/
klibc
/
nice.c
blob: 5a18de9091235cd4cee0d117070cbc737d6e82bd [
file
] [
log
] [
blame
]
/*
* nice.c
*/
#include
<unistd.h>
#include
<sched.h>
#include
<sys/resource.h>
#include
<sys/syscall.h>
#ifndef
__NR_nice
int
nice
(
int
inc
)
{
pid_t
me
=
getpid
();
return
setpriority
(
me
,
PRIO_PROCESS
,
getpriority
(
me
,
PRIO_PROCESS
)+
inc
);
}
#endif