| /Zephyr-latest/tests/posix/c_lib_ext/src/ |
| D | getopt.c | 110 struct option long_options[] = { in ZTEST() local 162 c = getopt_long(argc1, argv, accepted_opt, long_options, &option_index); in ZTEST() 164 c = getopt_long(argc1, argv, accepted_opt, long_options, &option_index); in ZTEST() 168 c = getopt_long(argc1, argv, accepted_opt, long_options, &option_index); in ZTEST() 174 c = getopt_long(argc2, argv, accepted_opt, long_options, &option_index); in ZTEST() 176 c = getopt_long(argc2, argv, accepted_opt, long_options, &option_index); in ZTEST() 180 c = getopt_long(argc2, argv, accepted_opt, long_options, &option_index); in ZTEST() 186 c = getopt_long(argc3, argv, accepted_opt, long_options, &option_index); in ZTEST() 188 c = getopt_long(argc3, argv, accepted_opt, long_options, &option_index); in ZTEST() 190 c = getopt_long(argc3, argv, accepted_opt, long_options, &option_index); in ZTEST() [all …]
|
| /Zephyr-latest/lib/posix/options/getopt/ |
| D | getopt_long.c | 170 const char *options, const struct option *long_options, in parse_long_options() argument 213 for (i = 0; long_options[i].name; i++) { in parse_long_options() 215 if (strncmp(current_argv, long_options[i].name, current_argv_len)) { in parse_long_options() 219 if (strlen(long_options[i].name) == current_argv_len) { in parse_long_options() 236 long_options[i].has_arg != long_options[match].has_arg || in parse_long_options() 237 long_options[i].flag != long_options[match].flag || in parse_long_options() 238 long_options[i].val != long_options[match].val) { in parse_long_options() 256 if (long_options[match].has_arg == no_argument in parse_long_options() 269 if (long_options[match].flag == NULL) { in parse_long_options() 270 state->optopt = long_options[match].val; in parse_long_options() [all …]
|
| D | getopt.h | 83 const char *options, const struct option *long_options, 110 const char *options, const struct option *long_options,
|
| /Zephyr-latest/subsys/net/l2/wifi/ |
| D | wifi_shell.c | 588 static const struct option long_options[] = { in __wifi_args_to_params() local 652 long_options, &opt_index)) != -1) { in __wifi_args_to_params() 1006 static const struct option long_options[] = { in wifi_scan_args_to_params() local 1022 long_options, &opt_index)) != -1) { in wifi_scan_args_to_params() 1677 static const struct option long_options[] = { in twt_args_to_params() local 1698 long_options, &opt_index)) != -1) { in twt_args_to_params() 2070 static const struct option long_options[] = { in wifi_ap_config_args_to_params() local 2082 long_options, &opt_index)) != -1) { in wifi_ap_config_args_to_params() 2192 static const struct option long_options[] = { in cmd_wifi_reg_domain() local 2198 while ((opt = getopt_long(argc, argv, "fv", long_options, &opt_index)) != -1) { in cmd_wifi_reg_domain() [all …]
|
| /Zephyr-latest/samples/shields/npm6001_ek/src/ |
| D | main.c | 306 static const struct option long_options[] = { in cmd_gpio_configure() local 319 while ((opt = getopt_long(argc, argv, "p:d:", long_options, in cmd_gpio_configure()
|
| /Zephyr-latest/subsys/testsuite/ztest/src/ |
| D | ztest.c | 1255 static struct option long_options[] = {{"suite_iter", required_argument, 0, 's'}, in cmd_shuffle() local 1265 while ((opt = getopt_long(argc, argv, "s:c:", long_options, &opt_index)) != -1) { in cmd_shuffle() 1303 static struct option long_options[] = {{"repeat_iter", required_argument, NULL, 'r'}, in cmd_run_suite() local 1311 while ((opt = getopt_long(argc, argv, "r:p:", long_options, &opt_index)) != -1) { in cmd_run_suite()
|