Home
last modified time | relevance | path

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

12345678910>>...14

/external/libusb/examples/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 …]
Dgetopt1.c110 int this_option_optind = optind ? optind : 1;
177 if (optind < argc)
180 while (optind < argc)
181 printf ("%s ", argv[optind++]);
/external/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 …]
/external/openssh/openbsd-compat/
Dgetopt_long.c76 int optind = 1; /* index into parent argv vector */ variable
186 optind++; in parse_long_options()
248 optarg = nargv[optind++]; in parse_long_options()
267 --optind; in parse_long_options()
272 --optind; in parse_long_options()
308 if (optind == 0) in getopt_internal()
309 optind = optreset = 1; in getopt_internal()
330 if (optind >= nargc) { /* end of argument vector */ in getopt_internal()
335 optind, nargv); in getopt_internal()
336 optind -= nonopt_end - nonopt_start; in getopt_internal()
[all …]
/external/iptables/iptables/
Dxtables-eb.c121 if (optind >= argc) in ebt_check_inverse2()
124 optarg = argv[optind]; in ebt_check_inverse2()
125 optind++; in ebt_check_inverse2()
532 …if (optind + 1 >= argc || (argv[optind][0] == '-' && (argv[optind][1] < '0' || argv[optind][1] > '… in parse_change_counters_rule()
533 (argv[optind + 1][0] == '-' && (argv[optind + 1][1] < '0' && argv[optind + 1][1] > '9'))) in parse_change_counters_rule()
536 …if (optind + 2 < argc && (argv[optind + 2][0] != '-' || (argv[optind + 2][1] >= '0' && argv[optind in parse_change_counters_rule()
537 if (optind + 3 != argc) in parse_change_counters_rule()
540 if (parse_rule_range(argv[optind], rule_nr, rule_nr_end)) in parse_change_counters_rule()
542 "Something is wrong with the rule number specification '%s'", argv[optind]); in parse_change_counters_rule()
543 optind++; in parse_change_counters_rule()
[all …]
Dxtables-arp.c959 optind = 0; in do_commandarp()
988 rulenum = parse_rulenumber(argv[optind++]); in do_commandarp()
998 rulenum = parse_rulenumber(argv[optind++]); in do_commandarp()
1010 rulenum = parse_rulenumber(argv[optind++]); in do_commandarp()
1019 chain = argv[optind++]; in do_commandarp()
1027 chain = argv[optind++]; in do_commandarp()
1035 chain = argv[optind++]; in do_commandarp()
1057 chain = argv[optind++]; in do_commandarp()
1065 newname = argv[optind++]; in do_commandarp()
1078 policy = argv[optind++]; in do_commandarp()
[all …]
/external/tcpdump/missing/
Dgetopt_long.c83 int optind, opterr = 1, optopt; variable
220 optind++; in parse_long_options()
301 optarg = nargv[optind++]; in parse_long_options()
323 --optind; in parse_long_options()
328 --optind; in parse_long_options()
387 if (optind == 0)
388 optind = 1;
393 if (optind >= nargc) { /* end of argument vector */
398 optind, nargv);
399 optind -= nonopt_end - nonopt_start;
[all …]
/external/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.c70 if (!argv[optind] in set_parse_v0()
71 || argv[optind][0] == '-' in set_parse_v0()
72 || argv[optind][0] == '!') in set_parse_v0()
82 parse_dirs_v0(argv[optind], info); in set_parse_v0()
84 optind++; in set_parse_v0()
150 if (!argv[optind] in set_parse_v1()
151 || argv[optind][0] == '-' in set_parse_v1()
152 || argv[optind][0] == '!') in set_parse_v1()
162 parse_dirs(argv[optind], info); in set_parse_v1()
164 optind++; in set_parse_v1()
[all …]
/external/libunwind/tests/
Dtest-ptrace.c173 int status, pid, pending_sig, optind = 1, state = 1; in main() local
187 while (argv[optind][0] == '-') in main()
189 if (strcmp (argv[optind], "-v") == 0) in main()
190 ++optind, verbose = 1; in main()
191 else if (strcmp (argv[optind], "-i") == 0) in main()
192 ++optind, trace_mode = INSTRUCTION; /* backtrace at each insn */ in main()
193 else if (strcmp (argv[optind], "-s") == 0) in main()
194 ++optind, trace_mode = SYSCALL; /* backtrace at each syscall */ in main()
195 else if (strcmp (argv[optind], "-t") == 0) in main()
198 ++optind, trace_mode = TRIGGER; in main()
[all …]
/external/libpcap/missing/
Dgetopt.c45 optind = 1, /* index into parent argv vector */ variable
74 if (optind >= nargc || *(place = nargv[optind]) != '-') { in getopt()
79 ++optind; in getopt()
93 ++optind; in getopt()
102 ++optind; in getopt()
107 else if (nargc <= ++optind) { /* no arg */ in getopt()
118 optarg = nargv[optind]; in getopt()
120 ++optind; in getopt()
/external/ltp/testcases/kernel/syscalls/utimensat/
Dutimensat01.c150 if ((optind + 5 != argc) && (optind + 1 != argc)) in main()
168 pathname = (strcmp(argv[optind], "NULL") == 0) ? NULL : argv[optind]; in main()
176 if (argc == optind + 1) { in main()
180 ts[0].tv_sec = atoi(argv[optind + 1]); in main()
181 if (argv[optind + 2][0] == 'n') { in main()
183 } else if (argv[optind + 2][0] == 'o') { in main()
186 ts[0].tv_nsec = atoi(argv[optind + 2]); in main()
189 ts[1].tv_sec = atoi(argv[optind + 3]); in main()
190 if (argv[optind + 4][0] == 'n') { in main()
192 } else if (argv[optind + 4][0] == 'o') { in main()
[all …]
/external/libevent/sample/
Ddns-example.c210 if (optind < c) { in main()
230 for (; optind < c; ++optind) { in main()
233 if (evutil_inet_pton(AF_INET, v[optind], &addr)!=1) { in main()
234 fprintf(stderr, "Skipping non-IP %s\n", v[optind]); in main()
237 fprintf(stderr, "resolving %s...\n",v[optind]); in main()
238 evdns_base_resolve_reverse(evdns_base, &addr, 0, main_callback, v[optind]); in main()
245 fprintf(stderr, "resolving (fwd) %s...\n",v[optind]); in main()
246 evdns_getaddrinfo(evdns_base, v[optind], NULL, &hints, in main()
247 gai_callback, v[optind]); in main()
249 fprintf(stderr, "resolving (fwd) %s...\n",v[optind]); in main()
[all …]
/external/nos/host/android/manual_tests/
Dtest_citadel.c238 int i, rv, argcount, optind = 1; in do_tpm() local
242 if (optind < argc) { in do_tpm()
243 command = strtoul(argv[optind], &e, 16); in do_tpm()
245 Error("%s: Invalid COMMAND: \"%s\"", argv[0], argv[optind]); in do_tpm()
246 optind++; in do_tpm()
253 argcount = argc - optind; in do_tpm()
263 buf[i] = 0xff & strtoul(argv[optind], &e, 16); in do_tpm()
265 Error("%s: Invalid byte value: \"%s\"", argv[0], argv[optind]); in do_tpm()
268 optind++; in do_tpm()
288 int optind = 1; in do_app() local
[all …]
/external/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()
/external/iproute2/tipc/
Dcmdl.c74 if (cmdl->optind < cmdl->argc) in shift_cmdl()
75 next = (cmdl->optind)++; in shift_cmdl()
88 for (i = cmdl->optind; i < cmdl->argc; i++) { in parse_opts()
98 cmdl->optind++; in parse_opts()
103 cmdl->optind++; in parse_opts()
115 if ((cmdl->optind) >= cmdl->argc) { in run_cmd()
120 name = cmdl->argv[cmdl->optind]; in run_cmd()
121 (cmdl->optind)++; in run_cmd()
/external/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()
/external/selinux/semodule-utils/semodule_link/
Dsemodule_link.c26 extern int optind;
109 if (argc < 3 || !(optind != (argc - 1))) { in main()
116 basename = argv[optind++]; in main()
125 num_mods = argc - optind; in main()
135 for (i = 0; optind < argc; optind++, i++) { in main()
136 mods[i] = load_module(argv[optind]); in main()
140 argv[0], argv[optind]); in main()
/external/wpa_supplicant_8/hs20/client/
Dosu_client.c3236 if (argc - optind < 1) { in main()
3250 "================", argv[optind]); in main()
3253 if (strcmp(argv[optind], "to_tnds") == 0) { in main()
3254 if (argc - optind < 2) { in main()
3258 cmd_to_tnds(&ctx, argv[optind + 1], argv[optind + 2], in main()
3259 argc > optind + 3 ? argv[optind + 3] : NULL, in main()
3261 } else if (strcmp(argv[optind], "to_tnds2") == 0) { in main()
3262 if (argc - optind < 2) { in main()
3266 cmd_to_tnds(&ctx, argv[optind + 1], argv[optind + 2], in main()
3267 argc > optind + 3 ? argv[optind + 3] : NULL, in main()
[all …]
/external/selinux/libselinux/utils/
Dselinux_check_access.c38 if ((argc - optind) != 4) in main()
45 rc = selinux_check_access(argv[optind], argv[optind + 1], in main()
46 argv[optind + 2], argv[optind + 3], in main()
Dgetconlist.c36 if (((argc - optind) < 1) || ((argc - optind) > 2)) in main()
47 user = argv[optind]; in main()
50 if (((argc - optind) < 2)) { in main()
57 cur_context = argv[optind + 1]; in main()
/external/selinux/policycoreutils/setsebool/
Dsetsebool.c62 if (argc - optind < 1) { in main()
70 if (strchr(argv[optind], '=') == 0) { in main()
74 if ((argc - optind) != 2) in main()
78 len = strlen(argv[optind]) + strlen(argv[optind + 1]) + 2; in main()
84 snprintf(bool_list[0], len, "%s=%s", argv[optind], in main()
85 argv[optind + 1]); in main()
89 rc = setbool(argv, optind, argc); in main()
/external/libnl/src/
Dnl-link-stats.c59 if (optind >= gargc) { in dump_stats()
65 while (optind < gargc) { in dump_stats()
66 int id = rtnl_link_str2stat(argv[optind]); in dump_stats()
70 "\"%s\"\n", argv[optind]); in dump_stats()
74 optind++; in dump_stats()
/external/ltp/testcases/lib/
Dtst_getconf.c39 if (!strcmp(argv[optind], "_NPROCESSORS_ONLN")) { in main()
41 } else if (!strcmp(argv[optind], "PAGESIZE") || in main()
42 !strcmp(argv[optind], "PAGE_SIZE")) { in main()
46 argv[optind]); in main()
/external/selinux/policycoreutils/setfiles/
Dsetfiles.c391 for (i = optind; i < argc; i++) {
401 if (optind != (argc - 1))
404 if (optind != (argc - 1)) {
409 if (optind > (argc - 2))
420 if (stat(argv[optind], &sb) < 0) {
421 perror(argv[optind]);
426 argv[0], argv[optind]);
430 altpath = argv[optind];
431 optind++;
471 for (i = optind; i < argc; i++)

12345678910>>...14