Searched refs:long_options (Results 1 – 5 of 5) sorted by relevance
/Zephyr-Core-3.5.0/tests/posix/getopt/src/ |
D | main.c | 125 struct option long_options[] = { in ZTEST() local 178 long_options, &option_index); in ZTEST() 180 c = getopt_long(argc1, argv, accepted_opt, long_options, &option_index); in ZTEST() 186 long_options, &option_index); in ZTEST() 193 long_options, &option_index); in ZTEST() 196 long_options, &option_index); in ZTEST() 202 long_options, &option_index); in ZTEST() 209 long_options, &option_index); in ZTEST() 212 long_options, &option_index); in ZTEST() 215 long_options, &option_index); in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/lib/posix/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 | 79 const char *options, const struct option *long_options, 106 const char *options, const struct option *long_options,
|
/Zephyr-Core-3.5.0/subsys/net/l2/wifi/ |
D | wifi_shell.c | 479 static struct option long_options[] = {{"type", required_argument, 0, 't'}, in wifi_scan_args_to_params() local 494 while ((opt = getopt_long(argc, argv, "t:b:a:p:s:m:c:h", long_options, &opt_index)) != -1) { in wifi_scan_args_to_params() 1277 static struct option long_options[] = {{"if_index", optional_argument, 0, 'i'}, in parse_mode_args_to_params() local 1288 while ((opt = getopt_long(argc, argv, "i:smtpakgh", long_options, &option_index)) != -1) { in parse_mode_args_to_params() 1387 static struct option long_options[] = {{"if_index", optional_argument, 0, 'i'}, in parse_channel_args_to_params() local 1393 while ((opt = getopt_long(argc, argv, "i:c:gh", long_options, &option_index)) != -1) { in parse_channel_args_to_params() 1493 static struct option long_options[] = {{"if_index", optional_argument, 0, 'i'}, in parse_filter_args_to_params() local 1503 while ((opt = getopt_long(argc, argv, "i:b:amcdgh", long_options, &option_index)) != -1) { in parse_filter_args_to_params()
|
/Zephyr-Core-3.5.0/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()
|