Home
last modified time | relevance | path

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

12345678910

/external/fio/lib/
Dgetopt_long.c20 int optind = 0, opterr = 0, optopt = 0; variable
59 optind < 1 || optind > argc) { in getopt_long_only()
63 optind = 1; in getopt_long_only()
67 carg = argv[optind]; in getopt_long_only()
78 optind++; in getopt_long_only()
102 if (!(optarg = argv[optind])) in getopt_long_only()
104 optind++; in getopt_long_only()
128 optind++; in getopt_long_only()
133 if (argv[optind + 1]) { in getopt_long_only()
134 optarg = (char *)argv[optind+1]; in getopt_long_only()
[all …]
/external/bison/lib/
Dgetopt.c82 int optind = 1; variable
148 int top = d->optind; in exchange()
218 d->__first_nonopt += (d->optind - d->__last_nonopt); in exchange()
219 d->__last_nonopt = d->optind; in exchange()
233 d->__first_nonopt = d->__last_nonopt = d->optind; in _getopt_initialize()
357 if (d->optind == 0 || !d->__initialized) in _getopt_internal_r()
359 if (d->optind == 0) in _getopt_internal_r()
360 d->optind = 1; /* Don't scan ARGV[0], the program name. */ in _getopt_internal_r()
375 # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0' \ in _getopt_internal_r()
376 || (d->optind < d->__nonoption_flags_len \ in _getopt_internal_r()
[all …]
Dgetopt1.c92 int this_option_optind = optind ? optind : 1; in main()
159 if (optind < argc) in main()
162 while (optind < argc) in main()
163 printf ("%s ", argv[optind++]); in main()
/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/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 …]
Dlibxt_SET.c70 if (!argv[optind] in parse_target_v0()
71 || argv[optind][0] == '-' || argv[optind][0] == '!') in parse_target_v0()
81 parse_dirs_v0(argv[optind], info); in parse_target_v0()
82 optind++; in parse_target_v0()
169 if (!argv[optind] in parse_target()
170 || argv[optind][0] == '-' || argv[optind][0] == '!') in parse_target()
180 parse_dirs(argv[optind], info); in parse_target()
181 optind++; in parse_target()
/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/c-ares/
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()
/external/libpcap/Win32/Src/
Dgetopt.c43 optind = 1, /* index into parent argv vector */ variable
72 if (optind >= nargc || *(place = nargv[optind]) != '-') {
77 ++optind;
91 ++optind;
100 ++optind;
105 else if (nargc <= ++optind) { /* no arg */
116 optarg = nargv[optind];
118 ++optind;
/external/e2fsprogs/misc/
Dfindsuper.c146 if (optind == argc) in main()
149 device_name = argv[optind++]; in main()
151 if (optind < argc) { in main()
152 skiprate = strtol(argv[optind], &s, 0); in main()
153 if (s == argv[optind]) { in main()
157 optind++; in main()
164 if (optind < argc) { in main()
165 sk = skl = strtoll(argv[optind], &s, 0) << 10; in main()
166 if (s == argv[optind]) { in main()
171 optind++; in main()
/external/iptables/iptables/
Diptables.c1313 optind = 0; in do_command4()
1353 if (optind < argc && argv[optind][0] != '-' in do_command4()
1354 && argv[optind][0] != '!') { in do_command4()
1355 rulenum = parse_rulenumber(argv[optind++]); in do_command4()
1364 if (optind < argc && argv[optind][0] != '-' in do_command4()
1365 && argv[optind][0] != '!') in do_command4()
1366 rulenum = parse_rulenumber(argv[optind++]); in do_command4()
1377 if (optind < argc && argv[optind][0] != '-' in do_command4()
1378 && argv[optind][0] != '!') in do_command4()
1379 rulenum = parse_rulenumber(argv[optind++]); in do_command4()
[all …]
Dip6tables.c1317 optind = 0; in do_command6()
1357 if (optind < argc && argv[optind][0] != '-' in do_command6()
1358 && argv[optind][0] != '!') { in do_command6()
1359 rulenum = parse_rulenumber(argv[optind++]); in do_command6()
1368 if (optind < argc && argv[optind][0] != '-' in do_command6()
1369 && argv[optind][0] != '!') in do_command6()
1370 rulenum = parse_rulenumber(argv[optind++]); in do_command6()
1381 if (optind < argc && argv[optind][0] != '-' in do_command6()
1382 && argv[optind][0] != '!') in do_command6()
1383 rulenum = parse_rulenumber(argv[optind++]); in do_command6()
[all …]
/external/selinux/policycoreutils/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/iproute2/tipc/
Dcmdl.c69 if (cmdl->optind < cmdl->argc) in shift_cmdl()
70 next = (cmdl->optind)++; in shift_cmdl()
83 for (i = cmdl->optind; i < cmdl->argc; i += 2) { in parse_opts()
94 cmdl->optind += 2; in parse_opts()
106 if ((cmdl->optind) >= cmdl->argc) { in run_cmd()
111 name = cmdl->argv[cmdl->optind]; in run_cmd()
112 (cmdl->optind)++; in run_cmd()
/external/wpa_supplicant_8/hs20/client/
Dosu_client.c3092 if (argc - optind < 1) { in main()
3106 "================", argv[optind]); in main()
3109 if (strcmp(argv[optind], "to_tnds") == 0) { in main()
3110 if (argc - optind < 2) { in main()
3114 cmd_to_tnds(&ctx, argv[optind + 1], argv[optind + 2], in main()
3115 argc > optind + 3 ? argv[optind + 3] : NULL, in main()
3117 } else if (strcmp(argv[optind], "to_tnds2") == 0) { in main()
3118 if (argc - optind < 2) { in main()
3122 cmd_to_tnds(&ctx, argv[optind + 1], argv[optind + 2], in main()
3123 argc > optind + 3 ? argv[optind + 3] : NULL, in main()
[all …]
/external/selinux/libselinux/utils/
Dgetconlist.c36 if (((argc - optind) < 1) || ((argc - optind) > 2)) in main()
46 user = argv[optind]; in main()
49 if (((argc - optind) < 2)) { in main()
55 cur_context = argv[optind + 1]; in main()
Dgetdefaultcon.c47 if (((argc - optind) < 1) || ((argc - optind) > 2)) in main()
57 user = argv[optind]; in main()
60 if (((argc - optind) < 2)) { in main()
66 cur_context = argv[optind + 1]; 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/selinux/policycoreutils/setsebool/
Dsetsebool.c67 if (argc - optind < 1) { in main()
75 if (strchr(argv[optind], '=') == 0) { in main()
79 if ((argc - optind) != 2) in main()
83 len = strlen(argv[optind]) + strlen(argv[optind + 1]) + 2; in main()
89 snprintf(bool_list[0], len, "%s=%s", argv[optind], in main()
90 argv[optind + 1]); in main()
94 rc = setbool(argv, optind, argc); in main()
/external/selinux/policycoreutils/setfiles/
Dsetfiles.c364 for (i = optind; i < argc; i++) {
374 if (optind != (argc - 1))
377 if (optind != (argc - 1)) {
382 if (optind > (argc - 2))
392 if (stat(argv[optind], &sb) < 0) {
393 perror(argv[optind]);
398 argv[0], argv[optind]);
402 altpath = argv[optind];
403 optind++;
438 for (i = optind; i < argc; i++)
/external/f2fs-tools/mkfs/
Df2fs_format_main.c97 if (optind >= argc) { in f2fs_parse_options()
101 config.device_name = argv[optind]; in f2fs_parse_options()
103 if ((optind + 1) < argc) { in f2fs_parse_options()
105 config.total_sectors = atoll(argv[optind+1]); in f2fs_parse_options()
107 config.total_sectors, argv[optind+1]); in f2fs_parse_options()
/external/mesa3d/src/glsl/
Dmain.cpp223 if (argc <= optind) in main()
234 for (/* empty */; argc > optind; optind++) { in main()
245 const unsigned len = strlen(argv[optind]); in main()
249 const char *const ext = & argv[optind][len - 5]; in main()
259 shader->Source = load_text_file(whole_program, argv[optind]); in main()
261 printf("File \"%s\" does not exist.\n", argv[optind]); in main()
268 printf("Info log for %s:\n%s\n", argv[optind], shader->InfoLog); in main()
/external/tagsoup/src/org/ccil/cowan/tagsoup/
DCommandLine.java65 int optind = getopts(options, argv); in main() local
74 if (argv.length == optind) { in main()
78 for (int i = optind; i < argv.length; i++) { in main()
94 for (int i = optind; i < argv.length; i++) { in main()
257 int optind; in getopts() local
258 for (optind = 0; optind < argv.length; optind++) { in getopts()
259 String arg = argv[optind]; in getopts()
278 return optind; in getopts()

12345678910