Home
last modified time | relevance | path

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

12

/system/extras/ext4_utils/
Dmake_ext4fs_main.c86 info.len = parse_num(optarg); in main()
89 info.journal_blocks = parse_num(optarg); in main()
92 info.block_size = parse_num(optarg); in main()
95 info.blocks_per_group = parse_num(optarg); in main()
98 info.inodes = parse_num(optarg); in main()
101 info.inode_size = parse_num(optarg); in main()
104 info.label = optarg; in main()
111 mountpoint = optarg; in main()
138 seopts[0].value = optarg; in main()
141 perror(optarg); in main()
[all …]
Dext4fixup_main.c48 sscanf(optarg, "%d,%d,%d", &stop_phase, &stop_loc, &stop_count); 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/reboot/
Dreboot.c30 char *optarg = ""; in main() local
58 optarg = argv[optind]; in main()
60 prop_len = snprintf(property_val, sizeof(property_val), "%s,%s", cmd, optarg); in main()
62 fprintf(stderr, "reboot command too long: %s\n", optarg); in main()
/system/extras/tests/wifi/stress/
DwifiLoadScanAssoc.c143 delayMin = strtod(optarg, &chptr); in main()
146 "of: %s", optarg); in main()
152 delayMax = strtod(optarg, &chptr); in main()
155 "of: %s", optarg); in main()
161 duration = strtod(optarg, &chptr); in main()
164 optarg); in main()
180 startPass = strtoul(optarg, &chptr, 10); in main()
183 "of: %s", optarg); in main()
199 endPass = strtoul(optarg, &chptr, 10); in main()
202 "of: %s", optarg); in main()
[all …]
/system/core/logcat/
Dlogcat.cpp367 if (strspn(optarg, "0123456789") != strlen(optarg)) { in main()
368 char *cp = tail_time.strptime(optarg, in main()
373 ret, optarg, log_time::default_format); in main()
381 ret, optarg, c, cp + 1); in main()
385 tail_lines = atoi(optarg); in main()
389 ret, optarg); in main()
401 char *cp = optarg; in main()
441 setPruneList = optarg; in main()
445 if (strcmp(optarg, "all") == 0) { in main()
485 bool binary = strcmp(optarg, "events") == 0; in main()
[all …]
/system/core/libion/
Dion_test.c236 len = atol(optarg); in main()
239 align = atol(optarg); in main()
243 map_flags |= strstr(optarg, "PROT_EXEC") ? PROT_EXEC : 0; in main()
244 map_flags |= strstr(optarg, "PROT_READ") ? PROT_READ: 0; in main()
245 map_flags |= strstr(optarg, "PROT_WRITE") ? PROT_WRITE: 0; in main()
246 map_flags |= strstr(optarg, "PROT_NONE") ? PROT_NONE: 0; in main()
250 prot |= strstr(optarg, "MAP_PRIVATE") ? MAP_PRIVATE : 0; in main()
251 prot |= strstr(optarg, "MAP_SHARED") ? MAP_PRIVATE : 0; in main()
254 alloc_flags = atol(optarg); in main()
257 heap_mask = atol(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 …]
Dsetkey.c46 kbe.kb_table = strtol(optarg, NULL, 0); in setkey_main()
49 kbe.kb_index = strtol(optarg, NULL, 0); in setkey_main()
52 kbe.kb_value = strtol(optarg, NULL, 0); in setkey_main()
Dhd.c32 base = strtol(optarg, NULL, 0); in hd_main()
35 count = strtol(optarg, NULL, 0); in hd_main()
38 repeat = strtol(optarg, NULL, 0); in hd_main()
Dreadtty.c81 timeout = atoi(optarg); in readtty_main()
90 accept = optarg; in readtty_main()
93 rejectstring = optarg; in readtty_main()
99 exit_string = optarg; in readtty_main()
Dnotify.c35 event_mask = strtol(optarg, NULL, 0); in notify_main()
38 event_count = atoi(optarg); in notify_main()
44 verbose = atoi(optarg); in notify_main()
47 width = atoi(optarg); in notify_main()
Dswapon.c34 if (optarg != NULL) in swapon_main()
35 prio = parse_prio(optarg); in swapon_main()
Dlog.c110 tag = optarg; in log_main()
114 priority = filterCharToPri(optarg[0]); in log_main()
Drenice.c109 sched = get_sched(optarg); in renice_main()
112 print_prio(atoi(optarg)); in renice_main()
Dnandread.c56 devname = optarg; in nandread_main()
59 filename = optarg; in nandread_main()
62 spare_size = atoi(optarg); in nandread_main()
65 start = strtoll(optarg, NULL, 0); in nandread_main()
68 len = strtoll(optarg, NULL, 0); in nandread_main()
Dioctl.c41 length = strtol(optarg, NULL, 0); in ioctl_main()
44 arg_size = strtol(optarg, NULL, 0); in ioctl_main()
/system/extras/tests/binder/benchmarks/
DbinderAddInts.cpp121 int cpu = strtoul(optarg, &chptr, 10); in main()
124 << " option of: " << optarg << endl; in main()
130 cerr << "CPU " << optarg << " not currently available" << endl; in main()
141 options.iterations = strtoul(optarg, &chptr, 10); in main()
143 cerr << "Invalid iterations specified of: " << optarg << endl; in main()
148 << optarg << endl; in main()
154 options.iterDelay = strtod(optarg, &chptr); in main()
156 cerr << "Invalid delay specified of: " << optarg << endl; in main()
/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/core/fastbootd/other/
Dgptedit.c119 new_partition = optarg; in main()
122 old_partition = optarg; in main()
125 type_guid = optarg; in main()
127 partition_guid = optarg; in main()
133 gpt_location = strtoul(optarg, NULL, 10); in main()
/system/extras/tests/bionic/libc/
Drun-test.sh31 optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`
44 ADB_CMD="$optarg"
/system/core/fastboot/
Dfastboot.c1012 base_addr = strtoul(optarg, 0, 16); in main()
1015 cmdline = optarg; in main()
1024 val = strtoul(optarg, &endptr, 0); in main()
1026 die("invalid vendor id '%s'", optarg); in main()
1031 kernel_offset = strtoul(optarg, 0, 16); in main()
1037 page_size = (unsigned)strtoul(optarg, NULL, 0); in main()
1041 product = optarg; in main()
1044 ramdisk_offset = strtoul(optarg, 0, 16); in main()
1047 tags_offset = strtoul(optarg, 0, 16); in main()
1050 serial = optarg; in main()
[all …]
/system/extras/puncture_fs/
Dpuncture_fs.c211 seed = atoi(optarg); in main()
214 hole_size = atoll(optarg); in main()
218 total_hole_size = atoll(optarg); in main()
/system/extras/verity/
Dbuild_verity_tree.cpp145 salt_size = strlen(optarg); in main()
150 memcpy(salt, optarg, salt_size); in main()
154 if(!BN_hex2bn(&bn, optarg)) { in main()
174 calculate_size = strtoul(optarg, NULL, 0); in main()
/system/extras/tests/suspend_stress/
Dsuspend_stress.cpp70 count = strtoul(optarg, NULL, 0); in main()
73 alarm_time = strtoul(optarg, NULL, 0); in main()

12