Lines Matching refs:toys
47 #include "toys.h"
144 if (toys.optflags & FLAG_f) return;
172 toys.exitval |= xrun((char *[]){"swapon", "--", dev, 0});
195 if (toys.optflags & FLAG_v)
205 if (toys.optflags & FLAG_v)
279 if (toys.optflags & FLAG_r) comma_collate(&opts, "ro");
280 if (toys.optflags & FLAG_w) comma_collate(&opts, "rw");
283 for (ss = toys.optargs; *ss; ss++) {
294 if ((toys.optflags & FLAG_a) && dir) error_exit("-a with >1 arg");
300 if (((toys.optflags & FLAG_a) && !access("/proc/mounts", R_OK)) || remount) {
307 if ((toys.optflags & FLAG_a) || (dev && (!dir || getuid() || remount))) {
320 if (toys.optflags & FLAG_a) {
352 if (!(toys.optflags & FLAG_a)) break;
358 if (!mm && !(toys.optflags & FLAG_a))