Home
last modified time | relevance | path

Searched refs:optind (Results 1 – 25 of 346) sorted by relevance

12345678910>>...14

/third_party/libusb/msvc/getopt/
Dgetopt.c128 int optind = 1; variable
309 int top = optind;
379 first_nonopt += (optind - last_nonopt);
380 last_nonopt = optind;
398 first_nonopt = last_nonopt = optind;
528 if (optind == 0 || !__getopt_initialized)
530 if (optind == 0)
531 optind = 1; /* Don't scan ARGV[0], the program name. */
541 # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \
542 || (optind < nonoption_flags_len \
[all …]
/third_party/ninja/src/
Dgetopt.c106 int optind = 0; variable
164 if (optind >= argc || argv[optind] == NULL) in getopt_internal()
166 if (strcmp (argv[optind], "--") == 0) in getopt_internal()
168 optind++; in getopt_internal()
172 if (optind == 0) in getopt_internal()
173 optind = optwhere = 1; in getopt_internal()
193 permute_from = optind; in getopt_internal()
195 while (!is_option (argv[optind], only)) in getopt_internal()
197 optind++; in getopt_internal()
200 if (argv[optind] == NULL) in getopt_internal()
[all …]
/third_party/flutter/glfw/deps/
Dgetopt.c39 int optind = 1; variable
61 if (optind >= argc) in getopt()
66 if (argv[optind] == NULL) in getopt()
71 if (*argv[optind] != '-') in getopt()
76 if (strcmp(argv[optind], "-") == 0) in getopt()
81 if (strcmp(argv[optind], "--") == 0) { in getopt()
82 ++optind; in getopt()
87 optcursor = argv[optind] + 1; in getopt()
121 if (++optind < argc) { in getopt()
122 optarg = argv[optind]; in getopt()
[all …]
/third_party/ffmpeg/compat/
Dgetopt.c37 static int optind = 1; variable
48 if (optind >= argc || in getopt()
49 argv[optind][0] != '-' || argv[optind][1] == '\0') in getopt()
51 else if (!strcmp(argv[optind], "--")) { in getopt()
52 optind++; in getopt()
56 optopt = c = argv[optind][sp]; in getopt()
59 if (argv[optind][++sp] == '\0') { in getopt()
60 optind++; in getopt()
66 if (argv[optind][sp+1] != '\0') in getopt()
67 optarg = &argv[optind++][sp+1]; in getopt()
[all …]
/third_party/libcoap/examples/
Dgetopt.c19 static int optind = 1; variable
30 if (optind >= argc || in getopt()
31 argv[optind][0] != '-' || argv[optind][1] == '\0') in getopt()
33 else if (!strcmp(argv[optind], "--")) { in getopt()
34 optind++; in getopt()
38 optopt = c = argv[optind][sp]; in getopt()
41 if (argv[optind][++sp] == '\0') { in getopt()
42 optind++; in getopt()
48 if (argv[optind][sp+1] != '\0') in getopt()
49 optarg = &argv[optind++][sp+1]; in getopt()
[all …]
/third_party/musl/src/misc/
Dgetopt_long.c27 if (!optind || __optreset) { in __getopt_long()
30 optind = 1; in __getopt_long()
32 if (optind >= argc || !argv[optind]) return -1; in __getopt_long()
33 skipped = optind; in __getopt_long()
36 for (i=optind; ; i++) { in __getopt_long()
40 optind = i; in __getopt_long()
42 resumed = optind; in __getopt_long()
45 int i, cnt = optind-resumed; in __getopt_long()
47 permute(argv, skipped, optind-1); in __getopt_long()
48 optind = skipped + cnt; in __getopt_long()
[all …]
Dgetopt.c11 int optind=1, opterr=1, optopt, __optpos, __optreset=0; variable
35 if (!optind || __optreset) { in getopt()
38 optind = 1; in getopt()
41 if (optind >= argc || !argv[optind]) in getopt()
44 if (argv[optind][0] != '-') { in getopt()
46 optarg = argv[optind++]; in getopt()
52 if (!argv[optind][1]) in getopt()
55 if (argv[optind][1] == '-' && !argv[optind][2]) in getopt()
56 return optind++, -1; in getopt()
59 if ((k = mbtowc(&c, argv[optind]+optpos, MB_LEN_MAX)) < 0) { in getopt()
[all …]
/third_party/mesa3d/src/getopt/
Dgetopt_long.c59 int optind = 1; /* index into parent argv vector */ variable
169 optind++; in parse_long_options()
231 optarg = nargv[optind++]; in parse_long_options()
250 --optind; in parse_long_options()
255 --optind; in parse_long_options()
304 if (optind == 0) in getopt_internal()
305 optind = optreset = 1; in getopt_internal()
313 if (optind >= nargc) { /* end of argument vector */ in getopt_internal()
318 optind, nargv); in getopt_internal()
319 optind -= nonopt_end - nonopt_start; in getopt_internal()
[all …]
/third_party/iptables/iptables/
Dxtables-eb.c66 if (optind >= argc) in ebt_check_inverse2()
69 optarg = argv[optind]; in ebt_check_inverse2()
70 optind++; in ebt_check_inverse2()
416 if (optind + 1 >= argc || argv[optind][0] == '-' || argv[optind + 1][0] == '-') in parse_change_counters_rule()
419 …if (optind + 2 < argc && (argv[optind + 2][0] != '-' || (argv[optind + 2][1] >= '0' && argv[optind in parse_change_counters_rule()
420 if (optind + 3 != argc) in parse_change_counters_rule()
423 if (parse_rule_range(argv[optind], rule_nr, rule_nr_end)) in parse_change_counters_rule()
425 "Something is wrong with the rule number specification '%s'", argv[optind]); in parse_change_counters_rule()
426 optind++; in parse_change_counters_rule()
429 if (argv[optind][0] == '+') { in parse_change_counters_rule()
[all …]
Dxtables-eb-translate.c42 if (optind >= argc) in ebt_check_inverse2()
45 optarg = argv[optind]; in ebt_check_inverse2()
46 optind++; in ebt_check_inverse2()
236 optind--; /* No table specified */ in do_commandeb_xlate()
260 …} else if (c == 'D' && optind < argc && (argv[optind][0] != '-' || (argv[optind][1] >= '0' && argv… in do_commandeb_xlate()
261 if (optind != argc - 1) in do_commandeb_xlate()
264 if (parse_rule_range(argv[optind], &rule_nr, &rule_nr_end)) in do_commandeb_xlate()
266 "Problem with the specified rule number(s) '%s'", argv[optind]); in do_commandeb_xlate()
267 optind++; in do_commandeb_xlate()
269 …if (optind >= argc || (argv[optind][0] == '-' && (argv[optind][1] < '0' || argv[optind][1] > '9'))) in do_commandeb_xlate()
[all …]
Dxtables-arp.c479 optind = 0; in do_commandarp()
509 rulenum = parse_rulenumber(argv[optind++]); in do_commandarp()
519 rulenum = parse_rulenumber(argv[optind++]); in do_commandarp()
531 rulenum = parse_rulenumber(argv[optind++]); in do_commandarp()
540 chain = argv[optind++]; in do_commandarp()
548 chain = argv[optind++]; in do_commandarp()
556 chain = argv[optind++]; in do_commandarp()
578 chain = argv[optind++]; in do_commandarp()
586 newname = argv[optind++]; in do_commandarp()
599 policy = argv[optind++]; in do_commandarp()
[all …]
/third_party/pulseaudio/src/utils/
Dpactl.c1708 if (optind < argc) { in main()
1709 if (pa_streq(argv[optind], "stat")) { in main()
1712 } else if (pa_streq(argv[optind], "info")) in main()
1715 else if (pa_streq(argv[optind], "exit")) in main()
1718 else if (pa_streq(argv[optind], "list")) { in main()
1721 for (int i = optind+1; i < argc; i++) { in main()
1735 } else if (pa_streq(argv[optind], "upload-sample")) { in main()
1739 if (optind+1 >= argc) { in main()
1744 if (optind+2 < argc) in main()
1745 sample_name = pa_xstrdup(argv[optind+2]); in main()
[all …]
/third_party/iptables/extensions/
Dlibxt_rateest.c160 if (!argv[optind] || *argv[optind] == '-' || *argv[optind] == '!') in rateest_parse()
163 if (rateest_get_rate(&info->bps1, argv[optind]) < 0) in rateest_parse()
166 argv[optind]); in rateest_parse()
167 optind++; in rateest_parse()
183 if (!argv[optind] || *argv[optind] == '-' || *argv[optind] == '!') in rateest_parse()
186 if (!xtables_strtoui(argv[optind], NULL, &val, 0, UINT32_MAX)) in rateest_parse()
189 argv[optind]); in rateest_parse()
191 optind++; in rateest_parse()
207 if (!argv[optind] || *argv[optind] == '-' || *argv[optind] == '!') in rateest_parse()
210 if (rateest_get_rate(&info->bps2, argv[optind]) < 0) in rateest_parse()
[all …]
Dlibxt_set.c71 if (!argv[optind] in set_parse_v0()
72 || argv[optind][0] == '-' in set_parse_v0()
73 || argv[optind][0] == '!') in set_parse_v0()
83 parse_dirs_v0(argv[optind], info); in set_parse_v0()
85 optind++; in set_parse_v0()
152 if (!argv[optind] in set_parse_v1()
153 || argv[optind][0] == '-' in set_parse_v1()
154 || argv[optind][0] == '!') in set_parse_v1()
164 parse_dirs(argv[optind], info); in set_parse_v1()
166 optind++; in set_parse_v1()
[all …]
/third_party/libunwind/tests/
Dtest-ptrace.c173 int status, pid, pending_sig, optind = 1, state = 1; in main() local
192 while (argv[optind][0] == '-') in main()
194 if (strcmp (argv[optind], "-v") == 0) in main()
195 ++optind, verbose = 1; in main()
196 else if (strcmp (argv[optind], "-i") == 0) in main()
197 ++optind, trace_mode = INSTRUCTION; /* backtrace at each insn */ in main()
198 else if (strcmp (argv[optind], "-s") == 0) in main()
199 ++optind, trace_mode = SYSCALL; /* backtrace at each syscall */ in main()
200 else if (strcmp (argv[optind], "-t") == 0) in main()
203 ++optind, trace_mode = TRIGGER; in main()
[all …]
/third_party/alsa-lib/test/
Dseq.c198 if (argc - optind <= 0) { in main()
209 if (!strcmp(argv[optind], "system")) { in main()
211 } else if (!strcmp(argv[optind], "queue")) { in main()
212 arg = argc - optind > 1 ? atoi(argv[optind + 1]) : -1; in main()
214 } else if (!strcmp(argv[optind], "client")) { in main()
215 arg = argc - optind > 1 ? atoi(argv[optind + 1]) : -1; in main()
217 } else if (!strcmp(argv[optind], "port")) { in main()
218 arg = argc - optind > 1 ? atoi(argv[optind + 1]) : -1; in main()
223 arg1 = argc - optind > 2 ? atoi(argv[optind + 2]) : -1; in main()
225 } else if (!strcmp(argv[optind], "decoder")) { in main()
[all …]
/third_party/node/deps/cares/src/tools/
Dares_getopt.c52 optind = 1; /* index into parent argv vector */ variable
73 if (optind >= nargc || *(place = nargv[optind]) != '-') { in ares_getopt()
78 ++optind; in ares_getopt()
92 ++optind; in ares_getopt()
101 ++optind; in ares_getopt()
106 else if (nargc <= ++optind) { /* no arg */ in ares_getopt()
117 optarg = nargv[optind]; in ares_getopt()
119 ++optind; in ares_getopt()
/third_party/libwebsockets/win32port/win32helpers/
Dgetopt.c54 optind = 1, /* index into parent argv vector */ variable
102 if (optind >= nargc || *(place = nargv[optind]) != '-') {
108 ++optind;
122 ++optind;
131 ++optind;
136 else if (nargc <= ++optind) { /* no arg */
147 optarg = nargv[optind];
149 ++optind;
Dgetopt_long.c45 extern int optind; /* index into parent argv vector */
94 if (optind >= nargc || *(place = nargv[optind]) != '-') {
113 ++optind;
122 ++optind;
126 else if (nargc <= ++optind) { /* no arg */
134 optarg = nargv[optind];
136 ++optind;
156 ++optind;
182 char *current_argv = nargv[optind++] + 2, *has_equal;
211 optarg = nargv[optind++];
/third_party/libinput/tools/
Dlibinput-quirks.c140 if (optind >= argc) { in main()
145 if (streq(argv[optind], "list")) { in main()
146 optind++; in main()
147 if (optind >= argc) { in main()
151 } else if (streq(argv[optind], "validate")) { in main()
152 optind++; in main()
153 if (optind < argc) { in main()
159 fprintf(stderr, "Unnkown action '%s'\n", argv[optind]); in main()
194 path = argv[optind]; in main()
/third_party/libwebsockets/minimal-examples/api-tests/api-test-fts/
Dmain.c106 while (optind < argc) { in main()
108 fi = lws_fts_file_index(t, argv[optind], in main()
109 (int)strlen(argv[optind]), 1); in main()
112 __func__, argv[optind]); in main()
117 fd = open(argv[optind], O_RDONLY); in main()
120 argv[optind]); in main()
141 optind++; in main()
164 while (optind < argc) { in main()
172 params.needle = argv[optind]; in main()
217 optind++; in main()
/third_party/icu/tools/multi/proj/chello/
Ddate.c64 int optind = 1; in main() local
73 for(optind = 1; optind < argc; ++optind) { in main()
74 arg = argv[optind]; in main()
105 if ( optind + 1 < argc ) { in main()
106 optind++; in main()
107 format = argv[optind]; in main()
113 ++optind; in main()
/third_party/quickjs/
Dqjs.c307 int optind; in main() local
338 optind = 1; in main()
339 while (optind < argc && *argv[optind] == '-') { in main()
340 char *arg = argv[optind] + 1; in main()
345 optind++; in main()
366 if (optind < argc) { in main()
367 expr = argv[optind++]; in main()
374 if (optind >= argc) { in main()
382 include_list[include_count++] = argv[optind++]; in main()
428 if (optind >= argc) { in main()
[all …]
/third_party/e2fsprogs/misc/
Dfindsuper.c147 if (optind == argc) in main()
150 device_name = argv[optind++]; in main()
152 if (optind < argc) { in main()
153 skiprate = strtol(argv[optind], &s, 0); in main()
154 if (s == argv[optind]) { in main()
158 optind++; in main()
165 if (optind < argc) { in main()
166 sk = skl = strtoll(argv[optind], &s, 0) << 10; in main()
167 if (s == argv[optind]) { in main()
172 optind++; in main()
/third_party/ltp/pan/
Dltp-bump.c80 if (optind == argc) { in main()
91 while (optind < argc) { in main()
93 nanny = zoo_getpid(zoo, argv[optind]); in main()
96 argv[optind]); in main()
102 argv[optind], nanny); in main()
110 ++optind; in main()

12345678910>>...14