/Zephyr-Core-3.5.0/lib/posix/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_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() 384 state->optarg = NULL; 423 state->optarg = nargv[state->optind++]; 561 state->optarg = NULL; 563 state->optarg = state->place; 573 state->optarg = nargv[state->optind];
|
D | getopt.h | 21 char *optarg; /* argument associated with option */ member
|
/Zephyr-Core-3.5.0/lib/crc/ |
D | crc_shell.c | 91 poly = (size_t)strtoul(optarg, NULL, 16); in cmd_crc() 93 shell_error(sh, "invalid seed '%s'", optarg); in cmd_crc() 101 seed = (size_t)strtoul(optarg, NULL, 16); in cmd_crc() 103 shell_error(sh, "invalid seed '%s'", optarg); in cmd_crc() 108 type = string_to_crc_type(optarg); in cmd_crc() 110 shell_error(sh, "invalid type '%s'", optarg); in cmd_crc()
|
/Zephyr-Core-3.5.0/subsys/shell/modules/ |
D | devmem_service.c | 112 addr = (mem_addr_t)strtoul(optarg, NULL, 16); in cmd_dump() 114 shell_error(sh, "invalid addr '%s'", optarg); in cmd_dump() 119 size = (size_t)strtoul(optarg, NULL, 0); in cmd_dump() 121 shell_error(sh, "invalid size '%s'", optarg); in cmd_dump() 126 width = (size_t)strtoul(optarg, NULL, 0); in cmd_dump() 128 shell_error(sh, "invalid width '%s'", optarg); in cmd_dump()
|
/Zephyr-Core-3.5.0/tests/posix/getopt/src/ |
D | main.c | 100 zassert_equal(0, strcmp(argv[GETOPT_IDX_OPTARG], state->optarg), in ZTEST() 103 zassert_equal(0, strcmp(argv[GETOPT_IDX_OPTARG], optarg), in ZTEST() 183 zassert_equal(0, strcmp(state->optarg, argv[GETOPT_LONG_IDX_OPTARG]), in ZTEST() 199 zassert_equal(0, strcmp(state->optarg, argv[GETOPT_LONG_IDX_OPTARG]), in ZTEST() 303 zassert_equal(0, strcmp(state->optarg, argv[GETOPT_LONG_IDX_OPTARG]), in ZTEST() 320 zassert_equal(0, strcmp(state->optarg, argv[GETOPT_LONG_IDX_OPTARG]), in ZTEST()
|
/Zephyr-Core-3.5.0/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-Core-3.5.0/include/zephyr/posix/ |
D | unistd.h | 50 extern char *optarg;
|
/Zephyr-Core-3.5.0/subsys/net/l2/wifi/ |
D | wifi_shell.c | 498 if (!strcmp(optarg, "passive")) { in wifi_scan_args_to_params() 500 } else if (!strcmp(optarg, "active")) { in wifi_scan_args_to_params() 503 shell_fprintf(sh, SHELL_ERROR, "Invalid scan type %s\n", optarg); in wifi_scan_args_to_params() 510 if (wifi_utils_parse_scan_bands(optarg, ¶ms->bands)) { in wifi_scan_args_to_params() 518 val = atoi(optarg); in wifi_scan_args_to_params() 529 val = atoi(optarg); in wifi_scan_args_to_params() 540 if (wifi_utils_parse_scan_ssids(optarg, in wifi_scan_args_to_params() 550 val = atoi(optarg); in wifi_scan_args_to_params() 561 if (wifi_utils_parse_scan_chan(optarg, in wifi_scan_args_to_params() 1312 mode->if_index = (uint8_t)atoi(optarg); in parse_mode_args_to_params() [all …]
|
/Zephyr-Core-3.5.0/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-Core-3.5.0/doc/services/shell/ |
D | index.rst | 547 cvalue = optarg; 564 cvalue = state->optarg;
|