Lines Matching refs:toys
44 #include "toys.h"
68 if (!(toys.optflags&(FLAG_H-1))) toys.optflags |= FLAG_f;
69 if ((toys.optflags&(FLAG_a|FLAG_p)) && toys.optc) error_exit("can't set -ap");
72 if (!(toys.optflags&FLAG_P)) TT.pid = getppid();
77 int get = toys.optflags&(FLAG_a|(1<<i));
80 if (!toys.optc) {
81 if (toys.optflags&FLAG_a) printf("-%c: ", flags[i]);
84 if (toys.optflags&FLAG_H)
94 rlim_t rl = (toys.optflags&FLAG_H) ? rr.rlim_max : rr.rlim_cur;
101 if (toys.optflags&(1<<i)) break;
104 if (toys.optflags&(FLAG_a|FLAG_p)) return;
106 if (toys.optc) {
109 if (tolower(**toys.optargs == 'i')) val = RLIM_INFINITY;
110 else val = atolx_range(*toys.optargs, 0, LONG_MAX);
112 if (toys.optflags&FLAG_H) rr.rlim_max = val;