Home
last modified time | relevance | path

Searched refs:optind (Results 1 – 11 of 11) sorted by relevance

/Zephyr-latest/lib/posix/options/getopt/
Dgetopt.c55 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()
Dgetopt_long.c202 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 …]
Dgetopt_common.c20 int optind = 1; /* index into parent argv vector */ variable
28 .optind = 1,
47 optind = state->optind; in z_getopt_global_state_update()
Dgetopt.h18 int optind; /* index into parent argv vector */ member
34 extern int optind;
/Zephyr-latest/lib/crc/
Dcrc_shell.c81 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/
Duname.c56 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/
Dunistd.h63 extern int opterr, optind, optopt;
/Zephyr-latest/lib/posix/options/
DKconfig.c_lib_ext9 Group, consisting of fnmatch(), getopt(), getsubopt(), optarg, opterr, optind, optopt,
/Zephyr-latest/subsys/net/l2/wifi/
Dwifi_shell.c2176 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/
Ddevmem_service.c105 optind = 1; in cmd_dump()
/Zephyr-latest/doc/services/portability/posix/option_groups/
Dindex.rst91 optind, yes