HomeSort by relevance Sort by last modified time
    Searched refs:optflags (Results 1 - 25 of 165) sorted by null

1 2 3 4 5 6 7

  /external/toybox/toys/example/
test_many_options.c 13 Print the optflags value of the command arguments, in hex.
21 xprintf("optflags=%llx\n", toys.optflags);
test_human_readable.c 21 human_readable(toybuf, strtoll(*toys.optargs, &c, 0), toys.optflags);
skeleton.c 74 if (toys.optflags) printf("flags=%llx\n", toys.optflags);
75 if (toys.optflags & FLAG_a) printf("Saw a\n");
76 if (toys.optflags & FLAG_b) printf("b=%s\n", TT.s.b_string);
77 if (toys.optflags & FLAG_c) printf("c=%ld\n", TT.s.c_number);
85 if (toys.optflags & FLAG_walrus) printf("Saw --walrus\n");
99 printf("flags=%llx\n", toys.optflags);
103 if (toys.optflags & FLAG_b) printf("b=%ld", TT.a.b_number);
  /external/toybox/toys/other/
readlink.c 32 if (toys.optflags & (FLAG_f|FLAG_e))
33 s = xabspath(*toys.optargs, toys.optflags & FLAG_e);
37 if (!(toys.optflags & FLAG_q))
38 xprintf((toys.optflags & FLAG_n) ? "%s" : "%s\n", s);
flock.c 30 if (toys.optflags & FLAG_u) op = LOCK_UN;
31 else op = (toys.optflags & FLAG_s) ? LOCK_SH : LOCK_EX;
33 if (toys.optflags & FLAG_n) op |= LOCK_NB;
setsid.c 23 if (toys.optflags) {
swapon.c 28 int flags = (toys.optflags&FLAG_d)*0x70000;
30 if (toys.optflags)
help.c 36 if (toys.optflags & FLAG_h)
42 if (toys.optflags & FLAG_h) xprintf("</blockquote></pre>\n");
52 if (!(toys.optflags & FLAG_a)) {
61 if (toys.optflags & FLAG_h) {
70 if (toys.optflags & FLAG_h) xprintf("<hr>\n<pre>\n");
77 if (toys.optflags & FLAG_h) xprintf("</pre>\n");
80 if (toys.optflags & FLAG_h) xprintf("</html>");
chcon.c 31 if (toys.optflags & FLAG_v) printf("chcon '%s' to %s\n", path, con);
32 if (-1 == ((toys.optflags & FLAG_h) ? lsetfilecon : setfilecon)(path, con))
36 return (toys.optflags & FLAG_R)*DIRTREE_RECURSE;
fsfreeze.c 29 xioctl(fd, (toys.optflags & FLAG_f) ? FIFREEZE : FITHAW, &p);
nsenter.c 104 return toys.optflags & FLAG_r;
109 return toys.optflags & FLAG_f;
129 if (test_r()) toys.optflags |= FLAG_U;
132 if (toys.optflags & (1<<i)) f |= flags[i];
149 if (toys.optflags & (1<<i)) {
151 if (!(toys.optflags & FLAG_t)) error_exit("need -t or =filename");
162 if ((toys.optflags & FLAG_p) && !(toys.optflags & FLAG_F)) {
reboot.c 30 if (!(toys.optflags & FLAG_n)) sync();
33 if (toys.optflags & FLAG_f) toys.exitval = reboot(types[idx]);
  /external/toybox/toys/android/
restorecon.c 36 if (toys.optflags & FLAG_D) flags |= SELINUX_ANDROID_RESTORECON_DATADATA;
37 if (toys.optflags & FLAG_F) flags |= SELINUX_ANDROID_RESTORECON_FORCE;
38 if (toys.optflags & (FLAG_R|FLAG_r))
40 if (toys.optflags & FLAG_n) flags |= SELINUX_ANDROID_RESTORECON_NOCHANGE;
41 if (toys.optflags & FLAG_v) flags |= SELINUX_ANDROID_RESTORECON_VERBOSE;
  /external/toybox/toys/posix/
cat.c 56 int i, len, size=(toys.optflags & FLAG_u) ? 1 : sizeof(toybuf);
65 if ((CFG_CAT_V || CFG_CATV) && (toys.optflags&~FLAG_u)) {
69 if (c > 126 && (toys.optflags & FLAG_v)) {
81 if (toys.optflags & FLAG_e) xputc('$');
82 } else if (toys.optflags & (c==9 ? FLAG_t : FLAG_v)) {
100 toys.optflags ^= FLAG_v;
tty.c 29 if (!toys.optflags) puts(tty ? tty : "not a tty");
ulimit.c 69 if (!(toys.optflags&(FLAG_H-1))) toys.optflags |= FLAG_f;
70 if ((toys.optflags&(FLAG_a|FLAG_p)) && toys.optc) error_exit("can't set -ap");
73 if (!(toys.optflags&FLAG_P)) TT.pid = getppid();
78 int get = toys.optflags&(FLAG_a|(1<<i));
82 if (toys.optflags&FLAG_a) printf("-%c: ", flags[i]);
85 if (toys.optflags&FLAG_H)
95 rlim_t rl = (toys.optflags&FLAG_H) ? rr.rlim_max : rr.rlim_cur;
102 if (toys.optflags&(1<<i)) break;
105 if (toys.optflags&(FLAG_a|FLAG_p)) return
    [all...]
comm.c 30 if (col == 0 && toys.optflags & FLAG_1) return;
32 if (toys.optflags & FLAG_2) return;
33 if (!(toys.optflags & FLAG_1)) putchar('\t');
35 if (toys.optflags & FLAG_3) return;
36 if (!(toys.optflags & FLAG_1)) putchar('\t');
37 if (!(toys.optflags & FLAG_2)) putchar('\t');
48 if (toys.optflags == 7) return;
env.c 39 toys.optflags |= FLAG_i;
43 if (toys.optflags & FLAG_i) clearenv();
59 xprintf("%s%c", *ev, '\n'*!(toys.optflags*FLAG_0));
renice.c 24 int which = (toys.optflags & FLAG_g) ? PRIO_PGRP :
25 ((toys.optflags & FLAG_u) ? PRIO_USER : PRIO_PROCESS);
32 if (toys.optflags & FLAG_u) {
nice.c 32 if (!toys.optflags) TT.priority = 10;
du.c 59 if (toys.optflags & FLAG_h) {
65 if (toys.optflags & FLAG_K) bits = 9;
66 else if (toys.optflags & FLAG_m) bits = 20;
115 if ((toys.optflags & FLAG_x) && (TT.st_dev != node->st.st_dev))
119 if (toys.optflags & FLAG_L) {
128 if (!(toys.optflags & FLAG_l) && !node->again)
135 return DIRTREE_COMEAGAIN|(DIRTREE_SYMFOLLOW*!!(toys.optflags&FLAG_L));
147 if ((toys.optflags & FLAG_a) || !node->parent
148 || (S_ISDIR(node->st.st_mode) && !(toys.optflags & FLAG_s)))
163 dirtree_flagread(*args, DIRTREE_SYMFOLLOW*!!(toys.optflags&(FLAG_H|FLAG_L))
    [all...]
mkdir.c 44 if (CFG_MKDIR_Z && (toys.optflags&FLAG_Z))
52 if (mkpathat(AT_FDCWD, *s, mode, toys.optflags|1))
mkfifo.c 42 if (toys.optflags & FLAG_m) TT.mode = string_to_mode(TT.m_string, 0);
44 if (CFG_MKFIFO_Z && (toys.optflags&FLAG_Z))
  /external/toybox/toys/pending/
fold.c 36 if (toys.optflags & FLAG_w) maxlen = TT.width;
37 else if (toys.optflags & FLAG_u) maxlen = 0;
48 if ((toys.optflags & FLAG_u) && buf[pos-1] != '\n'
60 if (toys.optflags & FLAG_b) len++;
65 if (toys.optflags & FLAG_b) len++;
71 if (!(toys.optflags & FLAG_b)) len = (len & ~7) + 7;
80 if (!(toys.optflags & FLAG_s) || split < 0) split = pos;
  /external/toybox/toys/lsb/
mktemp.c 36 int d_flag = toys.optflags & FLAG_d;
48 if (toys.optflags & FLAG_q) toys.exitval = 1;
52 if (toys.optflags & FLAG_u) unlink(template);

Completed in 136 milliseconds

1 2 3 4 5 6 7