Lines Matching refs:exitval
47 toys.exitval = 2; in test_main()
55 if (!toys.optc) toys.exitval = 0; in test_main()
63 toys.exitval = 1; in test_main()
68 if (id == 0) toys.exitval = !S_ISBLK(st.st_mode); // b in test_main()
69 else if (id == 1) toys.exitval = !S_ISCHR(st.st_mode); // c in test_main()
70 else if (id == 2) toys.exitval = !S_ISDIR(st.st_mode); // d in test_main()
71 else if (id == 3) toys.exitval = 0; // e in test_main()
72 else if (id == 4) toys.exitval = !S_ISREG(st.st_mode); // f in test_main()
73 else if (id == 5) toys.exitval = !(st.st_mode & S_ISGID); // g in test_main()
74 else if ((id == 6) || (id == 7)) toys.exitval = nolink; // hL in test_main()
75 else if (id == 8) toys.exitval = !S_ISFIFO(st.st_mode); // p in test_main()
76 else if (id == 9) toys.exitval = !S_ISSOCK(st.st_mode); // S in test_main()
77 else if (id == 10) toys.exitval = st.st_size == 0; // s in test_main()
78 else toys.exitval = !(st.st_mode & S_ISUID); // u 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()
95 if (!strcmp("eq", s)) toys.exitval = a != b; in test_main()
96 else if (!strcmp("ne", s)) toys.exitval = a == b; in test_main()
97 else if (!strcmp("gt", s)) toys.exitval = a < b; in test_main()
98 else if (!strcmp("ge", s)) toys.exitval = a <= b; in test_main()
99 else if (!strcmp("lt", s)) toys.exitval = a > b; in test_main()
100 else if (!strcmp("le", s)) toys.exitval = a >= b; in test_main()
107 if (!strcmp("=", s)) toys.exitval = !!result; in test_main()
108 else if (!strcmp("!=", s)) toys.exitval = !result; in test_main()
112 toys.exitval ^= not; in test_main()