Lines Matching refs:which
59 static int donice(int which, id_t who, int prio, int increment, char *who_s);
93 * or groups of processes which are already
102 int which = PRIO_PROCESS;
150 which = PRIO_PGRP;
154 which = PRIO_PROCESS;
158 which = PRIO_USER;
162 which = name2id(optarg);
184 *end_ptr == '\0' && (which != PRIO_ZONE ||
186 (which != PRIO_CONTRACT || who != 0)) {
187 errs += donice(which, who, incr, prio_type,
193 switch (which) {
197 errs += donice(which, who, incr, prio_type,
209 errs += donice(which, who, incr, prio_type,
220 errs += donice(which, who, incr, prio_type,
237 errs += donice(which, who, incr, prio_type, *argv);
255 int which = PRIO_PROCESS;
283 which = PRIO_PGRP;
287 which = PRIO_USER;
291 which = PRIO_PROCESS;
294 if (which == PRIO_USER && !isdigit(argv[0][0])) {
314 errs += donice(which, who, prio, RENICE_PRIO_ABSOLUTE, *argv);
322 donice(int which, id_t who, int prio, int increment, char *who_s)
326 oldprio = getpriority(which, who);
337 if (setpriority(which, who, prio) < 0) {