Sign in
kernel
/
pub
/
scm
/
linux
/
kernel
/
git
/
bwh
/
klibc
/
201dabf78546ca712d3541670a5d898dc199854e
/
.
/
usr
/
klibc
/
nice.c
blob: e6e99ac9752cee9453be3af76066c71593d099ca [
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