Home
last modified time | relevance | path

Searched refs:optarg (Results 1 – 15 of 15) sorted by relevance

/Zephyr-latest/lib/posix/options/getopt/
Dgetopt_common.c23 char *optarg; /* argument associated with option */ variable
31 .optarg = NULL,
50 optarg = state->optarg; in z_getopt_global_state_update()
Dgetopt.c58 state->optarg = NULL; in getopt_init()
71 optarg = NULL; in getopt_init()
134 state->optarg = NULL; in getopt()
143 state->optarg = state->place; in getopt()
145 state->optarg = nargv[state->optind]; in getopt()
Dgetopt.h21 char *optarg; /* argument associated with option */ member
32 extern char *optarg;
Dgetopt_long.c283 state->optarg = has_equal; in parse_long_options()
288 state->optarg = nargv[state->optind++]; in parse_long_options()
292 && (state->optarg == NULL)) { in parse_long_options()
385 state->optarg = NULL;
424 state->optarg = nargv[state->optind++];
562 state->optarg = NULL;
564 state->optarg = state->place;
574 state->optarg = nargv[state->optind];
/Zephyr-latest/lib/crc/
Dcrc_shell.c95 poly = (size_t)strtoul(optarg, NULL, 16); in cmd_crc()
97 shell_error(sh, "invalid seed '%s'", optarg); in cmd_crc()
105 seed = (size_t)strtoul(optarg, NULL, 16); in cmd_crc()
107 shell_error(sh, "invalid seed '%s'", optarg); in cmd_crc()
112 type = string_to_crc_type(optarg); in cmd_crc()
114 shell_error(sh, "invalid type '%s'", optarg); in cmd_crc()
/Zephyr-latest/subsys/net/l2/wifi/
Dwifi_shell.c636 params->ssid = state->optarg; in __wifi_args_to_params()
645 params->security = atoi(state->optarg); in __wifi_args_to_params()
651 params->psk = state->optarg; in __wifi_args_to_params()
655 channel = strtol(state->optarg, &endptr, 10); in __wifi_args_to_params()
694 switch (atoi(state->optarg)) { in __wifi_args_to_params()
705 PR_ERROR("Invalid band: %d\n", atoi(state->optarg)); in __wifi_args_to_params()
717 params->mfp = atoi(state->optarg); in __wifi_args_to_params()
721 state->optarg) < 0) { in __wifi_args_to_params()
728 params->timeout = strtol(state->optarg, &endptr, 10); in __wifi_args_to_params()
730 PR_ERROR("Invalid timeout: %s\n", state->optarg); in __wifi_args_to_params()
[all …]
/Zephyr-latest/subsys/shell/modules/
Ddevmem_service.c112 addr = (mem_addr_t)shell_strtoul(optarg, 16, &err); in cmd_dump()
114 shell_error(sh, "invalid addr '%s'", optarg); in cmd_dump()
119 size = (size_t)shell_strtoul(optarg, 0, &err); in cmd_dump()
121 shell_error(sh, "invalid size '%s'", optarg); in cmd_dump()
126 width = (size_t)shell_strtoul(optarg, 0, &err); in cmd_dump()
128 shell_error(sh, "invalid width '%s'", optarg); in cmd_dump()
/Zephyr-latest/tests/posix/c_lib_ext/src/
Dgetopt.c86 zassert_equal(0, strcmp(argv[GETOPT_IDX_OPTARG], state->optarg), in ZTEST()
89 zassert_equal(0, strcmp(argv[GETOPT_IDX_OPTARG], optarg), "unexpected optarg result"); in ZTEST()
167 zassert_equal(0, strcmp(state->optarg, argv[GETOPT_LONG_IDX_OPTARG]), "unexpected optarg"); in ZTEST()
179 zassert_equal(0, strcmp(state->optarg, argv[GETOPT_LONG_IDX_OPTARG]), "unexpected optarg"); in ZTEST()
273 zassert_equal(0, strcmp(state->optarg, argv[GETOPT_LONG_IDX_OPTARG]), "unexpected optarg"); in ZTEST()
286 zassert_equal(0, strcmp(state->optarg, argv[GETOPT_LONG_IDX_OPTARG]), "unexpected optarg"); in ZTEST()
/Zephyr-latest/samples/shields/npm6001_ek/src/
Dmain.c326 pin = atoi(optarg); in cmd_gpio_configure()
329 if (strcmp(optarg, "in") == 0) { in cmd_gpio_configure()
331 } else if (strcmp(optarg, "out") == 0) { in cmd_gpio_configure()
333 } else if (strcmp(optarg, "outh") == 0) { in cmd_gpio_configure()
335 } else if (strcmp(optarg, "outl") == 0) { in cmd_gpio_configure()
/Zephyr-latest/include/zephyr/posix/
Dunistd.h62 extern char *optarg;
/Zephyr-latest/lib/posix/options/
DKconfig.c_lib_ext9 Group, consisting of fnmatch(), getopt(), getsubopt(), optarg, opterr, optind, optopt,
/Zephyr-latest/samples/subsys/shell/shell_module/src/
Dmain.c129 cvalue = state->optarg; in cmd_demo_getopt_ts()
179 cvalue = optarg; in cmd_demo_getopt()
/Zephyr-latest/subsys/testsuite/ztest/src/
Dztest.c1299 val = atoi(state->optarg); in cmd_shuffle()
1308 val = atoi(state->optarg); in cmd_shuffle()
1345 val = atoi(state->optarg); in cmd_run_suite()
1355 param = state->optarg; in cmd_run_suite()
/Zephyr-latest/doc/services/shell/
Dindex.rst682 cvalue = optarg;
699 cvalue = state->optarg;
/Zephyr-latest/doc/services/portability/posix/option_groups/
Dindex.rst89 optarg, yes