HomeSort by relevance Sort by last modified time
    Searched refs:optflags (Results 1 - 25 of 152) 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 73 if (toys.optflags) printf("flags=%x\n", toys.optflags);
74 if (toys.optflags & FLAG_a) printf("Saw a\n");
75 if (toys.optflags & FLAG_b) printf("b=%s\n", TT.s.b_string);
76 if (toys.optflags & FLAG_c) printf("c=%ld\n", TT.s.c_number);
84 if (toys.optflags & FLAG_walrus) printf("Saw --walrus\n");
98 printf("flags=%x\n", toys.optflags);
102 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);
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");
72 if (toys.optflags & FLAG_h) xprintf("</pre>\n");
75 if (toys.optflags & FLAG_h) xprintf("</html>");
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)
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;
nsenter.c 103 return toys.optflags & FLAG_r;
108 return toys.optflags & FLAG_f;
128 if (test_r()) toys.optflags |= FLAG_U;
131 if (toys.optflags & (1<<i)) f |= flags[i];
148 if (toys.optflags & (1<<i)) {
150 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 68 if (!(toys.optflags&(FLAG_H-1))) toys.optflags |= FLAG_f;
69 if ((toys.optflags&(FLAG_a|FLAG_p)) && toys.optc) error_exit("can't set -ap");
72 if (!(toys.optflags&FLAG_P)) TT.pid = getppid();
77 int get = toys.optflags&(FLAG_a|(1<<i));
81 if (toys.optflags&FLAG_a) printf("-%c: ", flags[i]);
84 if (toys.optflags&FLAG_H)
94 rlim_t rl = (toys.optflags&FLAG_H) ? rr.rlim_max : rr.rlim_cur;
101 if (toys.optflags&(1<<i)) break;
104 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;
wc.c 38 if (!toys.optflags || (toys.optflags&(1<<i))) {
53 if (toys.optflags == FLAG_c) {
67 if (toys.optflags == FLAG_c) {
74 if (CFG_TOYBOX_I18N && (toys.optflags&FLAG_m)) {
101 toys.optflags |= (toys.optflags&8)>>1;
grep.c 73 if (name && (toys.optflags&FLAG_H)) printf("%s%c", name, dash);
74 if (!line || (lcount && (toys.optflags&FLAG_n)))
76 if (bcount && (toys.optflags&FLAG_b)) printf("%ld%c", bcount-1, dash);
114 if (toys.optflags & FLAG_F) {
119 if (toys.optflags & FLAG_x) {
120 int i = (toys.optflags & FLAG_i);
128 if (toys.optflags & FLAG_i) s = strnstr(line, seek->arg);
143 if (toys.optflags & FLAG_x)
146 if (!rc && (toys.optflags & FLAG_w)) {
164 if (toys.optflags & FLAG_v)
    [all...]
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_handle_callback(dirtree_start(*args, 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 239 milliseconds

1 2 3 4 5 6 7