Home
last modified time | relevance | path

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

12

/system/core/logcat/
Dgetopt_long.cpp91 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/
Dext4fixup_main.c54 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()
Dmake_ext4fs_main.c233 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/
Dmake_f2fs_main.c61 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/
Dreboot.c52 if(argc > optind + 1) { in main()
57 if (argc > optind) in main()
58 optarg = argv[optind]; in main()
/system/extras/slideshow/
Dslideshow.cpp109 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/
Ddemangle.cpp74 if (optind >= argc || argc - optind != 1) { in main()
79 const char* name = argv[optind]; in main()
/system/core/logwrapper/
Dlogwrapper.c75 argc -= optind; in main()
76 argv += optind; in main()
/system/extras/puncture_fs/
Dpuncture_fs.c235 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/
Drand_emmc_perf.c235 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/
Dmain.cpp151 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/
Dkexecload.c111 argc -= optind; in main()
112 argv += optind; in main()
/system/extras/runconuid/
Drunconuid.cpp159 child_argv = &argv[optind]; in parse_arguments()
161 if (optind == argc) { in parse_arguments()
/system/core/logcat/include/log/
Dgetopt.h37 int optind; member
/system/extras/tests/suspend_stress/
Dsuspend_stress.cpp87 if (optind < argc) { in main()
88 fprintf(stderr, "Unexpected argument: %s\n", argv[optind]); in main()
/system/bt/tools/bdtool/
Dbdtool.c354 if (optind < argc) { in parse_args()
356 while (optind < argc) fprintf(stderr, "%s ", argv[optind++]); in parse_args()
/system/libvintf/
Dassemble_vintf.cpp231 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/
Dgrep.c629 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/
Dattribute.c80 return list_attribute(policydb, argv[optind], reverse); in attribute_func()
/system/extras/librank/
Dlibrank.c306 fprintf(stderr, "Invalid argument \"%s\".\n", argv[optind - 1]); in main()
314 argc -= optind; in main()
315 argv += optind; in main()
/system/core/toolbox/
Dgetevent.c602 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/
Dcheckfc.c377 int index = optind; in main()
378 if (argc - optind != 2) { in main()
/system/extras/verity/fec/
Dmain.cpp365 argc -= optind; in main()
366 argv += optind; in main()
/system/extras/tests/icachetest/
Dicache_main.cpp74 return optind; in handleCommandLineArgments()
/system/libufdt/utils/src/
Dmkdtimg_cfg_create.c174 optind = arg_start + 2; in handle_command_cfg_create()

12