Searched refs:optstring (Results 1 - 6 of 6) sorted by relevance
/u-boot/include/ |
H A D | getopt.h | 51 const char *optstring, bool silent); 59 * @optstring: Option specification, as described below 68 * @optstring is a list of accepted options. If an option is followed by ``:`` 69 * in @optstring, then it expects a mandatory argument. If an option is followed 70 * by ``::`` in @optstring, it expects an optional argument. @gs.arg points 104 * * ``'?'`` if we encounter an option not in @optstring. @gs.opt is set to 112 char *const argv[], const char *optstring) 114 return __getopt(gs, argc, argv, optstring, false); 122 * @optstring: Option specification 127 char *const argv[], const char *optstring) 111 getopt(struct getopt_state *gs, int argc, char *const argv[], const char *optstring) argument 126 getopt_silent(struct getopt_state *gs, int argc, char *const argv[], const char *optstring) argument [all...] |
/u-boot/test/lib/ |
H A D | getopt.c | 16 struct getopt_state *gs, const char *optstring, 24 opt = getopt_silent(gs, args, argv, optstring); 38 opt = getopt_silent(gs, args, argv, optstring); 49 #define test_getopt(optstring, argv, expected) do { \ 50 int ret = do_test_getopt(uts, __LINE__, &gs, optstring, \ 15 do_test_getopt(struct unit_test_state *uts, int line, struct getopt_state *gs, const char *optstring, int args, char *argv[], int expected_count, int expected[]) argument
|
/u-boot/lib/ |
H A D | getopt.c | 22 const char *optstring, bool silent) 25 const char *curoptp; /* pointer to the current option in optstring */ 57 /* look up current option in optstring */ 58 curoptp = strchr(optstring, curopt); 21 __getopt(struct getopt_state *gs, int argc, char *const argv[], const char *optstring, bool silent) argument
|
/u-boot/tools/ |
H A D | mkimage.c | 162 static const char optstring[] = variable 208 while ((opt = getopt_long(argc, argv, optstring,
|
H A D | ifwitool.c | 2165 const char *optstring; member in struct:command 2242 c = getopt_long(argc, argv, commands[i].optstring, 2249 if (!strchr(commands[i].optstring, c)) {
|
/u-boot/common/ |
H A D | cli_hush_upstream.c | 12251 const char *cp, *optstring, *var; local 12255 optstring = *++argv; 12256 if (!optstring || !(var = *++argv)) { 12268 if (optstring[0] != ':') { 12275 /*if (optstring[0] != '+')*/ { 12276 char *s = alloca(strlen(optstring) + 2); 12277 sprintf(s, "+%s", optstring); 12278 optstring = s; 12286 * c = getopt(string_array_len(argv), argv, optstring); 12313 c = getopt(n, argv, optstring); [all...] |
Completed in 134 milliseconds