Home
last modified time | relevance | path

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

12345678

/external/grub/lib/
Dgetopt.c130 int optind = 1; variable
313 int top = optind;
383 first_nonopt += (optind - last_nonopt);
384 last_nonopt = optind;
402 first_nonopt = last_nonopt = optind;
525 if (optind == 0 || !__getopt_initialized)
527 if (optind == 0)
528 optind = 1; /* Don't scan ARGV[0], the program name. */
538 # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \
539 || (optind < nonoption_flags_len \
[all …]
Dgetopt1.c112 int this_option_optind = optind ? optind : 1;
179 if (optind < argc)
182 while (optind < argc)
183 printf ("%s ", argv[optind++]);
/external/bison/lib/
Dgetopt.c90 int optind = 1; variable
156 int top = d->optind; in exchange()
226 d->__first_nonopt += (d->optind - d->__last_nonopt); in exchange()
227 d->__last_nonopt = d->optind; in exchange()
240 d->__first_nonopt = d->__last_nonopt = d->optind; in _getopt_initialize()
365 if (d->optind == 0 || !d->__initialized) in _getopt_internal_r()
367 if (d->optind == 0) in _getopt_internal_r()
368 d->optind = 1; /* Don't scan ARGV[0], the program name. */ in _getopt_internal_r()
379 # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0' \ in _getopt_internal_r()
380 || (d->optind < d->__nonoption_flags_len \ in _getopt_internal_r()
[all …]
Dgetopt1.c96 int this_option_optind = optind ? optind : 1; in main()
163 if (optind < argc) in main()
166 while (optind < argc) in main()
167 printf ("%s ", argv[optind++]); in main()
/external/qemu/
Dqemu-io.c257 if (optind != argc - 2) in read_f()
260 offset = cvtnum(argv[optind]); in read_f()
262 printf("non-numeric length argument -- %s\n", argv[optind]); in read_f()
266 optind++; in read_f()
267 count = cvtnum(argv[optind]); in read_f()
269 printf("non-numeric length argument -- %s\n", argv[optind]); in read_f()
406 if (optind > argc - 2) in readv_f()
410 offset = cvtnum(argv[optind]); in readv_f()
412 printf("non-numeric length argument -- %s\n", argv[optind]); in readv_f()
415 optind++; in readv_f()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/src/utils/
Dcommon.c200 int optind = 1; variable
210 if (optind >= argc) { in getopt()
215 if (argv[optind][0] != '-' || argv[optind][1] == '\0') { in getopt()
221 if (os_strcmp(argv[optind], "--") == 0) { in getopt()
223 optind++; in getopt()
227 optopt = argv[optind][optchr]; in getopt()
230 if (argv[optind][++optchr] == '\0') { in getopt()
232 optind++; in getopt()
240 if (argv[optind][optchr + 1]) { in getopt()
242 optarg = &argv[optind++][optchr + 1]; in getopt()
[all …]
/external/iptables/extensions/
Dlibipt_multiport.c174 check_inverse(argv[optind-1], &invert, &optind, 0); in parse()
176 multiinfo->count = parse_multi_ports(argv[optind-1], in parse()
182 check_inverse(argv[optind-1], &invert, &optind, 0); in parse()
184 multiinfo->count = parse_multi_ports(argv[optind-1], in parse()
190 check_inverse(argv[optind-1], &invert, &optind, 0); in parse()
192 multiinfo->count = parse_multi_ports(argv[optind-1], in parse()
224 check_inverse(argv[optind-1], &invert, &optind, 0); in parse_v1()
226 parse_multi_ports_v1(argv[optind-1], multiinfo, proto); in parse_v1()
231 check_inverse(argv[optind-1], &invert, &optind, 0); in parse_v1()
233 parse_multi_ports_v1(argv[optind-1], multiinfo, proto); in parse_v1()
[all …]
Dlibip6t_multiport.c166 check_inverse(argv[optind-1], &invert, &optind, 0); in parse()
168 multiinfo->count = parse_multi_ports(argv[optind-1], in parse()
174 check_inverse(argv[optind-1], &invert, &optind, 0); in parse()
176 multiinfo->count = parse_multi_ports(argv[optind-1], in parse()
182 check_inverse(argv[optind-1], &invert, &optind, 0); in parse()
184 multiinfo->count = parse_multi_ports(argv[optind-1], in parse()
216 check_inverse(argv[optind-1], &invert, &optind, 0); in parse_v1()
218 parse_multi_ports_v1(argv[optind-1], multiinfo, proto); in parse_v1()
223 check_inverse(argv[optind-1], &invert, &optind, 0); in parse_v1()
225 parse_multi_ports_v1(argv[optind-1], multiinfo, proto); in parse_v1()
[all …]
Dlibipt_hashlimit.c164 if (check_inverse(argv[optind-1], &invert, &optind, 0)) break; in parse()
172 if (check_inverse(argv[optind-1], &invert, &optind, 0)) break; in parse()
180 if (check_inverse(argv[optind-1], &invert, &optind, 0)) break; in parse()
188 if (check_inverse(argv[optind-1], &invert, &optind, 0)) break; in parse()
196 if (check_inverse(argv[optind-1], &invert, &optind, 0)) break; in parse()
206 if (check_inverse(argv[optind-1], &invert, &optind, 0)) break; in parse()
215 if (check_inverse(argv[optind-1], &invert, &optind, 0)) break; in parse()
222 if (check_inverse(argv[optind-1], &invert, &optind, 0)) break; in parse()
Dlibip6t_hashlimit.c164 if (check_inverse(argv[optind-1], &invert, &optind, 0)) break; in parse()
172 if (check_inverse(argv[optind-1], &invert, &optind, 0)) break; in parse()
180 if (check_inverse(argv[optind-1], &invert, &optind, 0)) break; in parse()
188 if (check_inverse(argv[optind-1], &invert, &optind, 0)) break; in parse()
196 if (check_inverse(argv[optind-1], &invert, &optind, 0)) break; in parse()
206 if (check_inverse(argv[optind-1], &invert, &optind, 0)) break; in parse()
215 if (check_inverse(argv[optind-1], &invert, &optind, 0)) break; in parse()
222 if (check_inverse(argv[optind-1], &invert, &optind, 0)) break; in parse()
Dlibipt_2set.c68 check_inverse(optarg, &invert, &optind, 0); in parse()
72 if (!argv[optind] in parse()
73 || argv[optind][0] == '-' in parse()
74 || argv[optind][0] == '!') in parse()
78 if (strlen(argv[optind-1]) > IP_SET_MAXNAMELEN - 1) in parse()
81 argv[optind-1], IP_SET_MAXNAMELEN - 1); in parse()
83 get_set_byname(argv[optind - 1], info); in parse()
84 parse_bindings(argv[optind], info); in parse()
86 optind++; in parse()
Dlibipt_conntrack.c201 check_inverse(optarg, &invert, &optind, 0); in parse()
203 parse_states(argv[optind-1], sinfo); in parse()
211 check_inverse(optarg, &invert, &optind, 0); in parse()
217 for (protocol = argv[optind-1]; *protocol; protocol++) in parse()
220 protocol = argv[optind-1]; in parse()
232 check_inverse(optarg, &invert, &optind, 9); in parse()
237 parse_hostnetworkmask(argv[optind-1], &addrs, in parse()
252 check_inverse(optarg, &invert, &optind, 0); in parse()
257 parse_hostnetworkmask(argv[optind-1], &addrs, in parse()
272 check_inverse(optarg, &invert, &optind, 0); in parse()
[all …]
Dlibipt_SET.c68 if (!argv[optind] in parse_target()
69 || argv[optind][0] == '-' || argv[optind][0] == '!') in parse_target()
73 if (strlen(argv[optind-1]) > IP_SET_MAXNAMELEN - 1) in parse_target()
76 argv[optind-1], IP_SET_MAXNAMELEN - 1); in parse_target()
78 get_set_byname(argv[optind - 1], info); in parse_target()
79 parse_bindings(argv[optind], info); in parse_target()
80 optind++; in parse_target()
Dlibipt_tcp.c162 check_inverse(optarg, &invert, &optind, 0); in parse()
163 parse_tcp_ports(argv[optind-1], tcpinfo->spts); in parse()
173 check_inverse(optarg, &invert, &optind, 0); in parse()
174 parse_tcp_ports(argv[optind-1], tcpinfo->dpts); in parse()
194 check_inverse(optarg, &invert, &optind, 0); in parse()
196 if (!argv[optind] in parse()
197 || argv[optind][0] == '-' || argv[optind][0] == '!') in parse()
201 parse_tcp_flags(tcpinfo, argv[optind-1], argv[optind], in parse()
203 optind++; in parse()
211 check_inverse(optarg, &invert, &optind, 0); in parse()
[all …]
Dlibip6t_tcp.c161 check_inverse(optarg, &invert, &optind, 0); in parse()
162 parse_tcp_ports(argv[optind-1], tcpinfo->spts); in parse()
172 check_inverse(optarg, &invert, &optind, 0); in parse()
173 parse_tcp_ports(argv[optind-1], tcpinfo->dpts); in parse()
193 check_inverse(optarg, &invert, &optind, 0); in parse()
195 if (!argv[optind] in parse()
196 || argv[optind][0] == '-' || argv[optind][0] == '!') in parse()
200 parse_tcp_flags(tcpinfo, argv[optind-1], argv[optind], in parse()
202 optind++; in parse()
210 check_inverse(optarg, &invert, &optind, 0); in parse()
[all …]
Dlibipt_physdev.c55 check_inverse(optarg, &invert, &optind, 0); in parse()
56 parse_interface(argv[optind-1], info->physindev, in parse()
67 check_inverse(optarg, &invert, &optind, 0); in parse()
68 parse_interface(argv[optind-1], info->physoutdev, in parse()
79 check_inverse(optarg, &invert, &optind, 0); in parse()
89 check_inverse(optarg, &invert, &optind, 0); in parse()
99 check_inverse(optarg, &invert, &optind, 0); in parse()
Dlibip6t_physdev.c55 check_inverse(optarg, &invert, &optind, 0); in parse()
56 parse_interface(argv[optind-1], info->physindev, in parse()
67 check_inverse(optarg, &invert, &optind, 0); in parse()
68 parse_interface(argv[optind-1], info->physoutdev, in parse()
79 check_inverse(optarg, &invert, &optind, 0); in parse()
89 check_inverse(optarg, &invert, &optind, 0); in parse()
99 check_inverse(optarg, &invert, &optind, 0); in parse()
/external/e2fsprogs/misc/
Dfindsuper.c144 if (optind == argc) in main()
147 device_name = argv[optind++]; in main()
149 if (optind < argc) { in main()
150 skiprate = strtol(argv[optind], &s, 0); in main()
151 if (s == argv[optind]) { in main()
155 optind++; in main()
162 if (optind < argc) { in main()
163 sk = skl = strtoll(argv[optind], &s, 0) << 10; in main()
164 if (s == argv[optind]) { in main()
169 optind++; in main()
Dlogsave.c26 extern int optind;
205 if (optind == argc || optind+1 == argc) in main()
207 outfn = argv[optind]; in main()
208 optind++; in main()
209 argv += optind; in main()
210 argc -= optind; in main()
/external/icu4c/samples/date/
Ddate.c62 int optind = 1; in main() local
71 for(optind = 1; optind < argc; ++optind) { in main()
72 arg = argv[optind]; in main()
103 if ( optind + 1 < argc ) { in main()
104 optind++; in main()
105 format = argv[optind]; in main()
111 ++optind; in main()
/external/iptables/
Diptables.c563 check_inverse(const char option[], int *invert, int *optind, int argc) in check_inverse() argument
570 if (optind) { in check_inverse()
571 *optind = *optind+1; in check_inverse()
572 if (argc && *optind > argc) in check_inverse()
1966 optind = 0; in do_command()
1999 if (optind < argc && argv[optind][0] != '-' in do_command()
2000 && argv[optind][0] != '!') { in do_command()
2001 rulenum = parse_rulenumber(argv[optind++]); in do_command()
2010 if (optind < argc && argv[optind][0] != '-' in do_command()
2011 && argv[optind][0] != '!') in do_command()
[all …]
Dip6tables.c472 check_inverse(const char option[], int *invert, int *optind, int argc) in check_inverse() argument
479 if (optind) { in check_inverse()
480 *optind = *optind+1; in check_inverse()
481 if (argc && *optind > argc) in check_inverse()
1882 optind = 0; in do_command6()
1915 if (optind < argc && argv[optind][0] != '-' in do_command6()
1916 && argv[optind][0] != '!') { in do_command6()
1917 rulenum = parse_rulenumber(argv[optind++]); in do_command6()
1926 if (optind < argc && argv[optind][0] != '-' in do_command6()
1927 && argv[optind][0] != '!') in do_command6()
[all …]
/external/wpa_supplicant/
Dcommon.c496 int optind = 1; variable
506 if (optind >= argc) { in getopt()
511 if (argv[optind][0] != '-' || argv[optind][1] == '\0') { in getopt()
517 if (os_strcmp(argv[optind], "--") == 0) { in getopt()
519 optind++; in getopt()
523 optopt = argv[optind][optchr]; in getopt()
526 if (argv[optind][++optchr] == '\0') { in getopt()
528 optind++; in getopt()
536 if (argv[optind][optchr + 1]) { in getopt()
538 optarg = &argv[optind++][optchr + 1]; in getopt()
[all …]
/external/bluetooth/bluez/tools/
Dhcitool.c788 argc -= optind; in cmd_name()
789 argv += optind; in cmd_name()
847 argc -= optind; in cmd_info()
848 argv += optind; in cmd_info()
1090 argc -= optind; in cmd_cmd()
1091 argv += optind; in cmd_cmd()
1221 argc -= optind; in cmd_cc()
1222 argv += optind; in cmd_cc()
1277 argc -= optind; in cmd_dc()
1278 argv += optind; in cmd_dc()
[all …]
/external/netperf/
Dnetsh.c466 extern int optind; /* index of first unused arg */ in scan_cmd_line()
515 if (argv[optind] && isdigit((unsigned char)argv[optind][0])){ in scan_cmd_line()
517 local_cpu_rate = (float)atof(argv[optind]); in scan_cmd_line()
518 optind++; in scan_cmd_line()
524 if (argv[optind] && isdigit((unsigned char)argv[optind][0])){ in scan_cmd_line()
526 remote_cpu_rate = (float)atof(argv[optind]); in scan_cmd_line()
527 optind++; in scan_cmd_line()
537 if (argv[optind] && isdigit((unsigned char)argv[optind][0])){ in scan_cmd_line()
539 break_args_explicit(argv[optind],arg1,arg2); in scan_cmd_line()
540 optind++; in scan_cmd_line()

12345678