chiark / gitweb /
[PATCH] fix klibc's broken strlcpy/strlcat
[elogind.git] / klibc / klibc / nice.c
1 /*
2  * nice.c
3  */
4
5 #include <unistd.h>
6 #include <sched.h>
7 #include <sys/resource.h>
8 #include <sys/syscall.h>
9
10 #ifndef __NR_nice
11
12 int nice(int inc)
13 {
14   pid_t me = getpid();
15   return setpriority(me, PRIO_PROCESS, getpriority(me, PRIO_PROCESS)+inc);
16 }
17
18 #endif