Searched refs:exitval (Results 1 - 25 of 57) sorted by relevance

123

/external/toybox/toys/posix/
H A Dfalse.c20 toys.exitval = 1;
H A Dtty.c31 toys.exitval = !tty;
H A Dsleep.c35 toys.exitval = !!nanosleep(&tv, NULL);
H A Dcmp.c53 toys.exitval = 1;
60 toys.exitval++;
71 toys.exitval = 1;
H A Dcat.c61 toys.exitval = EXIT_FAILURE;
H A Dtee.c66 if(len != writeall(fdl ? fdl->fd : 1, toybuf, len)) toys.exitval=1;
H A Dtime.c47 toys.exitval = WIFEXITED(stat) ? WEXITSTATUS(stat) : WTERMSIG(stat);
/external/toybox/toys/lsb/
H A Dpidof.c33 xprintf(" %s"+!!toys.exitval, toybuf);
34 toys.exitval = 0;
41 toys.exitval = 1;
43 if (!toys.exitval) xputc('\n');
H A Dmktemp.c48 if (toys.optflags & FLAG_q) toys.exitval = 1;
H A Dkillall.c95 toys.exitval = 1;
H A Dsu.c98 toys.exitval = 1;
/external/toybox/toys/pending/
H A Dtest.c47 toys.exitval = 2;
55 if (!toys.optc) toys.exitval = 0;
63 toys.exitval = 1;
68 if (id == 0) toys.exitval = !S_ISBLK(st.st_mode); // b
69 else if (id == 1) toys.exitval = !S_ISCHR(st.st_mode); // c
70 else if (id == 2) toys.exitval = !S_ISDIR(st.st_mode); // d
71 else if (id == 3) toys.exitval = 0; // e
72 else if (id == 4) toys.exitval = !S_ISREG(st.st_mode); // f
73 else if (id == 5) toys.exitval = !(st.st_mode & S_ISGID); // g
74 else if ((id == 6) || (id == 7)) toys.exitval
[all...]
H A Duseradd.c140 toys.exitval = xrun((char *[]){"cp", "-R", skel, p, 0});
141 else toys.exitval = xrun((char *[]){"mkdir", "-p", p, 0});
142 if (!toys.exitval)
143 toys.exitval |= xrun((char *[]){"chown", "-R",
H A Dsh.c304 cmd->pid = toys.exitval;
388 toys.exitval = 1;
/external/toybox/toys/other/
H A Dusleep.c25 toys.exitval = !!nanosleep(&tv, NULL);
H A Dreboot.c33 if (toys.optflags & FLAG_f) toys.exitval = reboot(types[idx]);
34 else toys.exitval = kill(1, sigs[idx]);
H A Dpwdx.c32 toys.exitval = 1;
H A Dreadlink.c40 } else toys.exitval = 1;
H A Dflock.c36 if ((op & LOCK_NB) && errno == EAGAIN) toys.exitval = 1;
H A Dprintenv.c41 if (*var && !catch) toys.exitval = 1;
H A Dmountpoint.c26 toys.exitval++;
58 toys.exitval = !(st1.st_dev != st2.st_dev || st1.st_ino == st2.st_ino);
62 printf("%s is %sa mountpoint\n", *toys.optargs, toys.exitval ? "not " : "");
H A Dwhich.c67 toys.exitval |= which_in_path(toys.optargs[i]);
H A Dnsenter.c137 toys.exitval = xrun(toys.optargs);
163 toys.exitval = xrun(toys.optargs);
H A Dtimeout.c69 toys.exitval = xwaitpid(TT.pid);
H A Dinotifyd.c125 toys.exitval = !!toys.signal;

Completed in 140 milliseconds

123