Home
last modified time | relevance | path

Searched refs:optarg (Results 1 – 25 of 50) sorted by relevance

12

/system/core/reboot/
Dreboot.c30 char* optarg = ""; in main() local
58 optarg = argv[optind]; in main()
59 if (!optarg || !optarg[0]) optarg = "shell"; in main()
61 prop_len = snprintf(property_val, sizeof(property_val), "%s,%s", cmd, optarg); in main()
63 fprintf(stderr, "%s command too long: %s\n", cmd, optarg); in main()
/system/libvintf/
Dassemble_vintf_main.cpp80 for (const auto& inFilePath : ::android::base::Split(optarg, ":")) { in main()
89 outFilePath = optarg; in main()
90 if (!assembleVintf->openOutFile(optarg)) { in main()
91 std::cerr << "Failed to open " << optarg << std::endl; in main()
101 if (!assembleVintf->openCheckFile(optarg)) { in main()
102 std::cerr << "Failed to open " << optarg << std::endl; in main()
108 if (!assembleVintf->addKernel(optarg)) { in main()
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dgrep.c410 if (optarg == NULL) { in main()
419 l = strtoull(optarg, &ep, 10); in main()
444 if (strcasecmp(optarg, "skip") == 0) in main()
446 else if (strcasecmp(optarg, "read") == 0) in main()
452 if (strcasecmp("recurse", optarg) == 0) { in main()
455 } else if (strcasecmp("skip", optarg) == 0) in main()
457 else if (strcasecmp("read", optarg) == 0) in main()
466 add_pattern(optarg, strlen(optarg)); in main()
473 read_patterns(optarg); in main()
508 mcount = strtoull(optarg, &ep, 10); in main()
[all …]
/system/core/libion/
Dion_test.c238 len = atol(optarg); in main()
241 align = atol(optarg); in main()
245 map_flags |= strstr(optarg, "PROT_EXEC") ? PROT_EXEC : 0; in main()
246 map_flags |= strstr(optarg, "PROT_READ") ? PROT_READ: 0; in main()
247 map_flags |= strstr(optarg, "PROT_WRITE") ? PROT_WRITE: 0; in main()
248 map_flags |= strstr(optarg, "PROT_NONE") ? PROT_NONE: 0; in main()
252 prot |= strstr(optarg, "MAP_PRIVATE") ? MAP_PRIVATE : 0; in main()
253 prot |= strstr(optarg, "MAP_SHARED") ? MAP_SHARED : 0; in main()
256 alloc_flags = atol(optarg); in main()
259 heap_mask = atol(optarg); in main()
/system/libufdt/tests/src/
Dufdt_gen_test_dts.c172 params.depth = atoi(optarg); in main()
175 params.unused_num = atoi(optarg); in main()
178 params.node_num = atoi(optarg); in main()
181 params.append_num = atoi(optarg); in main()
184 params.override_num = atoi(optarg); in main()
187 filename = optarg; in main()
/system/extras/alloc-stress/
Dmem-pressure.cpp72 iterations = atoi(optarg); in main()
75 duration = atoi(optarg); in main()
78 oom_score = optarg; in main()
81 step_size = atoi(optarg); in main()
/system/core/toolbox/
Dnewfs_msdos.c271 opt_ofs = argtooff(optarg, "offset"); in newfs_msdos_main()
280 opt_B = optarg; in newfs_msdos_main()
283 opt_create = argtooff(optarg, "create size"); in newfs_msdos_main()
286 if (strcmp(optarg, "12") && strcmp(optarg, "16") && strcmp(optarg, "32")) in newfs_msdos_main()
287 errx(1, "%s: bad FAT type", optarg); in newfs_msdos_main()
288 opt_F = atoi(optarg); in newfs_msdos_main()
291 opt_I = argto4(optarg, 0, "volume ID"); in newfs_msdos_main()
295 if (!oklabel(optarg)) in newfs_msdos_main()
296 errx(1, "%s: bad volume label", optarg); in newfs_msdos_main()
297 opt_L = optarg; in newfs_msdos_main()
[all …]
/system/sepolicy/tools/
Dversion_policy.c112 base = strdup(optarg); in main()
118 num = strdup(optarg); in main()
121 output = strdup(optarg); in main()
124 tgt_policy = strdup(optarg); in main()
129 fprintf(stderr, "Unsupported option: %s\n", optarg); in main()
Dsepolicy-check.c254 source = optarg; in main()
257 target = optarg; in main()
260 class = optarg; in main()
263 perm = optarg; in main()
266 policy = optarg; in main()
/system/core/logcat/
Dlogcat.cpp914 if (!getSizeTArg(optctx.optarg, &pid, 1)) { in __logcat()
917 optctx.optarg); in __logcat()
927 if (optctx.optarg && in __logcat()
928 !getSizeTArg(optctx.optarg, &dummy, 1)) { in __logcat()
931 optctx.optarg); in __logcat()
952 setId = (optctx.optarg && optctx.optarg[0]) ? optctx.optarg in __logcat()
981 if (strspn(optctx.optarg, "0123456789") != in __logcat()
982 strlen(optctx.optarg)) { in __logcat()
983 char* cp = parseTime(tail_time, optctx.optarg); in __logcat()
987 optctx.optarg); in __logcat()
[all …]
Dgetopt_long.cpp197 context->optarg = has_equal; in parse_long_options_r()
200 context->optarg = nargv[context->optind++]; in parse_long_options_r()
204 !context->optarg) { in parse_long_options_r()
258 context->optarg = nullptr; in getopt_long_r()
280 context->optarg = nargv[context->optind++]; in getopt_long_r()
382 context->optarg = nullptr; in getopt_long_r()
384 context->optarg = context->place; in getopt_long_r()
394 context->optarg = nargv[context->optind]; in getopt_long_r()
/system/extras/tests/sdcard/
Dsdcard_perf_test.cpp84 extern char *optarg;
223 testCase->setDataSize(atoi(optarg) * 1024); in parseCmdLine()
226 testCase->setChunkSize(atoi(optarg) * 1024); in parseCmdLine()
229 testCase->setTreeDepth(atoi(optarg)); in parseCmdLine()
232 testCase->setIter(atoi(optarg)); in parseCmdLine()
236 testCase->setNproc(atoi(optarg)); in parseCmdLine()
240 testCase->setTypeFromName(optarg); in parseCmdLine()
251 if (strcmp("sync", optarg) == 0) { in parseCmdLine()
253 } else if (strcmp("fsync", optarg) == 0) { in parseCmdLine()
268 testCase->setFadvise(optarg); in parseCmdLine()
[all …]
/system/extras/runconuid/
Drunconuid.cpp150 uid = lookup_uid(optarg); in parse_arguments()
153 gid = lookup_gid(optarg); in parse_arguments()
156 lookup_groups(optarg); in parse_arguments()
162 context = optarg; in parse_arguments()
/system/extras/iotop/
Diotop.cpp131 delay = atoi(optarg); in main()
137 limit = atoi(optarg); in main()
140 cycles = atoi(optarg); in main()
143 sorter = GetSorter(optarg); in main()
145 LOG(ERROR) << "Invalid sort column \"" << optarg << "\""; in main()
/system/extras/tests/binder/benchmarks/
DbinderAddInts.cpp269 int cpu = strtoul(optarg, &chptr, 10); in main()
272 << " option of: " << optarg << endl; in main()
278 cerr << "CPU " << optarg << " not currently available" << endl; in main()
289 options.iterDelay = strtod(optarg, &chptr); in main()
291 cerr << "Invalid delay specified of: " << optarg << endl; in main()
/system/extras/verity/fec/
Dmain.cpp319 ctx.roots = (int)parse_arg(optarg, "roots", FEC_RSM); in main()
325 ctx.threads = (int)parse_arg(optarg, "threads", IMAGE_MAX_THREADS); in main()
332 ctx.inp_size = parse_arg(optarg, "print-fec-size", UINT64_MAX); in main()
339 inp_filenames.push_back(optarg); in main()
346 inp_filenames.push_back(optarg); in main()
349 ctx.padding = (uint32_t)parse_arg(optarg, "padding", UINT32_MAX); in main()
/system/vold/
Dmain.cpp157 case 'b': android::vold::sBlkidContext = optarg; break; in parse_args()
158 case 'B': android::vold::sBlkidUntrustedContext = optarg; break; in parse_args()
159 case 'f': android::vold::sFsckContext = optarg; break; in parse_args()
160 case 'F': android::vold::sFsckUntrustedContext = optarg; break; in parse_args()
/system/extras/pssbench/
Dmain.cpp66 iterations = atoi(optarg); in main()
69 bufsz = atoi(optarg); in main()
/system/extras/verity/
Dbuild_verity_tree.cpp153 salt.insert(salt.end(), optarg, &optarg[strlen(optarg)]); in main()
157 if(!BN_hex2bn(&bn, optarg)) { in main()
176 unsigned long long int inSize = strtoull(optarg, &endptr, 0); in main()
177 if (optarg[0] == '\0' || *endptr != '\0' || in main()
/system/tools/hidl/c2hal/
Dmain.cpp120 outputDir = optarg; in main()
124 package = optarg; in main()
137 addPackageRootToMap(optarg, packageRootPaths); in main()
/system/core/trusty/storage/proxy/
Dproxy.c199 trusty_devname = strdup(optarg); in parse_args()
203 ss_data_root = strdup(optarg); in parse_args()
207 rpmb_devname = strdup(optarg); in parse_args()
/system/extras/slideshow/
Dslideshow.cpp96 timeout = strtol(optarg, NULL, 0); in main()
100 LOGE("invalid timeout %s, defaulting to %ld\n", optarg, in main()
/system/core/libziparchive/
Dunzip.cpp285 flag_d = optarg; in main()
315 archive_name = optarg; in main()
317 excludes.insert(optarg); in main()
319 includes.insert(optarg); in main()
/system/extras/puncture_fs/
Dpuncture_fs.c216 seed = atoi(optarg); in main()
219 hole_size = atoll(optarg); in main()
223 total_hole_size = atoll(optarg); in main()
/system/extras/ANRdaemon/
DANRdaemon.cpp544 apps = optarg; in get_options()
547 if (atoi(optarg) > max_buffer_size) in get_options()
549 else if (atoi(optarg) < min_buffer_size) in get_options()
552 buf_size_kb = optarg; in get_options()
555 threshold = atoi(optarg); in get_options()

12