Home
last modified time | relevance | path

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

12

/system/tools/aidl/
Doptions.cpp154 optind = 0; in Options()
304 if (argc - optind <= 0) { in Options()
309 input_files_.emplace_back(argv[optind++]); in Options()
310 if (argc - optind >= 1) { in Options()
311 output_file_ = argv[optind++]; in Options()
325 input_files_.emplace_back(argv[optind++]); in Options()
326 if (argc - optind < 2) { in Options()
330 output_header_dir_ = argv[optind++]; in Options()
334 output_file_ = argv[optind++]; in Options()
336 if (argc - optind > 0) { in Options()
[all …]
/system/core/reboot/
Dreboot.c52 if(argc > optind + 1) { in main()
57 if (argc > optind) in main()
58 optarg = argv[optind]; in main()
/system/core/toolbox/
Dgetprop.cpp148 if (optind >= argc) { in getprop_main()
153 if (optind < argc - 2) { in getprop_main()
158 PrintProperty(argv[optind], (optind == argc - 1) ? "" : argv[optind + 1], result_type); in getprop_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/tools/sysprop/
DJavaMain.cpp58 if (optind >= argc) { in ParseArgs()
63 if (optind + 1 < argc) { in ParseArgs()
68 args->input_file_path = argv[optind]; in ParseArgs()
DCppMain.cpp77 if (optind >= argc) { in ParseArgs()
82 if (optind + 1 < argc) { in ParseArgs()
92 args->input_file_path = argv[optind]; in ParseArgs()
/system/core/logwrapper/
Dlogwrapper.c75 argc -= optind; in main()
76 argv += optind; in main()
/system/core/demangle/
Ddemangle.cpp122 if (optind == argc) return Filter(compare); in main()
125 while (optind < argc) { in main()
126 const char* name = argv[optind++]; in main()
/system/libvintf/
Dassemble_vintf_main.cpp86 int optind; in main() local
87 while ((res = getopt_long(argc, argv, "hi:o:mc:nl", longopts, &optind)) >= 0) { in main()
/system/extras/pssbench/
Dmain.cpp76 if (argv[optind] == NULL) { in main()
80 int pid = atoi(argv[optind]); in main()
/system/core/fs_mgr/
Dfs_mgr_remount.cpp210 for (; argc > optind; ++optind) { in main()
211 auto partition = std::string(argv[optind]); in main()
223 LOG(ERROR) << "Unknown partition " << argv[optind] << ", skipping"; in main()
230 LOG(INFO) << "partition " << argv[optind] << " covered by overlayfs for " in main()
237 LOG(ERROR) << "Invalid partition " << argv[optind] << ", skipping"; 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/partition_tools/
Dlpunpack.cc125 if (optind + 1 > argc) { in main()
129 std::string super_path = argv[optind++]; in main()
132 if (optind + 1 <= argc) { in main()
133 output_dir = argv[optind++]; in main()
136 if (optind < argc) { in main()
/system/core/trusty/utils/trusty-ut-ctrl/
Dut-ctrl.c88 if (optind < argc) { in parse_options()
89 ut_app = strdup(argv[optind]); in parse_options()
/system/extras/verity/
Dbuild_verity_tree_main.cpp113 argc -= optind; in main()
114 argv += optind; in main()
/system/extras/kexec_tools/
Dkexecload.c109 argc -= optind; in main()
110 argv += optind; in main()
/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/extras/runconuid/
Drunconuid.cpp170 child_argv = &argv[optind]; in parse_arguments()
172 if (optind == argc) { in parse_arguments()
/system/core/libmeminfo/tools/
Dprocmem.cpp165 if (optind != (argc - 1)) { in main()
170 pid_t pid = atoi(argv[optind]); in main()
Dwsstop.cpp202 if ((argc - 1) < optind) { in main()
207 g_pid = atoi(argv[optind]); in main()
209 fprintf(stderr, "Invalid process id %s\n", argv[optind]); in main()
Dshowmap.cpp249 if ((argc - 1) < optind) { in main()
254 g_pid = atoi(argv[optind]); in main()
256 fprintf(stderr, "Invalid process id %s\n", argv[optind]); in main()
/system/bt/tools/bdtool/
Dbdtool.c353 if (optind < argc) { in parse_args()
355 while (optind < argc) fprintf(stderr, "%s ", argv[optind++]); in parse_args()
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dgrep.c639 newarg = optind != prevoptind; in main()
640 prevoptind = optind; in main()
642 aargc -= optind; in main()
643 aargv += optind; in main()

12