Searched refs:exitval (Results 1 – 25 of 55) sorted by relevance
123
/external/toybox/toys/pending/ |
D | test.c | 47 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 …]
|
D | useradd.c | 140 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",
|
D | ftpget.c | 238 toys.exitval = EXIT_SUCCESS; in get_file() 260 toys.exitval = EXIT_SUCCESS; in put_file() 262 toys.exitval = EXIT_FAILURE; in put_file()
|
D | sh.c | 304 cmd->pid = toys.exitval; in run_pipeline() 388 toys.exitval = 1; in sh_main()
|
D | fsck.c | 389 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/ |
D | pidof.c | 33 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()
|
D | mktemp.c | 48 if (toys.optflags & FLAG_q) toys.exitval = 1;
|
/external/toybox/toys/other/ |
D | mountpoint.c | 26 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()
|
D | reboot.c | 33 if (toys.optflags & FLAG_f) toys.exitval = reboot(types[idx]); in reboot_main() 34 else toys.exitval = kill(1, sigs[idx]); in reboot_main()
|
D | nsenter.c | 137 toys.exitval = xrun(toys.optargs); in unshare_main() 163 toys.exitval = xrun(toys.optargs); in unshare_main()
|
D | usleep.c | 25 toys.exitval = !!nanosleep(&tv, NULL); in usleep_main()
|
D | pwdx.c | 32 toys.exitval = 1; in pwdx_main()
|
D | readlink.c | 40 } else toys.exitval = 1; in readlink_main()
|
D | flock.c | 36 if ((op & LOCK_NB) && errno == EAGAIN) toys.exitval = 1; in flock_main()
|
D | printenv.c | 41 if (*var && !catch) toys.exitval = 1; in printenv_main()
|
D | which.c | 67 toys.exitval |= which_in_path(toys.optargs[i]); in which_main()
|
/external/toybox/toys/posix/ |
D | cmp.c | 53 toys.exitval = 1; 60 toys.exitval++; 71 toys.exitval = 1;
|
D | false.c | 20 toys.exitval = 1; in false_main()
|
D | tty.c | 31 toys.exitval = !tty; in tty_main()
|
D | sleep.c | 35 toys.exitval = !!nanosleep(&tv, NULL); in sleep_main()
|
D | tee.c | 66 if(len != writeall(fdl ? fdl->fd : 1, toybuf, len)) toys.exitval=1; in tee_main()
|
D | time.c | 47 toys.exitval = WIFEXITED(stat) ? WEXITSTATUS(stat) : WTERMSIG(stat); in time_main()
|
D | cat.c | 61 toys.exitval = EXIT_FAILURE; in do_cat()
|
/external/toybox/ |
D | toys.h | 106 int exitval; // Value error_exit feeds to exit() member
|
/external/toybox/lib/ |
D | xwrap.c | 35 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