chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[PATCH] let klibc add the trailing newline to syslog conditionally
[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