/Zephyr-latest/lib/posix/options/getopt/ |
D | getopt_common.c | 23 char *optarg; /* argument associated with option */ variable 31 .optarg = NULL, 50 optarg = state->optarg; in z_getopt_global_state_update()
|
D | getopt.c | 58 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()
|
D | getopt.h | 21 char *optarg; /* argument associated with option */ member 32 extern char *optarg;
|
D | getopt_long.c | 283 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/ |
D | crc_shell.c | 95 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/ |
D | wifi_shell.c | 636 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/ |
D | devmem_service.c | 112 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/ |
D | getopt.c | 86 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/ |
D | main.c | 326 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/ |
D | unistd.h | 62 extern char *optarg;
|
/Zephyr-latest/lib/posix/options/ |
D | Kconfig.c_lib_ext | 9 Group, consisting of fnmatch(), getopt(), getsubopt(), optarg, opterr, optind, optopt,
|
/Zephyr-latest/samples/subsys/shell/shell_module/src/ |
D | main.c | 129 cvalue = state->optarg; in cmd_demo_getopt_ts() 179 cvalue = optarg; in cmd_demo_getopt()
|
/Zephyr-latest/subsys/testsuite/ztest/src/ |
D | ztest.c | 1299 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/ |
D | index.rst | 682 cvalue = optarg; 699 cvalue = state->optarg;
|
/Zephyr-latest/doc/services/portability/posix/option_groups/ |
D | index.rst | 89 optarg, yes
|