Home
last modified time | relevance | path

Searched refs:exitval (Results 1 – 25 of 55) sorted by relevance

123

/external/toybox/toys/pending/
Dtest.c47 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()
[all …]
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",
Dftpget.c238 toys.exitval = EXIT_SUCCESS; in get_file()
260 toys.exitval = EXIT_SUCCESS; in put_file()
262 toys.exitval = EXIT_FAILURE; in put_file()
Dsh.c304 cmd->pid = toys.exitval; in run_pipeline()
388 toys.exitval = 1; in sh_main()
Dfsck.c389 toys.exitval = scan_all(); in fsck_main()
411 toys.exitval |= wait_for(0); in fsck_main()
414 toys.exitval |= wait_for(1); in fsck_main()
/external/toybox/toys/lsb/
Dpidof.c33 xprintf(" %s"+!!toys.exitval, toybuf);
34 toys.exitval = 0;
41 toys.exitval = 1; in pidof_main()
43 if (!toys.exitval) xputc('\n'); in pidof_main()
Dmktemp.c48 if (toys.optflags & FLAG_q) toys.exitval = 1;
/external/toybox/toys/other/
Dmountpoint.c26 toys.exitval++; in die()
58 toys.exitval = !(st1.st_dev != st2.st_dev || st1.st_ino == st2.st_ino); in mountpoint_main()
62 printf("%s is %sa mountpoint\n", *toys.optargs, toys.exitval ? "not " : ""); in mountpoint_main()
Dreboot.c33 if (toys.optflags & FLAG_f) toys.exitval = reboot(types[idx]); in reboot_main()
34 else toys.exitval = kill(1, sigs[idx]); in reboot_main()
Dnsenter.c137 toys.exitval = xrun(toys.optargs); in unshare_main()
163 toys.exitval = xrun(toys.optargs); in unshare_main()
Dusleep.c25 toys.exitval = !!nanosleep(&tv, NULL); in usleep_main()
Dpwdx.c32 toys.exitval = 1; in pwdx_main()
Dreadlink.c40 } else toys.exitval = 1; in readlink_main()
Dflock.c36 if ((op & LOCK_NB) && errno == EAGAIN) toys.exitval = 1; in flock_main()
Dprintenv.c41 if (*var && !catch) toys.exitval = 1; in printenv_main()
Dwhich.c67 toys.exitval |= which_in_path(toys.optargs[i]); in which_main()
/external/toybox/toys/posix/
Dcmp.c53 toys.exitval = 1;
60 toys.exitval++;
71 toys.exitval = 1;
Dfalse.c20 toys.exitval = 1; in false_main()
Dtty.c31 toys.exitval = !tty; in tty_main()
Dsleep.c35 toys.exitval = !!nanosleep(&tv, NULL); in sleep_main()
Dtee.c66 if(len != writeall(fdl ? fdl->fd : 1, toybuf, len)) toys.exitval=1; in tee_main()
Dtime.c47 toys.exitval = WIFEXITED(stat) ? WEXITSTATUS(stat) : WTERMSIG(stat); in time_main()
Dcat.c61 toys.exitval = EXIT_FAILURE; in do_cat()
/external/toybox/
Dtoys.h106 int exitval; // Value error_exit feeds to exit() member
/external/toybox/lib/
Dxwrap.c35 if (!toys.exitval) perror_msg("write"); in xexit()
37 exit(toys.exitval); in xexit()
164 toys.exitval = 127; in xexec()
165 if (!CFG_TOYBOX_FORK) _exit(toys.exitval); in xexec()

123