Lines Matching refs:arg
109 char *arg; in kill_main() local
130 arg = *++argv; in kill_main()
132 if (!arg || arg[0] != '-') { in kill_main()
140 if (arg[1] == 'l' && arg[2] == '\0') { in kill_main()
141 arg = *++argv; in kill_main()
142 if (!arg) { in kill_main()
149 if (isdigit(arg[0])) { in kill_main()
150 signo = bb_strtou(arg, NULL, 10); in kill_main()
152 bb_error_msg("unknown signal '%s'", arg); in kill_main()
162 signo = get_signum(arg); in kill_main()
164 bb_error_msg("unknown signal '%s'", arg); in kill_main()
169 arg = *++argv; in kill_main()
170 } while (arg); in kill_main()
175 if (is_killall && arg[1] == 'q' && arg[2] == '\0') { in kill_main()
179 arg = *++argv; in kill_main()
180 if (!arg) in kill_main()
182 if (arg[0] != '-') in kill_main()
186 arg++; /* skip '-' */ in kill_main()
189 if (is_killall5 && arg[0] == 'o') in kill_main()
193 if (!is_killall5 && arg[0] == '-' && arg[1] == '\0') in kill_main()
196 if (argv[1] && arg[0] == 's' && arg[1] == '\0') { /* -s SIG? */ in kill_main()
197 arg = *++argv; in kill_main()
199 signo = get_signum(arg); in kill_main()
201 bb_error_msg("bad signal name '%s'", arg); in kill_main()
205 arg = *++argv; in kill_main()
239 arg = *args++; in kill_main()
240 if (arg[0] != '-' || arg[1] != 'o') { in kill_main()
241 bb_error_msg("bad option '%s'", arg); in kill_main()
245 arg += 2; in kill_main()
246 if (!arg[0] && *args) in kill_main()
247 arg = *args++; in kill_main()
248 omit = bb_strtoi(arg, NULL, 10); in kill_main()
250 bb_error_msg("invalid number '%s'", arg); in kill_main()
270 if (!arg) { in kill_main()
280 pidList = find_pid_by_name(arg); in kill_main()
284 bb_error_msg("%s: no process killed", arg); in kill_main()
299 arg = *++argv; in kill_main()
300 } while (arg); in kill_main()
307 while (arg) { in kill_main()
314 while (*arg != '\0') { in kill_main()
316 if (*arg == ' ') in kill_main()
317 arg++; in kill_main()
318 pid = bb_strtoi(arg, &end, 10); in kill_main()
320 bb_error_msg("invalid number '%s'", arg); in kill_main()
328 arg = end; /* can only point to ' ' or '\0' now */ in kill_main()
331 pid = bb_strtoi(arg, NULL, 10); in kill_main()
333 bb_error_msg("invalid number '%s'", arg); in kill_main()
340 arg = *++argv; in kill_main()