1: #ifndef lint
2: static char *sccs_id [] = "@(#)renice.c 1.4 11/22/80";
3: #endif
4: /*
5: * renice: change a process's nice value. Root can change the value
6: * to anything, others can only increase the current nice.
7: */
8:
9: int atoi ();
10:
11: main (ac, av)
12: register ac;
13: register char **av;
14: {
15: register i;
16:
17: if (ac < 3) {
18: printf ("Usage: renice newnice pid [pid2 ... pidn]\n");
19: exit(1);
20: }
21:
22: for(i = 2; i < ac; i++)
23: if (renice (atoi (av [i]), atoi (av [1])) == -1)
24: perror(av[i]);
25: }
Defined functions
main
defined in line
11;
never used
Defined variables