HomeSort by relevance Sort by last modified time
    Searched refs:toys (Results 76 - 100 of 235) sorted by null

1 2 34 5 6 7 8 910

  /external/toybox/toys/posix/
head.c 27 #include "toys.h"
39 if ((toys.optc > 1 && !(toys.optflags & FLAG_q)) || toys.optflags & FLAG_v) {
46 while ((toys.optflags&FLAG_c) ? bytes : lines) {
64 char *arg = *toys.optargs;
69 toys.optc--;
71 loopfiles(toys.optargs+!!arg, do_head);
ulimit.c 46 #include "toys.h"
70 if (!(toys.optflags&(FLAG_H-1))) toys.optflags |= FLAG_f;
71 if ((FLAG(a)||FLAG(p)) && toys.optc) error_exit("can't set -ap");
79 int get = toys.optflags&(FLAG_a|(1<<i));
82 if (!toys.optc) {
103 if (toys.optflags&(1<<i)) break;
108 if (toys.optc) {
111 if (tolower(**toys.optargs) == 'u') val = RLIM_INFINITY;
112 else val = atolx_range(*toys.optargs, 0, LONG_MAX)
    [all...]
id.c 64 #include "toys.h"
72 if (toys.optflags&FLAG_n) printf("%s", s);
93 flags = toys.optflags;
105 if (toys.optflags&FLAG_u) s_or_u(pw->pw_name, pw->pw_uid, 1);
110 if (!(toys.optflags&(FLAG_G|FLAG_g|FLAG_Z))) {
128 if (!(toys.optflags&FLAG_Z)) {
135 int show_separator = !(toys.optflags&FLAG_G);
137 if (show_separator) xputc((toys.optflags&FLAG_G) ? ' ' : ',');
140 else if (toys.optflags&FLAG_G) s_or_u(grp->gr_name, grp->gr_gid, 0);
144 if (toys.optflags&FLAG_G)
    [all...]
uuencode.c 21 #include "toys.h"
25 char *name = toys.optargs[toys.optc-1], buf[(76/4)*3];
29 if (toys.optc > 1) fd = xopenro(toys.optargs[0]);
rm.c 24 #include "toys.h"
28 int fd = dirtree_parentfd(try), flags = toys.optflags;
55 if (toys.optflags & FLAG_f) wfchmodat(fd, try->name, 0700);
75 printf("%s%s '%s'\n", toys.which->name, dir ? "dir" : "", s);
92 if (!toys.optc && !(toys.optflags & FLAG_f)) error_exit("Needs 1 argument");
94 for (s = toys.optargs; *s; s++) {
102 if ((toys.optflags & FLAG_f) && (!unlink(*s) || errno == ENOENT))
  /external/toybox/toys/lsb/
umount.c 32 #include "toys.h"
79 if (toys.optflags & FLAG_v) xprintf("%s unmounted\n", dir);
83 if (dev && !(toys.optflags & FLAG_D)) {
88 if (!ioctl(lfd, 0x4C01) && (toys.optflags & FLAG_v))
97 if (toys.optflags & FLAG_r) {
99 if (toys.optflags & FLAG_v) xprintf("%s remounted ro\n", dir);
113 if (!toys.optc && !(toys.optflags & FLAG_a))
116 if (toys.optflags & FLAG_f) flags |= MNT_FORCE;
117 if (toys.optflags & FLAG_l) flags |= MNT_DETACH
    [all...]
mktemp.c 28 #include "toys.h"
36 char *template = *toys.optargs, *dir = TT.p, *te = getenv("TMPDIR");
55 if (toys.optflags & FLAG_u) {
75 } else if ((toys.optflags & FLAG_d) ? !mkdtemp(template) : mkstemp(template) == -1) {
76 if (toys.optflags & FLAG_q) {
77 toys.exitval = 1;
80 (toys.optflags & FLAG_d) ? "directory" : "file", TT.p, template);
dmesg.c 33 #include "toys.h"
72 if (toys.optflags&FLAG_r) {
78 if (!(toys.optflags&FLAG_t)) {
80 if (toys.optflags&FLAG_T) {
118 if (toys.optflags & (FLAG_C|FLAG_n)) goto no_output;
120 if (toys.optflags&FLAG_T) {
127 if (!(toys.optflags&FLAG_S)) {
134 fd = open("/dev/kmsg", O_RDONLY|(O_NONBLOCK*!(toys.optflags&FLAG_w)));
161 data[size = xklogctl(3+(toys.optflags&FLAG_c), data, size)] = 0;
177 if (toys.optflags & FLAG_n) xklogctl(8, 0, TT.n)
    [all...]
passwd.c 36 #include "toys.h"
64 if (!(myuid = getuid()) || !(toys.optflags&(FLAG_l|FLAG_u|FLAG_d))) {
65 if (*toys.optargs) pw = xgetpwnam(*toys.optargs);
75 if (toys.optflags & FLAG_l) {
79 } else if (toys.optflags & FLAG_u) {
83 } else if (toys.optflags & FLAG_d) {
114 if (CFG_TOYBOX_FREE && (toys.optflags & FLAG_l)) free(encrypted);
  /external/toybox/toys/net/
tunctl.c 31 #include "toys.h"
45 ifr->ifr_flags = ((toys.optflags&FLAG_T) ? IFF_TUN : IFF_TAP)|IFF_NO_PI;
46 strncpy(ifr->ifr_name, *toys.optargs, sizeof(ifr->ifr_name));
49 if (toys.optflags&FLAG_t) {
  /external/toybox/toys/other/
rmmod.c 20 #include "toys.h"
32 mod_name = basename(*toys.optargs);
38 if (toys.optflags & FLAG_f) flags |= O_TRUNC;
39 if (toys.optflags & FLAG_w) flags &= ~O_NONBLOCK;
taskset.c 35 #include "toys.h"
49 char *s = *toys.optargs, *failed = "failed to %s %d's affinity";
73 if (i || toys.optc < 2) return;
76 k = strlen(s = *toys.optargs);
82 if (digit > 15) error_exit("bad mask '%s'", *toys.optargs);
101 if (!(toys.optflags & FLAG_p)) {
102 if (toys.optc < 2) error_exit("Needs 2 args");
104 xexec(toys.optargs+1);
107 pid_t pid = strtol(toys.optargs[toys.optc-1], &c, 10)
    [all...]
blockdev.c 33 #include "toys.h"
47 if (!toys.optflags) help_exit("need --option");
49 for (ss = toys.optargs; *ss; ss++) {
54 long flag = toys.optflags & (1<<i);
66 if (!flag) printf("%lld\n", (toys.optflags & FLAG_getsz) ? val >> 9: val);
inotifyd.c 34 #include "toys.h"
40 char *prog_args[5], **ss = toys.optargs;
45 *prog_args = *toys.optargs;
50 toys.optc--;
67 // is the toys.optargs position of the file. (0 is program to run.)
102 toys.optargs[event->wd], event->name);
105 prog_args[2] = toys.optargs[event->wd];
111 if (--toys.optc <= 0) {
125 toys.exitval = !!toys.signal
    [all...]
pmap.c 23 #include "toys.h"
29 for (optargs = toys.optargs; *optargs; optargs++) {
33 *k = (toys.optflags & FLAG_x) ? "" : "K";
48 (toys.optflags & FLAG_x) ? "s" : "");
54 if ((toys.optflags & (FLAG_q|FLAG_x)) == FLAG_x)
72 6+!!(toys.optflags & FLAG_x), end, k);
73 if (toys.optflags & FLAG_x) {
99 if (!(toys.optflags & FLAG_q)) {
100 int x = !!(toys.optflags & FLAG_x);
shred.c 30 #include "toys.h"
40 if (!(toys.optflags & FLAG_n)) TT.n++;
45 for (try = toys.optargs; *try; try++) {
50 if (fd == -1 && (toys.optflags & FLAG_f)) {
73 if (++iter == TT.n && (toys.optargs && FLAG_z)) {
91 if (toys.optflags & FLAG_x)
98 if (toys.optflags & FLAG_u)
mkpasswd.c 25 #include "toys.h"
38 if (toys.optc == 2) {
40 TT.S = toys.optargs[1];
61 if (!*toys.optargs) {
76 xprintf("%s\n",crypt(*toys.optargs ? *toys.optargs : toybuf, salt));
  /external/toybox/toys/pending/
more.c 19 #include "toys.h"
70 if (toys.optc > 1) show_file_header(name);
83 loopfiles(toys.optargs, do_cat_operation);
101 if (*toys.optargs && !(fp = fopen(*toys.optargs, "r"))) {
102 perror_msg("%s", *toys.optargs);
110 if (toys.optc > 1) {
111 show_file_header(*toys.optargs);
142 if (*toys.optargs && *++toys.optargs)
    [all...]
ipcrm.c 23 #include "toys.h"
71 ++toys.argv;
72 if (toys.optc && (!strcmp(*toys.argv, "shm") ||
73 !strcmp(*toys.argv, "sem") || !strcmp(*toys.argv, "msg"))) {
74 int t = (toys.argv[0][1] == 'h')? 1 : (toys.argv[0][1] == 's')? 2:3;
76 while (*(++toys.argv)) do_ipcrm(0, t, *toys.argv);
    [all...]
arp.c 35 #include "toys.h"
127 resolve_host(toys.optargs[0], &sa);
143 if (!toys.optargs[1]) error_exit("bad syntax");
145 if (!(toys.optflags & FLAG_D)) {
146 char *ptr = toys.optargs[1];
163 xstrncpy(ifre.ifr_name, toys.optargs[1], IFNAMSIZ);
165 if ((toys.optflags & FLAG_H) && (ifre.ifr_hwaddr.sa_family != ARPHRD_ETHER))
171 if (toys.optargs[2]) check_flags(&flags, (toys.optargs+2));
176 if (toys.optflags & FLAG_v) xprintf("Entry set for %s\n", toys.optargs[0])
    [all...]
gzip.c 57 #include "toys.h"
120 if (!in_fd || (toys.optflags&FLAG_c)) out_fd = 1;
122 if (!(toys.optflags&FLAG_f))
131 if (!(toys.optflags&FLAG_d)) out_name = xmprintf("%s%s", arg, ".gz");
141 O_CREAT|O_WRONLY|WARN_ONLY|(O_EXCL*!(toys.optflags&FLAG_f)), sb.st_mode);
145 if (do_deflate(in_fd, out_fd, toys.optflags&FLAG_d, TT.level) && out_name)
153 if (!(toys.optflags&FLAG_k)) if (unlink(arg)) perror_msg("unlink %s", arg);
162 if ((toys.optflags>>TT.level)&1) break;
165 loopfiles(toys.optargs, do_gzip);
170 toys.optflags |= FLAG_d
    [all...]
arping.c 31 #include "toys.h"
85 if (!(toys.optflags & FLAG_q)) {
90 if (toys.optflags & FLAG_D) exit(!!TT.rcvd_nr);
92 if (toys.optflags & FLAG_U) exit(EXIT_SUCCESS);
108 arp_h->ar_op = (toys.optflags & FLAG_A) ? htons(ARPOP_REPLY)
114 (toys.optflags & FLAG_A) ? &src_pk.sll_addr : &dst_pk.sll_addr,
152 if (toys.optflags & FLAG_D) {
157 if (!(toys.optflags & FLAG_q)) {
175 if (toys.optflags & FLAG_f) done(0);
176 if (!(toys.optflags & FLAG_b))
    [all...]
  /external/toybox/toys/android/
log.c 22 #include "toys.h"
43 for (i = 0; toys.optargs[i]; i++) {
45 if ((s-toybuf)+strlen(toys.optargs[i])>=1024) {
46 memcpy(s, toys.optargs[i], 1024-(s-toybuf));
52 s = stpcpy(s, toys.optargs[i]);
setenforce.c 18 #include "toys.h"
22 char *new = *toys.optargs;
getprop.c 18 #include "toys.h"
48 if (toys.optflags & FLAG_Z) {
80 if (toys.optflags & FLAG_Z) {
89 if (*toys.optargs) {
90 if (toys.optflags & FLAG_Z) {
91 char *context = get_property_context(*toys.optargs);
96 const prop_info* pi = __system_property_find(*toys.optargs);
98 puts(toys.optargs[1] ? toys.optargs[1] : "");
118 if (CFG_TOYBOX_FREE && (toys.optflags & FLAG_Z)) selabel_close(TT.handle)
    [all...]

Completed in 1058 milliseconds

1 2 34 5 6 7 8 910