Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/lib/posix/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()
380 if (state->optind == 0) {
381 state->optind = state->optreset = 1;
391 if (state->optind >= nargc) { /* end of argument vector */
397 state->optind, nargv);
398 state->optind -= state->nonopt_end -
405 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
/Zephyr-Core-3.5.0/lib/crc/
Dcrc_shell.c77 optind = 1; in cmd_crc()
121 if (optind + 2 > argc) { in cmd_crc()
127 addr = (void *)strtoul(argv[optind], NULL, 16); in cmd_crc()
129 shell_error(sh, "invalid address '%s'", argv[optind]); in cmd_crc()
133 size = (size_t)strtoul(argv[optind + 1], NULL, 0); in cmd_crc()
135 shell_error(sh, "invalid size '%s'", argv[optind + 1]); in cmd_crc()
/Zephyr-Core-3.5.0/samples/posix/uname/src/
Dmain.c58 optind = 1; in uname_cmd_handler()
103 if (argc != optind) { in uname_cmd_handler()
104 shell_error(sh, "extra operand %s", argv[optind]); in uname_cmd_handler()
/Zephyr-Core-3.5.0/include/zephyr/posix/
Dunistd.h51 extern int opterr, optind, optopt;
/Zephyr-Core-3.5.0/subsys/shell/modules/
Ddevmem_service.c108 optind = 1; in cmd_dump()