Lines Matching refs:optargs
49 if (!strcmp("]", toys.optargs[--toys.optc])) error_exit("Missing ']'"); in test_main()
50 if (!strcmp("!", toys.optargs[0])) { in test_main()
52 toys.optargs++; in test_main()
56 else if (toys.optargs[0][0] == '-') { in test_main()
57 id = stridx("bcdefghLpSsurwxznt", toys.optargs[0][1]); in test_main()
58 if (id == -1 || toys.optargs[0][2]) error_exit(err_fmt, toys.optargs[0]); in test_main()
64 if (lstat(toys.optargs[1], &st) == -1) return; in test_main()
66 if (!nolink && (stat(toys.optargs[1], &st) == -1)) return; in test_main()
81 toys.exitval = access(toys.optargs[1], 1 << (id - 12)) == -1; in test_main()
83 toys.exitval = toys.optargs[1] && !*toys.optargs[1] ^ (id - 15); in test_main()
86 toys.exitval = tcgetattr(atoi(toys.optargs[1]), &termios) == -1; in test_main()
89 else if (toys.optc == 1) toys.exitval = *toys.optargs[0] == 0; in test_main()
91 if (*toys.optargs[1] == '-') { in test_main()
92 long a = atol(toys.optargs[0]), b = atol(toys.optargs[2]); in test_main()
94 s = toys.optargs[1] + 1; in test_main()
101 else error_exit(err_fmt, toys.optargs[1]); in test_main()
104 int result = strcmp(toys.optargs[0], toys.optargs[2]); in test_main()
106 s = toys.optargs[1]; in test_main()
109 else error_exit(err_fmt, toys.optargs[1]); in test_main()