Magellan Linux

Annotation of /trunk/mkinitrd-magellan/klibc/usr/klibc/nice.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (hide annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 262 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 niro 532 /*
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,
16     getpriority(me, PRIO_PROCESS) + inc);
17     }
18    
19     #endif