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

1 2 3 4 56 7 8 9

  /external/toybox/toys/android/
setprop.c 18 #include "toys.h"
26 char *name = toys.optargs[0], *value = toys.optargs[1];
  /external/toybox/toys/other/
dos2unix.c 28 #include "toys.h"
36 char c = toys.which->name[0];
70 loopfiles(toys.optargs, do_dos2unix);
factor.c 18 #include "toys.h"
76 if (toys.optc) {
79 for (ss = toys.optargs; *ss; ss++) factor(*ss);
truncate.c 24 #include "toys.h"
56 int cr = !(toys.optflags&1);
63 loopfiles_rw(toys.optargs, O_WRONLY|O_CLOEXEC|(cr ? O_CREAT : 0), 0666, cr,
rev.c 16 #include "toys.h"
40 loopfiles(toys.optargs, do_rev);
free.c 21 #include "toys.h"
34 if (toys.optflags & FLAG_h) human_readable(s, ll, 0);
47 while ((toys.optflags&(FLAG_h-1)) && !(toys.optflags&(1<<TT.bits))) TT.bits++;
timeout.c 28 #include "toys.h"
57 TT.itv.it_value.tv_sec = xparsetime(*toys.optargs, 1000000, &TT.itv.it_value.tv_usec);
65 if (!(TT.pid = XVFORK())) xexec(toys.optargs+1);
69 toys.exitval = xwaitpid(TT.pid);
stat.c 36 #include "toys.h"
96 xprintf("`%s'", *toys.optargs);
98 if (0<readlink(*toys.optargs, toybuf, sizeof(toybuf)))
149 int flagf = toys.optflags & FLAG_f;
160 if (toys.optflags & FLAG_c) format = TT.fmt;
162 for (; *toys.optargs; toys.optargs++) {
165 if (flagf && !statfs(*toys.optargs, (void *)&TT.stat));
166 else if (!flagf && !lstat(*toys.optargs, (void *)&TT.stat)) {
173 perror_msg("'%s'", *toys.optargs)
    [all...]
  /external/toybox/toys/posix/
time.c 23 #include "toys.h"
31 if (!(pid = XVFORK())) xexec(toys.optargs);
47 toys.exitval = WIFEXITED(stat) ? WEXITSTATUS(stat) : WTERMSIG(stat);
xargs.c 41 #include "toys.h"
116 if (!(toys.optflags & FLAG_0)) TT.delim = '\n';
119 if (!toys.optc) {
120 free(toys.optargs);
121 *(toys.optargs = xzalloc(2*sizeof(char *)))="echo";
122 toys.optc = 1;
125 for (entries = 0, bytes = -1; entries < toys.optc; entries++, bytes++)
126 bytes += strlen(toys.optargs[entries]);
165 memcpy(out, toys.optargs, entries*sizeof(char *));
who.c 25 #include "toys.h"
34 if ((toys.optflags & FLAG_a) || entry->ut_type == USER_PROCESS) {
cut.c 28 #include "toys.h"
106 char **argv = toys.optargs; //file name.
107 toys.exitval = EXIT_SUCCESS;
145 if (!(toys.optflags & FLAG_s)) xputs(buff);
238 if (toys.optflags & FLAG_f) {
241 } else if (toys.optflags & FLAG_c) {
249 if (toys.optflags & FLAG_d) {
256 if(!(toys.optflags & FLAG_d) && (toys.optflags & FLAG_f)) {
262 if (!(toys.optflags & FLAG_f))
    [all...]
cpio.c 40 #include "toys.h"
84 int pipe, afd = toys.optflags & FLAG_o;
90 if (toys.stacktop) {
92 // with !toys.stacktop
97 toys.optflags |= FLAG_i;
103 int perm = (toys.optflags & FLAG_o) ? O_CREAT|O_WRONLY|O_TRUNC : O_RDONLY;
110 if (toys.optflags & (FLAG_i|FLAG_t)) for (;;) {
113 int test = toys.optflags & FLAG_t, err = 0;
133 if (toys.optflags & (FLAG_t|FLAG_v)) puts(name);
150 if (!err && !geteuid() && !(toys.optflags & FLAG_no_preserve_owner)
    [all...]
sort.c 62 #include "toys.h"
236 int flags = toys.optflags, retval = 0;
244 flags = key->flags ? key->flags : toys.optflags;
264 if (!retval && !(CFG_SORT_BIG && (toys.optflags&FLAG_s))) {
265 flags = toys.optflags;
278 char * line = (CFG_SORT_BIG && (toys.optflags&FLAG_z))
284 if (CFG_SORT_BIG && (toys.optflags&FLAG_c)) {
285 int j = (toys.optflags&FLAG_u) ? -1 : 0;
338 optlist = toys.which->options;
358 if (toys.optflags&FLAG_b) toys.optflags |= FLAG_bb
    [all...]
ls.c 51 #include "toys.h"
76 if (toys.optflags & FLAG_q) for (; *s; s++) if (!isprint(*s)) *s = '?';
81 if (toys.optflags & FLAG_q) *s = '?';
95 if ((toys.optflags&(FLAG_F|FLAG_p)) && S_ISDIR(mode)) return '/';
96 if (toys.optflags & FLAG_F) {
131 unsigned flags = toys.optflags;
162 int ret = 0, reverse = (toys.optflags & FLAG_r) ? -1 : 1;
164 if (toys.optflags & FLAG_S) {
168 if (toys.optflags & FLAG_t) {
180 int flags = toys.optflags
    [all...]
df.c 30 #include "toys.h"
60 if (toys.optflags & (FLAG_H|FLAG_h)) {
65 const char *use_label = toys.optflags & FLAG_P ? "Capacity" : "Use%";
102 if (!(toys.optflags & FLAG_a) && !mt->statvfs.f_blocks) return;
127 if (toys.optflags & (FLAG_H|FLAG_h)) {
129 int hr_flags = (toys.optflags & FLAG_H) ? HR_1000 : 0;
154 if (toys.optflags & (FLAG_H|FLAG_h)) {
158 TT.units = toys.optflags & FLAG_P ? 512 : 1024;
165 if (*toys.optargs) {
170 for (next = toys.optargs; *next; next++)
    [all...]
patch.c 46 #include "toys.h"
78 if (toys.optflags & FLAG_x)
97 toys.exitval = 1;
133 int matcheof, trailing = 0, reverse = toys.optflags & FLAG_R, backwarn = 0;
136 lcmp = (toys.optflags & FLAG_l) ? (void *)loosecmp : (void *)strcmp;
143 if (toys.optflags & FLAG_x) fprintf(stderr, "HUNK:%s\n", plist->data);
147 if (toys.optflags & FLAG_x)
171 if (toys.optflags & FLAG_x) fprintf(stderr, "INEOF\n");
183 } else if (toys.optflags & FLAG_x) fprintf(stderr, "IN: %s\n", data);
200 if (toys.optflags & FLAG_x)
    [all...]
date.c 48 #include "toys.h"
167 char *setdate = *toys.optargs, *format_string = "%a %b %e %H:%M:%S %Z %Y";
173 if (toys.optflags & FLAG_u) utzset();
191 ((toys.optflags & FLAG_u) ? gmtime_r : localtime_r)(&now, &tm);
198 format_string = toys.optargs[0]+1;
199 setdate = toys.optargs[1];
207 if (toys.optflags & FLAG_u) {
  /external/toybox/lib/
args.c 12 #include "toys.h"
34 * Calling get_optflags() when toys.which->options="ab:c:d" and
37 * Changes to struct toys:
38 * toys.optflags = 5 (I.E. 0101 so -b = 4 | -d = 1)
39 * toys.optargs[0] = "walrus" (leftover argument)
40 * toys.optargs[1] = NULL (end of list)
41 * toys.optc = 1 (there was 1 leftover argument)
101 unsigned long long dex[3]; // bits to disable/enable/exclude in toys.optflags
143 if (toys.optflags & opt->dex[0]) {
149 if (clr->arg && (i & toys.optflags & opt->dex[0])) *clr->arg = 0
    [all...]
  /external/toybox/toys/pending/
dumpleases.c 22 #include "toys.h"
44 if(!(toys.optflags & FLAG_f)) TT.file = "/var/lib/misc/dhcpd.leases"; //DEF_LEASE_FILE
46 xprintf("Mac Address IP Address Host Name Expires %s\n", (toys.optflags & FLAG_a) ? "at" : "in");
64 if (!(toys.optflags & FLAG_a)) {
ftpget.c 28 #include "toys.h"
96 if (toys.optflags & FLAG_v)
238 toys.exitval = EXIT_SUCCESS;
260 toys.exitval = EXIT_SUCCESS;
262 toys.exitval = EXIT_FAILURE;
271 char **argv = toys.optargs; //host name + file name.
273 TT.isget = toys.which->name[3] == 'g';
276 if (!(toys.optflags & FLAG_u) && (toys.optflags & FLAG_p))
279 if (!(toys.optflags & FLAG_u) && !(toys.optflags & FLAG_p)
    [all...]
fsck.c 28 #include "toys.h"
202 args = xzalloc((toys.optc + 2 + 1 + 1) * sizeof(char*)); //+1, for NULL, +1 if -C
205 if(toys.optflags & FLAG_C) args[i++] = xmprintf("%s %d","-C", TT.fd_num);
206 while(toys.optargs[j]) {
207 if(*toys.optargs[j]) args[i++] = xstrdup(toys.optargs[j]);
213 if ((toys.optflags & FLAG_V) || (toys.optflags & FLAG_N)) {
220 if (toys.optflags & FLAG_N) {
306 if (toys.optflags & FLAG_V) xprintf("Checking all filesystem\n")
    [all...]
tr.c 23 #include "toys.h"
40 if (toys.optflags & FLAG_d)
43 if (toys.optflags & FLAG_s) {
50 while (!(toys.optflags & FLAG_d) && set2 && TT.len1--) { //ignore set2 if -d present
222 if ((toys.optflags & FLAG_d) && (TT.map[(int)toybuf[i]] & 0x100)) continue;
223 if (toys.optflags & FLAG_s) {
257 set1 = expand_set(toys.optargs[0], &TT.len1);
258 if (toys.optflags & FLAG_c) do_complement(&set1);
259 if (toys.optargs[1]) {
260 if (toys.optargs[1][0] == '\0') error_exit("set2 can't be empty string")
    [all...]
  /external/toybox/toys/lsb/
mount.c 47 #include "toys.h"
144 if (toys.optflags & FLAG_f) return;
172 toys.exitval |= xrun((char *[]){"swapon", "--", dev, 0});
195 if (toys.optflags & FLAG_v)
205 if (toys.optflags & FLAG_v)
279 if (toys.optflags & FLAG_r) comma_collate(&opts, "ro");
280 if (toys.optflags & FLAG_w) comma_collate(&opts, "rw");
283 for (ss = toys.optargs; *ss; ss++) {
294 if ((toys.optflags & FLAG_a) && dir) error_exit("-a with >1 arg");
300 if (((toys.optflags & FLAG_a) && !access("/proc/mounts", R_OK)) || remount)
    [all...]
  /external/toybox/
Makefile 16 toybox_stuff: $(KCONFIG_CONFIG) *.[ch] lib/*.[ch] toys/*.h toys/*/*.c scripts/*.sh
30 generated/Config.in: toys/*/*.c scripts/genconfig.sh

Completed in 159 milliseconds

1 2 3 4 56 7 8 9