/external/grub/lib/ |
getopt.c | 127 Otherwise, `optind' communicates from one call to the next 131 int optind = 1; 133 /* Formerly, initialization of getopt depended on optind==0, which 186 `--' can cause `getopt' to return -1 with `optind' != ARGC. */ 300 The other is elements [last_nonopt,optind), which contains all 316 int top = optind; 386 first_nonopt += (optind - last_nonopt); 387 last_nonopt = optind; 405 first_nonopt = last_nonopt = optind; 472 updating `optind' and `nextchar' so that the next call to `getopt' ca 130 int optind = 1; variable [all...] |
getopt1.c | 114 int this_option_optind = optind ? optind : 1; 181 if (optind < argc) 184 while (optind < argc) 185 printf ("%s ", argv[optind++]);
|
/frameworks/base/cmds/service/ |
service.cpp | 88 if (optind >= argc) { 91 if (strcmp(argv[optind], "check") == 0) { 92 optind++; 93 if (optind < argc) { 94 sp<IBinder> service = sm->checkService(String16(argv[optind])); 95 aout << "Service " << argv[optind] << 103 else if (strcmp(argv[optind], "list") == 0) { 114 } else if (strcmp(argv[optind], "call") == 0) { 115 optind++; 116 if (optind+1 < argc) [all...] |
/system/core/toolbox/ |
ioctl.c | 58 if(optind + 2 > argc) { 63 fd = open(argv[optind], O_RDWR | O_SYNC); 65 fprintf(stderr, "cannot open %s\n", argv[optind]); 68 optind++; 70 ioctl_nr = strtol(argv[optind], NULL, 0); 71 optind++; 79 length = (argc - optind) * arg_size; 86 while(optind < argc) { 87 uint64_t tmp = strtoull(argv[optind], NULL, 0); 95 optind++ [all...] |
cmp.c | 44 if (optind + 2 != argc) { 49 fd1 = open(argv[optind], O_RDONLY); 51 fprintf(stderr, "could not open %s, %s\n", argv[optind], strerror(errno)); 55 fd2 = open(argv[optind+1], O_RDONLY); 57 fprintf(stderr, "could not open %s, %s\n", argv[optind+1], strerror(errno)); 70 printf("%s %s differ byte %d", argv[optind], argv[optind+1], filepos + i); 85 printf("%s on %s\n", res < 0 ? "Read error" : "EOF", res1 < res2 ? argv[optind] : argv[optind+1]);
|
date.c | 73 if(optind + 2 < argc) { 78 int hasfmt = argc == optind + 1 && argv[optind][0] == '+'; 79 if(optind == argc || hasfmt) { 85 (hasfmt ? argv[optind] + 1 : "%a %b %e %H:%M:%S GMT %Y"), 90 (hasfmt ? argv[optind] + 1 : "%a %b %e %H:%M:%S %Z %Y"), 95 else if(optind + 1 == argc) { 98 tmptr = getdate(argv[optind]); 105 if(getdate_r(argv[optind], &tm) < 0) { 111 //strptime(argv[optind], NULL, &tm) [all...] |
reboot.c | 36 if(argc > optind + 1) { 46 else if(argc > optind) 47 ret = __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, LINUX_REBOOT_CMD_RESTART2, argv[optind]);
|
/bionic/libc/unistd/ |
getopt_long.c | 70 int optind = 1; /* index into parent argv vector */ variable 181 optind++; 245 optarg = nargv[optind++]; 265 --optind; 270 --optind; 316 * XXX Some GNU programs (like cvs) set optind to 0 instead of 319 if (optind == 0) 320 optind = optreset = 1; 328 if (optind >= nargc) { /* end of argument vector */ 333 optind, nargv) [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/utils/ |
common.c | 200 int optind = 1; variable 210 if (optind >= argc) { 215 if (argv[optind][0] != '-' || argv[optind][1] == '\0') { 221 if (os_strcmp(argv[optind], "--") == 0) { 223 optind++; 227 optopt = argv[optind][optchr]; 230 if (argv[optind][++optchr] == '\0') { 232 optind++; 240 if (argv[optind][optchr + 1]) [all...] |
/external/iptables/extensions/ |
libipt_2set.c | 68 check_inverse(optarg, &invert, &optind, 0); 72 if (!argv[optind] 73 || argv[optind][0] == '-' 74 || argv[optind][0] == '!') 78 if (strlen(argv[optind-1]) > IP_SET_MAXNAMELEN - 1) 81 argv[optind-1], IP_SET_MAXNAMELEN - 1); 83 get_set_byname(argv[optind - 1], info); 84 parse_bindings(argv[optind], info); 86 optind++;
|
libipt_SET.c | 68 if (!argv[optind] 69 || argv[optind][0] == '-' || argv[optind][0] == '!') 73 if (strlen(argv[optind-1]) > IP_SET_MAXNAMELEN - 1) 76 argv[optind-1], IP_SET_MAXNAMELEN - 1); 78 get_set_byname(argv[optind - 1], info); 79 parse_bindings(argv[optind], info); 80 optind++;
|
/external/bison/lib/ |
getopt.c | 87 Otherwise, `optind' communicates from one call to the next 91 int optind = 1; 148 The other is elements [last_nonopt,optind), which contains all 159 int top = d->optind; 229 d->__first_nonopt += (d->optind - d->__last_nonopt); 230 d->__last_nonopt = d->optind; 243 d->__first_nonopt = d->__last_nonopt = d->optind; 310 updating `optind' and `nextchar' so that the next call to `getopt' can 314 Then `optind' is the index in ARGV of the first ARGV-element 369 if (d->optind == 0 || !d->__initialized 90 int optind = 1; variable [all...] |
getopt_.h | 44 # undef optind macro 54 # define optind __GETOPT_ID (optind) macro 125 Otherwise, `optind' communicates from one call to the next 128 extern int optind;
|
getopt1.c | 98 int this_option_optind = optind ? optind : 1; 165 if (optind < argc) 168 while (optind < argc) 169 printf ("%s ", argv[optind++]);
|
/sdk/emulator/qtools/ |
bb_dump.cpp | 22 if (argc - optind != 2) { 27 char *trace_filename = argv[optind++]; 28 char *elf_file = argv[optind++];
|
/external/webkit/WebKit/android/benchmark/ |
main.cpp | 59 if (optind >= argc) { 64 android::benchmark(argv[optind], reloadCount, width, height);
|
/bionic/libc/include/ |
getopt.h | 78 extern int optind;
|
/ndk/build/platforms/android-3/arch-arm/usr/include/ |
getopt.h | 78 extern int optind;
|
/ndk/build/platforms/android-4/arch-arm/usr/include/ |
getopt.h | 78 extern int optind;
|
/ndk/build/platforms/android-5/arch-arm/usr/include/ |
getopt.h | 78 extern int optind;
|
/ndk/build/platforms/android-5/arch-x86/usr/include/ |
getopt.h | 78 extern int optind;
|
/ndk/build/platforms/android-8/arch-arm/usr/include/ |
getopt.h | 78 extern int optind;
|
/ndk/build/platforms/android-8/arch-x86/usr/include/ |
getopt.h | 78 extern int optind;
|
/external/e2fsprogs/misc/ |
findsuper.c | 144 if (optind == argc) 147 device_name = argv[optind++]; 149 if (optind < argc) { 150 skiprate = strtol(argv[optind], &s, 0); 151 if (s == argv[optind]) { 155 optind++; 162 if (optind < argc) { 163 sk = skl = strtoll(argv[optind], &s, 0) << 10; 164 if (s == argv[optind]) { 169 optind++ [all...] |
/external/icu4c/samples/date/ |
date.c | 62 int optind = 1; local 71 for(optind = 1; optind < argc; ++optind) { 72 arg = argv[optind]; 103 if ( optind + 1 < argc ) { 104 optind++; 105 format = argv[optind]; 111 ++optind;
|