Home
last modified time | relevance | path

Searched refs:long_options (Results 1 – 15 of 15) sorted by relevance

/system/core/logcat/
Dgetopt_long.cpp115 const struct option* long_options, int* idx, in parse_long_options_r() argument
148 for (int i = 0; long_options[i].name; i++) { in parse_long_options_r()
150 if (strncmp(current_argv, long_options[i].name, current_argv_len)) { in parse_long_options_r()
154 if (strlen(long_options[i].name) == current_argv_len) { in parse_long_options_r()
166 } else if (long_options[i].has_arg != long_options[match].has_arg || in parse_long_options_r()
167 long_options[i].flag != long_options[match].flag || in parse_long_options_r()
168 long_options[i].val != long_options[match].val) { in parse_long_options_r()
183 if (long_options[match].has_arg == no_argument && has_equal) { in parse_long_options_r()
191 long_options[match].flag ? 0 : long_options[match].val; in parse_long_options_r()
194 if (long_options[match].has_arg == required_argument || in parse_long_options_r()
[all …]
Dlogcat.cpp873 static const struct option long_options[] = { in __logcat() local
906 long_options, &option_index, &optctx); in __logcat()
912 if (long_options[option_index].name == pid_str) { in __logcat()
916 long_options[option_index].name, in __logcat()
922 if (long_options[option_index].name == wrap_str) { in __logcat()
930 long_options[option_index].name, in __logcat()
938 long_options[option_index].name, in __logcat()
943 if (long_options[option_index].name == print_str) { in __logcat()
947 if (long_options[option_index].name == debug_str) { in __logcat()
951 if (long_options[option_index].name == id_str) { in __logcat()
/system/core/storaged/
Dmain.cpp84 static struct option long_options[] = { in main() local
91 opt = getopt_long(argc, argv, ":pstu", long_options, &opt_idx); in main()
/system/core/toolbox/
Dgetprop.cpp97 static const struct option long_options[] = { in getprop_main() local
102 int arg = getopt_long(argc, argv, "TZ", long_options, nullptr); in getprop_main()
/system/core/logcat/include/log/
Dgetopt.h60 const struct option* long_options, int* idx,
/system/extras/tests/suspend_stress/
Dsuspend_stress.cpp57 const static struct option long_options[] = { in main() local
62 int c = getopt_long(argc, argv, "ac:t:", long_options, NULL); in main()
/system/libufdt/tests/src/
Dufdt_gen_test_dts.c53 static struct option long_options[] = { variable
160 int c = getopt_long(argc, argv, short_options, long_options, &option_index); in main()
/system/extras/taskstats/
Dtaskstats.c261 const struct option long_options[] = { in main() local
271 int option_char = getopt_long_only(argc, argv, "", long_options, in main()
/system/sepolicy/tools/
Dsepolicy-check.c242 struct option long_options[] = { in main() local
251 while ((ch = getopt_long(argc, argv, "s:t:c:p:P:", long_options, NULL)) != -1) { in main()
/system/bt/tools/bdtool/
Dbdtool.c53 static struct option long_options[] = { variable
305 int c = getopt_long_only(argc, argv, "", long_options, &option_index); in parse_args()
/system/extras/verity/fec/
Dmain.cpp281 const static struct option long_options[] = { in main() local
296 int c = getopt_long(argc, argv, "hedSr:ij:s:E:V:p:v", long_options, NULL); in main()
/system/extras/verity/
Dbuild_verity_tree.cpp136 const static struct option long_options[] = { in main() local
145 int c = getopt_long(argc, argv, "a:A:hSs:v", long_options, NULL); in main()
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dgrep.c170 struct option long_options[] = variable
396 while (((c = getopt_long(aargc, aargv, optstr, long_options, NULL)) != in main()
/system/extras/tests/sdcard/
Dsdcard_perf_test.cpp110 struct option long_options[] = { variable
215 long_options, in parseCmdLine()
/system/core/bootstat/
Dbootstat.cpp1136 static const struct option long_options[] = { in main() local
1154 while ((opt = getopt_long(argc, argv, "hlpr:", long_options, &option_index)) != -1) { in main()
1158 const std::string option_name = long_options[option_index].name; in main()