|
|
1.1 root 1: /* nice.c 4.1 83/05/30 */
2:
3: #include <sys/time.h>
4: #include <sys/resource.h>
5:
6: /*
7: * Backwards compatible nice.
8: */
9: nice(incr)
10: int incr;
11: {
12: int prio;
13: extern int errno;
14:
15: errno = 0;
16: prio = getpriority(PRIO_PROCESS, 0);
17: if (prio == -1 && errno)
18: return (-1);
19: return (setpriority(PRIO_PROCESS, 0, prio + incr));
20: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.