Home
last modified time | relevance | path

Searched refs:FLAG (Results 1 – 25 of 298) sorted by relevance

12345678910>>...12

/external/toybox/toys/posix/
Dls.c74 if (FLAG(q)) *buf = '?'; in crunch_qb()
79 if (FLAG(b)) { in crunch_qb()
110 if ((FLAG(F)||FLAG(p)) && S_ISDIR(mode)) return '/'; in endtype()
111 if (FLAG(F)) { in endtype()
127 if (FLAG(h)) return human_readable(s, value*units, 0); in print_with_h()
140 if (FLAG(m)) ++*len; in entrylen()
142 len[1] = FLAG(i) ? numlen(st->st_ino) : 0; in entrylen()
143 if (FLAG(l)||FLAG(o)||FLAG(n)||FLAG(g)) { in entrylen()
145 len[3] = FLAG(n) ? numlen(st->st_uid) : strwidth(getusername(st->st_uid)); in entrylen()
146 len[4] = FLAG(n) ? numlen(st->st_gid) : strwidth(getgroupname(st->st_gid)); in entrylen()
[all …]
Dgrep.c96 if (!trim && FLAG(o)) return; in outline()
97 if (name && FLAG(H)) printf("%s%s%s%c", TT.purple, name, TT.cyan, dash); in outline()
98 if (FLAG(c)) { in outline()
101 } else if (lcount && FLAG(n)) numdash(lcount, dash); in outline()
102 if (bcount && FLAG(b)) numdash(bcount-1, dash); in outline()
104 if (FLAG(color)) xputsn(FLAG(o) ? TT.red : TT.grey); in outline()
120 if (!FLAG(r)) TT.tried++; in do_grep()
124 if (!FLAG(a) && !lseek(fd, 0, SEEK_CUR)) { in do_grep()
140 if (bin && FLAG(I)) return; in do_grep()
171 if (FLAG(F)) { in do_grep()
[all …]
Ddu.c62 if (FLAG(h)) { in print()
68 if (FLAG(K)) bits = 9; in print()
69 else if (FLAG(m)) bits = 20; in print()
71 if (FLAG(b) && bits == 10 && !FLAG(k)) printf("%llu", size); in print()
119 if (FLAG(x) && (TT.st_dev != node->st.st_dev)) in do_du()
123 if (FLAG(L)) { in do_du()
132 if (!FLAG(l) && !node->again) in do_du()
139 return DIRTREE_COMEAGAIN|(DIRTREE_SYMFOLLOW*!!FLAG(L)); in do_du()
145 blocks = FLAG(b) ? node->st.st_size : node->st.st_blocks; in do_du()
152 if (FLAG(a) || !node->parent || (S_ISDIR(node->st.st_mode) && !FLAG(s))) { in do_du()
[all …]
Ddf.c60 TT.width[0] = maxof(TT.width[0], 14+(FLAG(H)||FLAG(h))); in print_header()
62 if (FLAG(i)) memcpy(dsuapm+1, (char *[]){"Inodes", "IUsed", "IFree", "IUse%"}, in print_header()
65 if (!(FLAG(H)||FLAG(h))) { in print_header()
67 FLAG(P) ? "1024-blocks" : "1K-blocks"; in print_header()
69 if (FLAG(P)) dsuapm[4] = "Capacity"; in print_header()
85 if (!mt || (!FLAG(a) && (!mt->stat.st_dev || !mt->statvfs.f_blocks))) return; in show_mt()
101 if (FLAG(i)) { in show_mt()
117 if (FLAG(H)||FLAG(h)) in show_mt()
118 human_readable(dsuapm[i+1], suap[i], FLAG(H) ? HR_1000 : 0); in show_mt()
145 if (FLAG(H)||FLAG(h)||FLAG(i)) TT.units = 1; in df_main()
[all …]
/external/llvm-project/llvm/utils/TableGen/
DInstrDocsEmitter.cpp100 #define FLAG(f) if (II->f) { FlagStrings.push_back(str(f)); } in EmitInstrDocs() macro
101 FLAG(isReturn) in EmitInstrDocs()
102 FLAG(isEHScopeReturn) in EmitInstrDocs()
103 FLAG(isBranch) in EmitInstrDocs()
104 FLAG(isIndirectBranch) in EmitInstrDocs()
105 FLAG(isCompare) in EmitInstrDocs()
106 FLAG(isMoveImm) in EmitInstrDocs()
107 FLAG(isBitcast) in EmitInstrDocs()
108 FLAG(isSelect) in EmitInstrDocs()
109 FLAG(isBarrier) in EmitInstrDocs()
[all …]
/external/toybox/toys/net/
Dsntp.c81 if (FLAG(d)) xvdaemon(); in sntp_main()
83 if (FLAG(M)) toys.optflags |= FLAG_S; in sntp_main()
84 if (!(FLAG(S)||FLAG(m)) && !*toys.optargs) in sntp_main()
93 if (FLAG(S)||FLAG(m)) { in sntp_main()
118 if (FLAG(m) || FLAG(S)) then = -1; in sntp_main()
123 if (FLAG(d)||FLAG(D)||FLAG(M)) then = now + (1<<TT.r)*1000; in sntp_main()
142 if (!(FLAG(S)||FLAG(m)||FLAG(D)||FLAG(d)) && ++tries == 3) in sntp_main()
149 if (!FLAG(S) || FLAG(m)) { in sntp_main()
157 if (!FLAG(S) && !FLAG(m) && before != SWAP_BE64(pktime[3])) continue; in sntp_main()
159 if (strike && !FLAG(S)) continue; in sntp_main()
[all …]
Dnetstat.c48 if (FLAG(n) || !port) {
130 if (!(FLAG(l) && (!rport && (state&0xA))) && !FLAG(a) && !(rport&0x70)) in show_ip()
149 if (FLAG(e)) { in show_ip()
150 if (FLAG(n)) sprintf(s = toybuf, "%d", uid); in show_ip()
154 if (FLAG(p)) { in show_ip()
182 if (state==1 && flags && !(FLAG(a) || FLAG(l))) continue; in show_unix_sockets()
188 if (state!=1 && FLAG(l)) continue; in show_unix_sockets()
193 if (FLAG(p)) { in show_unix_sockets()
200 printf("%s\n", filename+!FLAG(p)); in show_unix_sockets()
258 !FLAG(e) ? " MSS Window irtt" : "Metric Ref Use"); in display_routes()
[all …]
Dnetcat.c98 ll = FLAG(L)|FLAG(l), type = FLAG(u) ? SOCK_DGRAM : SOCK_STREAM; in netcat_main()
110 if (FLAG(f) ? toys.optc : (!ll && toys.optc!=(FLAG(U)?1:2))) in netcat_main()
113 if (FLAG(4)) family = AF_INET; in netcat_main()
114 else if (FLAG(6)) family = AF_INET6; in netcat_main()
115 else if (FLAG(U)) family = AF_UNIX; in netcat_main()
121 if (FLAG(U)) sockfd = usock(toys.optargs[0], type, 1); in netcat_main()
131 if (FLAG(U)) { in netcat_main()
132 if (!FLAG(s)) error_exit("-s must be provided if using -U with -L/-l"); in netcat_main()
140 if (!TT.p && !FLAG(U)) { in netcat_main()
178 if (FLAG(L)) NOEXIT(child = XVFORK()); in netcat_main()
[all …]
/external/pigweed/pw_hdlc/py/
Dencode_test.py23 FLAG = bytes([protocol.FLAG]) variable
34 FLAG + _with_fcs(b'\x01\x03') + FLAG)
36 FLAG + _with_fcs(b'\x35\x03') + FLAG)
40 FLAG + _with_fcs(b'\x01\x03A') + FLAG)
44 FLAG + _with_fcs(b'\x01\x03123456789') + FLAG)
48 FLAG + _with_fcs(b'\x00\x03\x03123456789') + FLAG)
53 FLAG + b'\x7d\x5d\x03\x7d\x5d' + _fcs(b'\x7d\x03\x7d') + FLAG)
56 FLAG + b'\x7d\x5d\x03A\x7d\x5e\x7d\x5dBC' +
57 _fcs(b'\x7d\x03A\x7e\x7dBC') + FLAG)
/external/llvm-project/libcxx/utils/google-benchmark/cmake/
DAddCXXCompilerFlag.cmake6 # add_cxx_compiler_flag(<FLAG> [<VARIANT>])
22 function(mangle_compiler_flag FLAG OUTPUT)
23 string(TOUPPER "HAVE_CXX_FLAG_${FLAG}" SANITIZED_FLAG)
30 function(add_cxx_compiler_flag FLAG)
31 mangle_compiler_flag("${FLAG}" MANGLED_FLAG)
33 set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${FLAG}")
34 check_cxx_compiler_flag("${FLAG}" ${MANGLED_FLAG})
41 …AGS${VARIANT} "${CMAKE_CXX_FLAGS${VARIANT}} ${BENCHMARK_CXX_FLAGS${VARIANT}} ${FLAG}" PARENT_SCOPE)
45 function(add_required_cxx_compiler_flag FLAG)
46 mangle_compiler_flag("${FLAG}" MANGLED_FLAG)
[all …]
/external/llvm-project/llvm/utils/benchmark/cmake/
DAddCXXCompilerFlag.cmake6 # add_cxx_compiler_flag(<FLAG> [<VARIANT>])
22 function(mangle_compiler_flag FLAG OUTPUT)
23 string(TOUPPER "HAVE_CXX_FLAG_${FLAG}" SANITIZED_FLAG)
30 function(add_cxx_compiler_flag FLAG)
31 mangle_compiler_flag("${FLAG}" MANGLED_FLAG)
33 set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${FLAG}")
34 check_cxx_compiler_flag("${FLAG}" ${MANGLED_FLAG})
41 …AGS${VARIANT} "${CMAKE_CXX_FLAGS${VARIANT}} ${BENCHMARK_CXX_FLAGS${VARIANT}} ${FLAG}" PARENT_SCOPE)
45 function(add_required_cxx_compiler_flag FLAG)
46 mangle_compiler_flag("${FLAG}" MANGLED_FLAG)
[all …]
/external/libcxx/utils/google-benchmark/cmake/
DAddCXXCompilerFlag.cmake6 # add_cxx_compiler_flag(<FLAG> [<VARIANT>])
22 function(mangle_compiler_flag FLAG OUTPUT)
23 string(TOUPPER "HAVE_CXX_FLAG_${FLAG}" SANITIZED_FLAG)
30 function(add_cxx_compiler_flag FLAG)
31 mangle_compiler_flag("${FLAG}" MANGLED_FLAG)
33 set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${FLAG}")
34 check_cxx_compiler_flag("${FLAG}" ${MANGLED_FLAG})
41 …AGS${VARIANT} "${CMAKE_CXX_FLAGS${VARIANT}} ${BENCHMARK_CXX_FLAGS${VARIANT}} ${FLAG}" PARENT_SCOPE)
45 function(add_required_cxx_compiler_flag FLAG)
46 mangle_compiler_flag("${FLAG}" MANGLED_FLAG)
[all …]
/external/google-benchmark/cmake/
DAddCXXCompilerFlag.cmake6 # add_cxx_compiler_flag(<FLAG> [<VARIANT>])
22 function(mangle_compiler_flag FLAG OUTPUT)
23 string(TOUPPER "HAVE_CXX_FLAG_${FLAG}" SANITIZED_FLAG)
30 function(add_cxx_compiler_flag FLAG)
31 mangle_compiler_flag("${FLAG}" MANGLED_FLAG)
33 set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${FLAG}")
34 check_cxx_compiler_flag("${FLAG}" ${MANGLED_FLAG})
41 …AGS${VARIANT} "${CMAKE_CXX_FLAGS${VARIANT}} ${BENCHMARK_CXX_FLAGS${VARIANT}} ${FLAG}" PARENT_SCOPE)
45 function(add_required_cxx_compiler_flag FLAG)
46 mangle_compiler_flag("${FLAG}" MANGLED_FLAG)
[all …]
/external/icu/icu4c/source/common/
Duprops.h314 #define FLAG(n) ((uint32_t)1<<(n)) macro
317 #define _Cn FLAG(U_GENERAL_OTHER_TYPES)
318 #define _Lu FLAG(U_UPPERCASE_LETTER)
319 #define _Ll FLAG(U_LOWERCASE_LETTER)
320 #define _Lt FLAG(U_TITLECASE_LETTER)
321 #define _Lm FLAG(U_MODIFIER_LETTER)
323 #define _Mn FLAG(U_NON_SPACING_MARK)
324 #define _Me FLAG(U_ENCLOSING_MARK)
325 #define _Mc FLAG(U_COMBINING_SPACING_MARK)
326 #define _Nd FLAG(U_DECIMAL_DIGIT_NUMBER)
[all …]
/external/icu/libicu/cts_headers/
Duprops.h314 #define FLAG(n) ((uint32_t)1<<(n)) macro
317 #define _Cn FLAG(U_GENERAL_OTHER_TYPES)
318 #define _Lu FLAG(U_UPPERCASE_LETTER)
319 #define _Ll FLAG(U_LOWERCASE_LETTER)
320 #define _Lt FLAG(U_TITLECASE_LETTER)
321 #define _Lm FLAG(U_MODIFIER_LETTER)
323 #define _Mn FLAG(U_NON_SPACING_MARK)
324 #define _Me FLAG(U_ENCLOSING_MARK)
325 #define _Mc FLAG(U_COMBINING_SPACING_MARK)
326 #define _Nd FLAG(U_DECIMAL_DIGIT_NUMBER)
[all …]
/external/toybox/toys/other/
Dhwclock.c41 if (FLAG(u)) utc = 1;
42 else if (FLAG(l)) utc = 0;
46 if (!FLAG(t)) {
48 fd = xopen(TT.f, O_WRONLY*FLAG(w));
51 if (!FLAG(w)) {
58 if (FLAG(w) || FLAG(t)) {
64 if (FLAG(w)) {
70 } else if (FLAG(s)) {
72 } else if (FLAG(t)) {
82 if (FLAG(t) || FLAG(s)) {
Dhelp.c29 if (FLAG(h)) in do_help()
33 show_help(stdout, FLAG(h)+!FLAG(u)); in do_help()
35 if (FLAG(h)) xprintf("</blockquote></pre>\n"); in do_help()
50 show_help(stdout, FLAG(u)); in help_main()
55 if (!FLAG(a)) { in help_main()
64 if (FLAG(h)) { in help_main()
74 if (FLAG(h)) xprintf("<hr>\n<pre>\n"); in help_main()
75 else if (!FLAG(u)) { in help_main()
81 if (FLAG(h)) xprintf("</pre>\n"); in help_main()
84 if (FLAG(h)) xprintf("</html>"); in help_main()
Dlosetup.c81 if (errno == ENXIO && (FLAG(a) || FLAG(j))) goto done;
83 if (errno == ENXIO && FLAG(f) && !file) {
98 if (FLAG(c) || FLAG(d)) {
100 if (ioctl(lfd, FLAG(c) ? 0x4C07 : LOOP_CLR_FD, 0)) {
119 if (FLAG(s)) puts(device);
158 TT.openflags = FLAG(r) ? O_RDONLY : O_RDWR; in losetup_main()
177 if (FLAG(D)) toys.optflags |= FLAG_a | FLAG_d; in losetup_main()
179 if (FLAG(f)) { in losetup_main()
182 } else if (FLAG(a) || FLAG(j)) { in losetup_main()
187 char *file = (FLAG(c) || FLAG(d)) ? NULL : toys.optargs[1]; in losetup_main()
Drtcwake.c46 if (FLAG(list_modes)) { in rtcwake_main()
56 if (FLAG(u)) utc = 1; in rtcwake_main()
57 else if (FLAG(l)) utc = 0; in rtcwake_main()
59 if (FLAG(v)) xprintf("RTC time: %s\n", utc ? "UTC" : "local"); in rtcwake_main()
62 if (FLAG(v)) xprintf("Device: %s\n", TT.d); in rtcwake_main()
68 if (FLAG(v)) { in rtcwake_main()
88 if (FLAG(s)) then = rtc_now + TT.s + 1; // strace shows util-linux adds 1. in rtcwake_main()
89 else if (FLAG(t)) { in rtcwake_main()
93 if (FLAG(v)) xprintf("Wake time:\t%lld / %s", (long long)then, ctime(&then)); in rtcwake_main()
109 if (FLAG(v)) xputs("Reading RTC..."); in rtcwake_main()
[all …]
/external/mesa3d/src/gallium/drivers/i915/
Di915_debug.c260 FLAG( in FLAG() function
322 FLAG(stream, ptr[j], 18, "alpha flatshade"); in debug_load_immediate()
323 FLAG(stream, ptr[j], 17, "fog flatshade"); in debug_load_immediate()
324 FLAG(stream, ptr[j], 16, "spec flatshade"); in debug_load_immediate()
325 FLAG(stream, ptr[j], 15, "rgb flatshade"); in debug_load_immediate()
327 FLAG(stream, ptr[j], 12, "vfmt: point width"); in debug_load_immediate()
328 FLAG(stream, ptr[j], 11, "vfmt: specular/fog"); in debug_load_immediate()
329 FLAG(stream, ptr[j], 10, "vfmt: rgba"); in debug_load_immediate()
330 FLAG(stream, ptr[j], 9, "vfmt: depth offset"); in debug_load_immediate()
332 FLAG(stream, ptr[j], 5, "force dflt diffuse"); in debug_load_immediate()
[all …]
/external/llvm-project/llvm/utils/benchmark/src/
Dcommandlineflags.h8 #define FLAG(name) FLAGS_##name macro
11 #define DECLARE_bool(name) extern bool FLAG(name)
12 #define DECLARE_int32(name) extern int32_t FLAG(name)
13 #define DECLARE_int64(name) extern int64_t FLAG(name)
14 #define DECLARE_double(name) extern double FLAG(name)
15 #define DECLARE_string(name) extern std::string FLAG(name)
18 #define DEFINE_bool(name, default_val, doc) bool FLAG(name) = (default_val)
19 #define DEFINE_int32(name, default_val, doc) int32_t FLAG(name) = (default_val)
20 #define DEFINE_int64(name, default_val, doc) int64_t FLAG(name) = (default_val)
21 #define DEFINE_double(name, default_val, doc) double FLAG(name) = (default_val)
[all …]
/external/libcxx/utils/google-benchmark/src/
Dcommandlineflags.h8 #define FLAG(name) FLAGS_##name macro
11 #define DECLARE_bool(name) extern bool FLAG(name)
12 #define DECLARE_int32(name) extern int32_t FLAG(name)
13 #define DECLARE_int64(name) extern int64_t FLAG(name)
14 #define DECLARE_double(name) extern double FLAG(name)
15 #define DECLARE_string(name) extern std::string FLAG(name)
18 #define DEFINE_bool(name, default_val, doc) bool FLAG(name) = (default_val)
19 #define DEFINE_int32(name, default_val, doc) int32_t FLAG(name) = (default_val)
20 #define DEFINE_int64(name, default_val, doc) int64_t FLAG(name) = (default_val)
21 #define DEFINE_double(name, default_val, doc) double FLAG(name) = (default_val)
[all …]
/external/llvm-project/libcxx/utils/google-benchmark/src/
Dcommandlineflags.h8 #define FLAG(name) FLAGS_##name macro
11 #define DECLARE_bool(name) extern bool FLAG(name)
12 #define DECLARE_int32(name) extern int32_t FLAG(name)
13 #define DECLARE_int64(name) extern int64_t FLAG(name)
14 #define DECLARE_double(name) extern double FLAG(name)
15 #define DECLARE_string(name) extern std::string FLAG(name)
18 #define DEFINE_bool(name, default_val, doc) bool FLAG(name) = (default_val)
19 #define DEFINE_int32(name, default_val, doc) int32_t FLAG(name) = (default_val)
20 #define DEFINE_int64(name, default_val, doc) int64_t FLAG(name) = (default_val)
21 #define DEFINE_double(name, default_val, doc) double FLAG(name) = (default_val)
[all …]
/external/toybox/toys/lsb/
Ddmesg.c72 if (FLAG(r)) { in format_message()
78 if (!FLAG(t)) { in format_message()
80 if (FLAG(T)) { in format_message()
118 if (FLAG(C)||FLAG(n)) goto no_output; in dmesg_main()
120 if (FLAG(T)) { in dmesg_main()
127 if (!FLAG(S)) { in dmesg_main()
134 fd = open("/dev/kmsg", O_RDONLY|(O_NONBLOCK*!FLAG(w))); in dmesg_main()
161 data[size = xklogctl(3+FLAG(c), data, size)] = 0; in dmesg_main()
177 if (FLAG(n)) xklogctl(8, 0, TT.n); in dmesg_main()
180 if (FLAG(C)||FLAG(c)) xklogctl(5, 0, 0); in dmesg_main()
/external/google-benchmark/src/
Dcommandlineflags.h8 #define FLAG(name) FLAGS_##name macro
11 #define DECLARE_bool(name) extern bool FLAG(name)
12 #define DECLARE_int32(name) extern int32_t FLAG(name)
13 #define DECLARE_double(name) extern double FLAG(name)
14 #define DECLARE_string(name) extern std::string FLAG(name)
18 bool FLAG(name) = \
21 int32_t FLAG(name) = \
24 double FLAG(name) = \
27 std::string FLAG(name) = \

12345678910>>...12