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

1 2 3 4 5 6

  /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>");
setsid.c 23 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;
swapon.c 27 if (toys.optflags)
nsenter.c 102 return toys.optflags & FLAG_r;
122 if (test_r()) toys.optflags |= FLAG_U;
125 if (toys.optflags & (1<<i)) f |= flags[i];
137 if (toys.optflags & (1<<i)) {
139 if (!(toys.optflags & FLAG_t)) error_exit("need -t or =filename");
151 if ((toys.optflags & FLAG_p) && !(toys.optflags & FLAG_F)) {
pmap.c 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);
sysctl.c 47 if (!(toys.optflags & FLAG_e)) error_msg("unknown key '%s'", key);
80 if (!(toys.optflags & FLAG_n)) xprintf("%s", key);
81 if (!(toys.optflags & (FLAG_N|FLAG_n))) xprintf(" = ");
83 if (!(toys.optflags & FLAG_N)) xprintf("%s", data);
84 if ((toys.optflags & (FLAG_N|FLAG_n)) != (FLAG_N|FLAG_n)) xputc('\n');
99 if ((toys.optflags & FLAG_w) && !value) {
108 if (!(value && (!write_key(path, key, value) || (toys.optflags & FLAG_q)))) {
120 if (toys.optflags & FLAG_a) dirtree_read("/proc/sys", do_show_keys);
123 else if (toys.optflags & FLAG_p) {
eject.c 67 if (!toys.optflags) xioctl(fd, 0x5309, &out); // CDROM_EJECT
68 else if (toys.optflags & FLAG_s) remove_scsi(fd);
70 if ((toys.optflags & FLAG_T) || (toys.optflags & FLAG_t)) {
72 if ((toys.optflags & FLAG_t) || rc == 2) // CDS_TRAY_OPEN
blockdev.c 46 if (!toys.optflags) {
56 long flag = toys.optflags & (1<<i);
66 if (!flag) printf("%lld\n", (toys.optflags & FLAG_getsz) ? val >> 9: val);
  /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);
62 if ((CFG_CAT_V || CFG_CATV) && (toys.optflags&~FLAG_u)) {
66 if (c > 126 && (toys.optflags & FLAG_v)) {
78 if (toys.optflags & FLAG_e) xputc('$');
79 } else if (toys.optflags & (c==9 ? FLAG_t : FLAG_v)) {
97 toys.optflags ^= FLAG_v;
tty.c 29 if (!toys.optflags) puts(tty ? tty : "not a tty");
grep.c 67 int lcount = 0, mcount = 0, which = toys.optflags & FLAG_w ? 2 : 0;
68 char indelim = '\n' * !(toys.optflags&FLAG_z),
69 outdelim = '\n' * !(toys.optflags&FLAG_Z);
95 if (toys.optflags & FLAG_F) {
100 if (toys.optflags & FLAG_x) {
101 int i = (toys.optflags & FLAG_i);
109 if (toys.optflags & FLAG_i) {
129 if (toys.optflags & FLAG_x)
132 if (toys.optflags & FLAG_v) {
133 if (toys.optflags & FLAG_o)
    [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;
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 57 if (toys.optflags & FLAG_h) {
63 if (toys.optflags & FLAG_K) bits = 9;
64 else if (toys.optflags & FLAG_m) bits = 20;
111 if ((toys.optflags & FLAG_x) && (TT.st_dev != node->st.st_dev))
115 if (toys.optflags & FLAG_L) {
124 if (!(toys.optflags & FLAG_l) && !node->again)
131 return DIRTREE_COMEAGAIN|(DIRTREE_SYMFOLLOW*!!(toys.optflags&FLAG_L));
139 if ((toys.optflags & FLAG_a) || !node->parent
140 || (S_ISDIR(node->st.st_mode) && !(toys.optflags & FLAG_s)))
154 dirtree_handle_callback(dirtree_start(*args, toys.optflags&(FLAG_H|FLAG_L))
    [all...]
cksum.c 44 unsigned crc = (toys.optflags & FLAG_P) ? 0xffffffff : 0;
48 cksum = (toys.optflags & FLAG_L) ? cksum_le : cksum_be;
65 if (!(toys.optflags & FLAG_N)) {
72 printf((toys.optflags & FLAG_H) ? "%x" : "%u",
73 (toys.optflags & FLAG_I) ? crc : ~crc);
81 crc_init(TT.crc_table, toys.optflags & FLAG_L);
ln.c 40 if (((toys.optflags&FLAG_n) ? lstat : stat)(dest, &buf)
58 if (toys.optflags & FLAG_f) {
67 rc = (toys.optflags & FLAG_s) ? symlink(try, new) : link(try, new);
68 if (toys.optflags & FLAG_f) {
82 (toys.optflags & FLAG_s) ? "symbolic" : "hard", try, new);
84 if (toys.optflags & FLAG_v) fprintf(stderr, "'%s' -> '%s'\n", new, try);
wc.c 38 if (!toys.optflags || (toys.optflags&(1<<i))) {
60 if (CFG_TOYBOX_I18N && (toys.optflags&FLAG_m)) {
86 toys.optflags |= (toys.optflags&8)>>1;
  /external/toybox/toys/example/
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/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 35 int d_flag = toys.optflags & FLAG_d;
47 if (toys.optflags & FLAG_q) toys.exitval = 1;
umount.c 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;
121 if (!(toys.optflags & FLAG_n) && !access(pm, R_OK))
125 if (toys.optflags & FLAG_a)
    [all...]

Completed in 80 milliseconds

1 2 3 4 5 6