Lines Matching refs:toys
28 #include "toys.h"
202 args = xzalloc((toys.optc + 2 + 1 + 1) * sizeof(char*)); //+1, for NULL, +1 if -C
205 if(toys.optflags & FLAG_C) args[i++] = xmprintf("%s %d","-C", TT.fd_num);
206 while(toys.optargs[j]) {
207 if(*toys.optargs[j]) args[i++] = xstrdup(toys.optargs[j]);
213 if ((toys.optflags & FLAG_V) || (toys.optflags & FLAG_N)) {
220 if (toys.optflags & FLAG_N) {
306 if (toys.optflags & FLAG_V) xprintf("Checking all filesystem\n");
313 if (!(toys.optflags & FLAG_P)) {
316 if ((toys.optflags & FLAG_R) || to_be_ignored(finfo)) {
330 if (toys.optflags & FLAG_R) { // with -PR we choose to skip root.
346 if ((toys.optflags & FLAG_s) || (TT.nr_run
368 char *tmp, **arg = toys.optargs;
378 if (toys.optflags & FLAG_t) fix_tlist();
384 if (!(toys.optflags & FLAG_T)) xprintf("fsck ----- (Toybox)\n");
388 if (!TT.devices || (toys.optflags & FLAG_A)) {
389 toys.exitval = scan_all();
410 if ((toys.optflags & FLAG_s) || (TT.nr_run && (TT.nr_run >= TT.max_nr_run)))
411 toys.exitval |= wait_for(0);
414 toys.exitval |= wait_for(1);