Home
last modified time | relevance | path

Searched refs:optopt (Results 1 – 7 of 7) sorted by relevance

/Zephyr-Core-3.5.0/lib/posix/getopt/
Dgetopt.c56 state->optopt = 0; in getopt_init()
69 optopt = 0; in getopt_init()
95 state->optopt = *state->place++; in getopt()
96 if (state->optopt == '-' && *state->place == 0) { in getopt()
103 if (state->optopt == 0) { in getopt()
112 state->optopt = '-'; in getopt()
115 state->optopt = *state->place++; in getopt()
119 oli = strchr(ostr, state->optopt); in getopt()
120 if (state->optopt == ':' || oli == NULL) { in getopt()
125 LOG_ERR("illegal option -- %c", state->optopt); in getopt()
[all …]
Dgetopt_common.c21 int optopt; /* character checked for validity */ variable
29 .optopt = 0,
48 optopt = state->optopt; in z_getopt_global_state_update()
Dgetopt_long.c252 state->optopt = 0; in parse_long_options()
270 state->optopt = long_options[match].val; in parse_long_options()
272 state->optopt = 0; in parse_long_options()
308 state->optopt = long_options[match].val; in parse_long_options()
310 state->optopt = 0; in parse_long_options()
327 state->optopt = 0; in parse_long_options()
531 state->optopt = optchar;
543 state->optopt = optchar;
570 state->optopt = optchar;
Dgetopt.h19 int optopt; /* character checked for validity */ member
/Zephyr-Core-3.5.0/samples/subsys/shell/shell_module/src/
Dmain.c139 if (state->optopt == 'c') { in cmd_demo_getopt_ts()
142 state->optopt); in cmd_demo_getopt_ts()
143 } else if (isprint(state->optopt) != 0) { in cmd_demo_getopt_ts()
146 state->optopt); in cmd_demo_getopt_ts()
150 state->optopt); in cmd_demo_getopt_ts()
189 if (optopt == 'c') { in cmd_demo_getopt()
192 optopt); in cmd_demo_getopt()
193 } else if (isprint(optopt) != 0) { in cmd_demo_getopt()
195 optopt); in cmd_demo_getopt()
199 optopt); in cmd_demo_getopt()
/Zephyr-Core-3.5.0/include/zephyr/posix/
Dunistd.h51 extern int opterr, optind, optopt;
/Zephyr-Core-3.5.0/samples/posix/uname/src/
Dmain.c98 badarg = (char)state->optopt; in uname_cmd_handler()