/system/core/logcat/ |
D | getopt_long.cpp | 91 int nopts = context->optind - context->nonopt_end; in permute_args() 93 int cyclelen = (context->optind - context->nonopt_start) / ncycle; in permute_args() 109 return context->optind - (context->nonopt_end - context->nonopt_start); in permute_args() 134 context->optind++; in parse_long_options_r() 201 context->optarg = nargv[context->optind++]; in parse_long_options_r() 216 context->optind--; in parse_long_options_r() 221 context->optind--; in parse_long_options_r() 248 if (!context->optind) context->optind = context->optreset = 1; in getopt_long_r() 264 if (context->optind >= nargc) { // end of argument vector in getopt_long_r() 268 context->optind = permute_args(context, nargv); in getopt_long_r() [all …]
|
/system/extras/ext4_utils/ |
D | ext4fixup_main.c | 54 if (optind >= argc) { in main() 60 fsdev = argv[optind++]; in main() 62 if (optind < argc) { in main() 63 fprintf(stderr, "Unexpected argument: %s\n", argv[optind]); in main()
|
D | make_ext4fs_main.c | 233 if (optind >= argc) { in main() 239 filename = argv[optind++]; in main() 241 if (optind < argc) in main() 242 directory = argv[optind++]; in main() 244 if (optind < argc) in main() 245 target_out_directory = argv[optind++]; in main() 247 if (optind < argc) { in main() 248 fprintf(stderr, "Unexpected argument: %s\n", argv[optind]); in main()
|
/system/extras/f2fs_utils/ |
D | make_f2fs_main.c | 61 if (optind >= argc) { in main() 67 filename = argv[optind++]; in main() 69 if (optind < argc) { in main() 70 fprintf(stderr, "Unexpected argument: %s\n", argv[optind]); in main()
|
/system/core/reboot/ |
D | reboot.c | 52 if(argc > optind + 1) { in main() 57 if (argc > optind) in main() 58 optarg = argv[optind]; in main()
|
/system/extras/slideshow/ |
D | slideshow.cpp | 109 if (optind >= argc) { in main() 122 while (optind < argc - 1) { in main() 123 draw(argv[optind++]); in main() 147 draw(argv[optind]); in main()
|
/system/core/demangle/ |
D | demangle.cpp | 74 if (optind >= argc || argc - optind != 1) { in main() 79 const char* name = argv[optind]; in main()
|
/system/core/logwrapper/ |
D | logwrapper.c | 75 argc -= optind; in main() 76 argv += optind; in main()
|
/system/extras/puncture_fs/ |
D | puncture_fs.c | 235 if (optind >= argc) { in main() 240 path = argv[optind++]; in main() 242 if (optind < argc) { in main() 243 fprintf(stderr, "\nUnexpected argument: %s\n", argv[optind]); in main()
|
/system/extras/tests/ext4/ |
D | rand_emmc_perf.c | 235 if ((argc - optind) != 2) { in main() 240 max_blocks = atoll(argv[optind]) * ((1024*1024) / TST_BLK_SIZE); in main() 242 if ((fd = open(argv[optind + 1], O_RDWR | o_sync)) < 0) { in main() 243 fprintf(stderr, "Cannot open block device %s\n", argv[optind + 1]); in main()
|
/system/tools/hidl/c2hal/ |
D | main.cpp | 151 if (optind == 1) { in main() 168 if (optind == argc) { in main() 174 for(int i = optind; i < argc; i++) { in main()
|
/system/extras/kexec_tools/ |
D | kexecload.c | 111 argc -= optind; in main() 112 argv += optind; in main()
|
/system/extras/runconuid/ |
D | runconuid.cpp | 159 child_argv = &argv[optind]; in parse_arguments() 161 if (optind == argc) { in parse_arguments()
|
/system/core/logcat/include/log/ |
D | getopt.h | 37 int optind; member
|
/system/extras/tests/suspend_stress/ |
D | suspend_stress.cpp | 87 if (optind < argc) { in main() 88 fprintf(stderr, "Unexpected argument: %s\n", argv[optind]); in main()
|
/system/bt/tools/bdtool/ |
D | bdtool.c | 354 if (optind < argc) { in parse_args() 356 while (optind < argc) fprintf(stderr, "%s ", argv[optind++]); in parse_args()
|
/system/libvintf/ |
D | assemble_vintf.cpp | 231 int optind; in main() local 232 while ((res = getopt_long(argc, argv, "hi:o:mc:", longopts, &optind)) >= 0) { in main()
|
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
D | grep.c | 629 newarg = optind != prevoptind; in main() 630 prevoptind = optind; in main() 632 aargc -= optind; in main() 633 aargv += optind; in main()
|
/system/sepolicy/tools/sepolicy-analyze/ |
D | attribute.c | 80 return list_attribute(policydb, argv[optind], reverse); in attribute_func()
|
/system/extras/librank/ |
D | librank.c | 306 fprintf(stderr, "Invalid argument \"%s\".\n", argv[optind - 1]); in main() 314 argc -= optind; in main() 315 argv += optind; in main()
|
/system/core/toolbox/ |
D | getevent.c | 602 if (optind + 1 == argc) { in getevent_main() 603 device = argv[optind]; in getevent_main() 604 optind++; in getevent_main() 606 if (optind != argc) { in getevent_main()
|
/system/sepolicy/tools/ |
D | checkfc.c | 377 int index = optind; in main() 378 if (argc - optind != 2) { in main()
|
/system/extras/verity/fec/ |
D | main.cpp | 365 argc -= optind; in main() 366 argv += optind; in main()
|
/system/extras/tests/icachetest/ |
D | icache_main.cpp | 74 return optind; in handleCommandLineArgments()
|
/system/libufdt/utils/src/ |
D | mkdtimg_cfg_create.c | 174 optind = arg_start + 2; in handle_command_cfg_create()
|