HomeSort by relevance Sort by last modified time
    Searched refs:toys (Results 176 - 200 of 220) sorted by null

1 2 3 4 5 6 78 9

  /external/toybox/toys/posix/
ps.c 211 #include "toys.h"
391 if ((toys.optflags&(FLAG_a|FLAG_d)) && slot[SLOT_sid]==*slot) return 0;
392 if ((toys.optflags&FLAG_a) && !slot[SLOT_ttynr]) return 0;
393 if (!(toys.optflags&(FLAG_a|FLAG_d|FLAG_A|FLAG_e))
    [all...]
pwd.c 22 #include "toys.h"
29 if (!(toys.optflags & FLAG_P) && (s = PWD = getenv("PWD"))) {
printf.c 23 #include "toys.h"
79 char **arg = toys.optargs+1;
84 char *f = *toys.optargs;
131 } else error_exit("bad %%%c@%ld", c, (long)(f-*toys.optargs));
find.c 56 #include "toys.h"
176 toys.exitval |= flush_exec(new, aa);
203 recurse = DIRTREE_COMEAGAIN|(DIRTREE_SYMFOLLOW*!!(toys.optflags&FLAG_L));
501 toys.exitval |= flush_exec(new, aa);
538 char **ss = toys.optargs;
543 for (len = 0; toys.optargs[len]; len++)
544 if (strchr("-!(", *toys.optargs[len])) break;
545 TT.filter = toys.optargs+len;
559 dirtree_handle_callback(dirtree_start(ss[i], toys.optflags&(FLAG_H|FLAG_L)),
expand.c 26 #include "toys.h"
126 loopfiles(toys.optargs, do_expand);
  /external/toybox/lib/
interestingtimes.c 6 #include "toys.h"
74 toys.signal = SIGWINCH;
97 if (toys.which->flags & TOYFLAG_LOCALE) termio.c_iflag |= IUTF8;
202 if (toys.signal || 1 != read(0, scratch+1+*scratch, 1))
203 return toys.signal ? -3 : -1;
xwrap.c 10 #include "toys.h"
33 if (toys.rebound) longjmp(*toys.rebound, 1);
35 if (!toys.exitval) perror_msg("write");
37 exit(toys.exitval);
150 toys.stacktop = 0;
160 if (CFG_TOYBOX && !CFG_TOYBOX_NORECURSE && toys.stacktop) toy_exec(argv);
164 toys.exitval = 127;
165 if (!CFG_TOYBOX_FORK) _exit(toys.exitval);
171 // toys.stacktop zeroed
    [all...]
password.c 8 #include "toys.h"
161 if (!strcmp(toys.which->name, "passwd")) {
169 } else if (!strcmp(toys.which->name, "groupadd") ||
170 !strcmp(toys.which->name, "addgroup") ||
171 !strcmp(toys.which->name, "delgroup") ||
172 !strcmp(toys.which->name, "groupdel")){
net.c 1 #include "toys.h"
52 if (toys.signal) return i;
  /external/toybox/toys/other/
login.c 28 #include "toys.h"
50 int hh = toys.optflags&FLAG_h, count, tty;
63 else username = *toys.optargs;
132 toys.exitval = 1;
141 if (!(toys.optflags&FLAG_p)) {
mkswap.c 17 #include "toys.h"
25 int fd = xopen(*toys.optargs, O_RDWR), pagesize = sysconf(_SC_PAGE_SIZE);
bzcat.c 42 #include "toys.h"
671 loopfiles(toys.optargs, do_bzcat);
685 if (toys.optflags&FLAG_t) outfd = xopen("/dev/null", O_WRONLY);
686 else if ((fd || strcmp(name, "-")) && !(toys.optflags&FLAG_c)) {
687 if (toys.optflags&FLAG_k) {
698 if (toys.optflags&FLAG_v) printf("%s:", name);
700 if (toys.optflags&FLAG_v) {
702 toys.exitval |= !!err;
707 if (toys.optflags&FLAG_k) {
720 loopfiles(toys.optargs, do_bunzip2)
    [all...]
rfkill.c 28 #include "toys.h"
35 char **optargs = toys.optargs;
  /external/toybox/toys/pending/
syslogd.c 37 #include "toys.h"
165 if (toys.optflags & FLAG_K) {
177 if (toys.optflags & FLAG_R) {
181 if (!(toys.optflags & FLAG_L)) return 0;
187 if (!(fp = fopen(TT.config_file, "r")) && (toys.optflags & FLAG_f))
228 file->filename = xstrdup((toys.optflags & FLAG_O) ?
286 if ((toys.optflags & FLAG_s) || (toys.optflags & FLAG_b)) {
346 if (toys.optflags & FLAG_K) len = sprintf(toybuf, "<%d> %s\n", pri, msg);
355 if (toys.optflags & FLAG_S) len = sprintf(toybuf, "%s %s\n", ts, msg)
    [all...]
tftp.c 25 #include "toys.h"
74 if(toys.optc == 2) port = atolx_range(toys.optargs[1], 1, 65535);
429 if (toys.optflags & FLAG_r) {
430 if (!(toys.optflags & FLAG_l)) {
434 } else if (toys.optflags & FLAG_l) TT.remote_file = TT.local_file;
440 ret = getaddrinfo(toys.optargs[0], toys.optargs[1], &rp, &info);
446 error_exit("bad address '%s' : %s", toys.optargs[0], gai_strerror(ret));
452 if (toys.optflags & FLAG_g) file_get()
    [all...]
telnetd.c 26 #include "toys.h"
135 if (toys.optflags & FLAG_b) {
193 if (toys.optflags & FLAG_i) fcntl((sockfd + 1), F_SETFL, flags | O_NONBLOCK);
195 writeall((toys.optflags & FLAG_i)?1:sockfd, intial_iacs, sizeof(intial_iacs));
311 int inetd_m = toys.optflags & FLAG_i;
313 if (!(toys.optflags & FLAG_l)) TT.login_path = "/bin/login";
314 if (!(toys.optflags & FLAG_f)) TT.issue_path = "/etc/issue.net";
315 if (toys.optflags & FLAG_w) toys.optflags |= FLAG_F;
320 if (!(toys.optflags & FLAG_F)) daemon(0, 0);
    [all...]
dhcp.c 49 #include "toys.h"
533 char *script = (toys.optflags & FLAG_s) ? TT.script
908 if (!(toys.optflags & FLAG_o)) {
915 if (toys.optflags & FLAG_O) {
1003 if (!(toys.optflags & FLAG_C)) pend = dhcpc_addclientid(pend);
1008 if (toys.optflags & FLAG_r) {
1013 vendor = (toys.optflags & FLAG_V) ? TT.vendor_cls : "toybox\0";
1015 if (toys.optflags & FLAG_H) pend = dhcpc_addstropt(pend, DHCP_OPTION_HOST_NAME, TT.hostname, strlen(TT.hostname));
1016 if (toys.optflags & FLAG_F) pend = dhcpc_addfdnname(pend, TT.fdn_name);
1017 if (!(toys.optflags & FLAG_o) || (toys.optflags & FLAG_O)
    [all...]
host.c 25 #include "toys.h"
70 int verbose=(toys.optflags & (FLAG_a|FLAG_v)), type,
77 name = *toys.optargs;
78 nsname = toys.optargs[1];
80 if (!TT.type_str && (toys.optflags & FLAG_a)) TT.type_str = "255";
213 toys.exitval = rcode;
modprobe.c 28 #include "toys.h"
278 else if (toys.optflags & FLAG_q)
329 !(toys.optflags & (FLAG_r | FLAG_D))) continue;
391 if (!(toys.optflags & (FLAG_r | FLAG_D)) && (mod->flags & MOD_ALOADED)) {
429 if (!(toys.optflags & FLAG_q))
434 if (!(toys.optflags & FLAG_r)) m->dep = llist_rev(m->dep);
444 if (toys.optflags & FLAG_r) {
461 if (toys.optflags & FLAG_D) {
488 char **argv = toys.optargs, *procline = NULL;
491 unsigned flags = toys.optflags
    [all...]
lsof.c 22 #include "toys.h"
63 for (; sb != &(TT.sought_files[toys.optc]); ++sb) {
84 if (toys.optc && !filter_matches(fi)) return;
86 if (toys.optflags&FLAG_t) {
416 if (!(toys.optflags&FLAG_l) && (pw = getpwuid(sb.st_uid))) {
442 TT.sought_files = xmalloc(toys.optc*sizeof(struct stat));
443 for (i = 0; i < toys.optc; ++i) {
444 xstat(toys.optargs[i], &(TT.sought_files[i]));
447 if (toys.optflags&FLAG_p) {
dhcp6.c 36 #include "toys.h"
142 if (toys.optflags & FLAG_S) infomode |= LOG_SYSTEM;
143 if(toys.optflags & FLAG_v) infomode |= LOG_CONSOLE;
439 char *script = (toys.optflags & FLAG_s) ? TT.script
475 if (toys.optflags & FLAG_n) {
480 if (toys.optflags & FLAG_b) {
483 if (toys.optflags & FLAG_p) write_pid(TT.pidfile);
484 toys.optflags &= ~FLAG_b;
485 toys.optflags |= FLAG_f;
520 if ((toys.optflags & FLAG_R) && TT.state == DHCP6CONFIRM
    [all...]
iconv.c 23 #include "toys.h"
72 loopfiles(toys.optargs, do_iconv);
tftpd.c 25 #include "toys.h"
105 else fd = open(file, ((toys.optflags & FLAG_c) ?
248 if (*toys.optargs) xchroot(*toys.optargs);
267 || ((opcode == TFTPD_OP_WRQ) && (toys.optflags & FLAG_r))) {
route.c 25 #include "toys.h"
114 (toys.optflags & FLAG_e)? " MSS Window irtt" : "Metric Ref Use");
124 if (!dest && !(toys.optflags & FLAG_n)) strcpy( destip, "default");
127 if (!gate && !(toys.optflags & FLAG_n)) strcpy( gateip, "*");
136 if (toys.optflags & FLAG_e) xprintf("%5d %-5d %6d %s\n", mss, win, irtt, iface);
434 if (!*toys.optargs) {
439 if (!strcmp(TT.family, "inet6")) setroute_inet6(toys.optargs);
440 else setroute(toys.optargs);
crond.c 27 #include "toys.h"
631 TT.flagd = (toys.optflags & FLAG_d);
635 if (!(toys.optflags & (FLAG_f | FLAG_b))) toys.optflags |= FLAG_b;
636 if (!(toys.optflags & (FLAG_S | FLAG_L))) toys.optflags |= FLAG_S;
638 if ((toys.optflags & FLAG_c)
643 if (toys.optflags & FLAG_b) daemon(0,0);
646 openlog(toys.which->name, LOG_CONS | LOG_PID, LOG_CRON);

Completed in 157 milliseconds

1 2 3 4 5 6 78 9