/external/grub/lib/ |
D | getopt.c | 130 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 …]
|
D | getopt1.c | 112 int this_option_optind = optind ? optind : 1; 179 if (optind < argc) 182 while (optind < argc) 183 printf ("%s ", argv[optind++]);
|
/external/bison/lib/ |
D | getopt.c | 90 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 …]
|
D | getopt1.c | 96 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/ |
D | qemu-io.c | 257 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/ |
D | common.c | 200 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/ |
D | libipt_multiport.c | 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() 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 …]
|
D | libip6t_multiport.c | 166 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 …]
|
D | libipt_hashlimit.c | 164 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()
|
D | libip6t_hashlimit.c | 164 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()
|
D | libipt_2set.c | 68 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()
|
D | libipt_conntrack.c | 201 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 …]
|
D | libipt_SET.c | 68 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()
|
D | libipt_tcp.c | 162 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 …]
|
D | libip6t_tcp.c | 161 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 …]
|
D | libipt_physdev.c | 55 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()
|
D | libip6t_physdev.c | 55 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/ |
D | findsuper.c | 144 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()
|
D | logsave.c | 26 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/ |
D | date.c | 62 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/ |
D | iptables.c | 563 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 …]
|
D | ip6tables.c | 472 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/ |
D | common.c | 496 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/ |
D | hcitool.c | 788 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/ |
D | netsh.c | 466 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()
|