Searched refs:optind (Results 1 – 11 of 11) sorted by relevance
/Zephyr-latest/lib/posix/options/getopt/ |
D | getopt.c | 55 state->optind = 1; in getopt_init() 68 optind = 1; in getopt_init() 88 state->place = nargv[state->optind]; in getopt() 89 if (state->optind >= nargc || *state->place++ != '-') { in getopt() 98 ++state->optind; in getopt() 122 ++state->optind; in getopt() 136 ++state->optind; in getopt() 144 } else if (nargc > ++state->optind) { in getopt() 145 state->optarg = nargv[state->optind]; in getopt() 161 ++state->optind; in getopt()
|
D | getopt_long.c | 202 state->optind++; in parse_long_options() 288 state->optarg = nargv[state->optind++]; in parse_long_options() 312 --state->optind; in parse_long_options() 317 --state->optind; in parse_long_options() 381 if (state->optind == 0) { 382 state->optind = state->optreset = 1; 392 if (state->optind >= nargc) { /* end of argument vector */ 398 state->optind, nargv); 399 state->optind -= state->nonopt_end - 406 state->optind = state->nonopt_start; [all …]
|
D | getopt_common.c | 20 int optind = 1; /* index into parent argv vector */ variable 28 .optind = 1, 47 optind = state->optind; in z_getopt_global_state_update()
|
D | getopt.h | 18 int optind; /* index into parent argv vector */ member 34 extern int optind;
|
/Zephyr-latest/lib/crc/ |
D | crc_shell.c | 81 optind = 1; in cmd_crc() 125 if (optind + 2 > argc) { in cmd_crc() 131 addr = (void *)strtoul(argv[optind], NULL, 16); in cmd_crc() 133 shell_error(sh, "invalid address '%s'", argv[optind]); in cmd_crc() 137 size = (size_t)strtoul(argv[optind + 1], NULL, 0); in cmd_crc() 139 shell_error(sh, "invalid size '%s'", argv[optind + 1]); in cmd_crc()
|
/Zephyr-latest/lib/posix/shell/ |
D | uname.c | 56 optind = 1; in uname_cmd_handler() 101 if (argc != optind) { in uname_cmd_handler() 102 shell_error(sh, "uname: extra operand %s", argv[optind]); in uname_cmd_handler()
|
/Zephyr-latest/include/zephyr/posix/ |
D | unistd.h | 63 extern int opterr, optind, optopt;
|
/Zephyr-latest/lib/posix/options/ |
D | Kconfig.c_lib_ext | 9 Group, consisting of fnmatch(), getopt(), getsubopt(), optarg, opterr, optind, optopt,
|
/Zephyr-latest/subsys/net/l2/wifi/ |
D | wifi_shell.c | 2176 if (optind == argc) { in cmd_wifi_reg_domain() 2179 } else if (optind == argc - 1) { in cmd_wifi_reg_domain() 2180 if (strlen(argv[optind]) != 2) { in cmd_wifi_reg_domain() 2186 if (((argv[optind][0] < 'A' || argv[optind][0] > 'Z') || in cmd_wifi_reg_domain() 2187 (argv[optind][1] < 'A' || argv[optind][1] > 'Z')) && in cmd_wifi_reg_domain() 2188 (argv[optind][0] != '0' || argv[optind][1] != '0')) { in cmd_wifi_reg_domain() 2189 PR_WARNING("Invalid reg domain %c%c\n", argv[optind][0], argv[optind][1]); in cmd_wifi_reg_domain() 2192 regd.country_code[0] = argv[optind][0]; in cmd_wifi_reg_domain() 2193 regd.country_code[1] = argv[optind][1]; in cmd_wifi_reg_domain()
|
/Zephyr-latest/subsys/shell/modules/ |
D | devmem_service.c | 105 optind = 1; in cmd_dump()
|
/Zephyr-latest/doc/services/portability/posix/option_groups/ |
D | index.rst | 91 optind, yes
|