/external/libusb/examples/getopt/ |
D | getopt.c | 128 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 …]
|
D | getopt1.c | 110 int this_option_optind = optind ? optind : 1; 177 if (optind < argc) 180 while (optind < argc) 181 printf ("%s ", argv[optind++]);
|
/external/mesa3d/src/getopt/ |
D | getopt_long.c | 59 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/ |
D | getopt_long.c | 76 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/ |
D | xtables-eb.c | 121 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 …]
|
D | xtables-arp.c | 959 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/ |
D | getopt_long.c | 83 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/ |
D | libxt_rateest.c | 160 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 …]
|
D | libxt_set.c | 70 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/ |
D | test-ptrace.c | 173 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/ |
D | getopt.c | 45 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/ |
D | utimensat01.c | 150 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/ |
D | dns-example.c | 210 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/ |
D | test_citadel.c | 238 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/ |
D | findsuper.c | 147 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/ |
D | cmdl.c | 74 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/ |
D | ltp-bump.c | 80 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/ |
D | semodule_link.c | 26 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/ |
D | osu_client.c | 3236 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/ |
D | selinux_check_access.c | 38 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()
|
D | getconlist.c | 36 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/ |
D | setsebool.c | 62 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/ |
D | nl-link-stats.c | 59 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/ |
D | tst_getconf.c | 39 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/ |
D | setfiles.c | 391 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++)
|