Lines Matching defs:arg
202 if (!toys.optargs[*i]) error_exit("missing arg");
265 char *arg = toys.optargs[++(*i)];
268 if (!arg) error_exit("missing arg");
269 if (!strcmp(arg, "^-") || !strcmp(arg, "undef")) ch = _POSIX_VDISABLE;
270 else if (!strcmp(arg, "^?")) ch = 0x7f;
271 else if (arg[0] == '^' && arg[2] == 0) ch = (toupper(arg[1])-'@');
272 else if (!arg[1]) ch = arg[0];
273 else error_exit("invalid arg: %s", arg);
274 xprintf("setting %s to %s (%02x)\n", char_name, arg, ch);
328 char *arg = toys.optargs[i];
330 if (!strcmp(arg, "size")) show_size(0);
331 else if (!strcmp(arg, "speed")) show_speed(&old, 0);
332 else if (!strcmp(arg, "line")) new.c_line = get_arg(&i, N_TTY, NR_LDISCS);
333 else if (!strcmp(arg, "min")) new.c_cc[VMIN] = get_arg(&i, 0, 255);
334 else if (!strcmp(arg, "time")) new.c_cc[VTIME] = get_arg(&i, 0, 255);
335 else if (atoi(arg) > 0) {
336 int new_speed = speed(atolx_range(arg, 0, 4000000));
340 } else if (!strcmp(arg, "ispeed"))
342 else if (!strcmp(arg, "ospeed"))
344 else if (!strcmp(arg, "rows")) set_size(1, get_arg(&i, 0, USHRT_MAX));
345 else if (!strcmp(arg, "cols") || !strcmp(arg, "columns"))
347 else if (sscanf(arg, "%x:%x:%x:%x:%n", &new.c_iflag, &new.c_oflag,
352 arg += n;
354 if (sscanf(arg, "%x%n", &value, &n) != 1) error_exit("bad -g string");
356 arg += n+1;
358 } else if (set_special_character(&new, &i, arg));
360 else if (!strcmp(arg, "cooked"))
363 else if (!strcmp(arg, "evenp") || !strcmp(arg, "parity"))
365 else if (!strcmp(arg, "oddp"))
367 else if (!strcmp(arg, "-parity") || !strcmp(arg, "-evenp") ||
368 !strcmp(arg, "-oddp")) {
370 } else if (!strcmp(arg, "raw")) {
377 } else if (!strcmp(arg, "nl"))
379 else if (!strcmp(arg, "-nl"))
381 else if (!strcmp(arg, "ek")) {
384 } else if (!strcmp(arg, "sane")) make_sane(&new);
388 if (!strcmp(synonyms[j].from, arg)) {
389 arg = synonyms[j].to;
393 set_option(&new, arg);