Searched refs:optflags (Results 1 - 25 of 140) sorted by relevance

123456

/external/toybox/toys/other/
H A Dreadlink.c32 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);
H A Dhelp.c36 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>");
H A Dsetsid.c23 if (toys.optflags) {
H A Dchcon.c31 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;
H A Dswapon.c27 if (toys.optflags)
H A Dnsenter.c102 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)) {
H A Dpmap.c33 *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);
H A Dsysctl.c47 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) {
H A Deject.c67 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
H A Dblockdev.c46 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/
H A Drestorecon.c36 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/
H A Dcat.c56 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;
H A Dtty.c29 if (!toys.optflags) puts(tty ? tty : "not a tty");
H A Dgrep.c67 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
[all...]
H A Dcomm.c30 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;
H A Drenice.c24 int which = (toys.optflags & FLAG_g) ? PRIO_PGRP :
25 ((toys.optflags & FLAG_u) ? PRIO_USER : PRIO_PROCESS);
32 if (toys.optflags & FLAG_u) {
H A Dnice.c32 if (!toys.optflags) TT.priority = 10;
H A Dcksum.c44 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);
H A Dln.c40 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);
H A Dwc.c38 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/
H A Dskeleton.c73 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/
H A Dfold.c36 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;
H A Dnetstat.c180 if ( (toys.optflags & FLAG_W) && (toys.optflags & FLAG_p))
182 else if (toys.optflags & FLAG_W)
184 else if (toys.optflags & FLAG_p)
193 if (toys.optflags & FLAG_l) {
195 } else if (toys.optflags & FLAG_a) display_data(rport, label, rxq, txq, lip, rip, state, inode);
227 if (!(toys.optflags & FLAG_n)) {
336 if (toys.optflags & FLAG_l) {
338 } else if (!(toys.optflags & FLAG_a)) {
365 if (toys.optflags
[all...]
/external/toybox/toys/lsb/
H A Dumount.c79 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
[all...]
H A Dkillall.c42 if (toys.optflags & FLAG_i) {
56 if (!(toys.optflags & FLAG_q)) perror_msg("pid %d", (int)pid);
57 } else if (toys.optflags & FLAG_v)
70 if (toys.optflags & FLAG_l) {
77 if (toys.optflags & FLAG_q) exit(1);
86 if (!(toys.optflags & FLAG_l) && !toys.optc) {

Completed in 601 milliseconds

123456