/system/core/reboot/ |
H A D | reboot.c | 30 char *optarg = ""; local 58 optarg = argv[optind]; 60 prop_len = snprintf(property_val, sizeof(property_val), "%s,%s", cmd, optarg); 62 fprintf(stderr, "reboot command too long: %s\n", optarg);
|
/system/extras/ext4_utils/ |
H A D | make_ext4fs_main.c | 86 info.len = parse_num(optarg); 89 info.journal_blocks = parse_num(optarg); 92 info.block_size = parse_num(optarg); 95 info.blocks_per_group = parse_num(optarg); 98 info.inodes = parse_num(optarg); 101 info.inode_size = parse_num(optarg); 104 info.label = optarg; 111 mountpoint = optarg; 138 seopts[0].value = optarg; 141 perror(optarg); [all...] |
H A D | ext4fixup_main.c | 48 sscanf(optarg, "%d,%d,%d", &stop_phase, &stop_loc, &stop_count);
|
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
H A D | grep.c | 410 if (optarg == NULL) { 419 l = strtoull(optarg, &ep, 10); 444 if (strcasecmp(optarg, "skip") == 0) 446 else if (strcasecmp(optarg, "read") == 0) 452 if (strcasecmp("recurse", optarg) == 0) { 455 } else if (strcasecmp("skip", optarg) == 0) 457 else if (strcasecmp("read", optarg) == 0) 466 add_pattern(optarg, strlen(optarg)); 473 read_patterns(optarg); [all...] |
/system/core/toolbox/ |
H A D | swapon.c | 34 if (optarg != NULL) 35 prio = parse_prio(optarg);
|
H A D | setkey.c | 46 kbe.kb_table = strtol(optarg, NULL, 0); 49 kbe.kb_index = strtol(optarg, NULL, 0); 52 kbe.kb_value = strtol(optarg, NULL, 0);
|
H A D | hd.c | 32 base = strtol(optarg, NULL, 0); 35 count = strtol(optarg, NULL, 0); 38 repeat = strtol(optarg, NULL, 0);
|
H A D | log.c | 110 tag = optarg; 114 priority = filterCharToPri(optarg[0]);
|
H A D | notify.c | 35 event_mask = strtol(optarg, NULL, 0); 38 event_count = atoi(optarg); 44 verbose = atoi(optarg); 47 width = atoi(optarg);
|
H A D | readtty.c | 81 timeout = atoi(optarg); 90 accept = optarg; 93 rejectstring = optarg; 99 exit_string = optarg;
|
H A D | renice.c | 109 sched = get_sched(optarg); 112 print_prio(atoi(optarg));
|
H A D | newfs_msdos.c | 271 opt_ofs = argtooff(optarg, "offset"); 280 opt_B = optarg; 283 opt_create = argtooff(optarg, "create size"); 286 if (strcmp(optarg, "12") && strcmp(optarg, "16") && strcmp(optarg, "32")) 287 errx(1, "%s: bad FAT type", optarg); 288 opt_F = atoi(optarg); 291 opt_I = argto4(optarg, 0, "volume ID"); 295 if (!oklabel(optarg)) [all...] |
H A D | ioctl.c | 41 length = strtol(optarg, NULL, 0); 44 arg_size = strtol(optarg, NULL, 0);
|
H A D | rotatefb.c | 28 fbdev = optarg;
|
H A D | nandread.c | 56 devname = optarg; 59 filename = optarg; 62 spare_size = atoi(optarg); 65 start = strtoll(optarg, NULL, 0); 68 len = strtoll(optarg, NULL, 0);
|
H A D | cmp.c | 36 limit = atoi(optarg);
|
/system/extras/tests/wifi/stress/ |
H A D | wifiLoadScanAssoc.c | 143 delayMin = strtod(optarg, &chptr); 146 "of: %s", optarg); 152 delayMax = strtod(optarg, &chptr); 155 "of: %s", optarg); 161 duration = strtod(optarg, &chptr); 164 optarg); 180 startPass = strtoul(optarg, &chptr, 10); 183 "of: %s", optarg); 199 endPass = strtoul(optarg, &chptr, 10); 202 "of: %s", optarg); [all...] |
/system/core/libion/ |
H A D | ion_test.c | 236 len = atol(optarg); 239 align = atol(optarg); 243 map_flags |= strstr(optarg, "PROT_EXEC") ? PROT_EXEC : 0; 244 map_flags |= strstr(optarg, "PROT_READ") ? PROT_READ: 0; 245 map_flags |= strstr(optarg, "PROT_WRITE") ? PROT_WRITE: 0; 246 map_flags |= strstr(optarg, "PROT_NONE") ? PROT_NONE: 0; 250 prot |= strstr(optarg, "MAP_PRIVATE") ? MAP_PRIVATE : 0; 251 prot |= strstr(optarg, "MAP_SHARED") ? MAP_PRIVATE : 0; 254 alloc_flags = atol(optarg); 257 heap_mask = atol(optarg); [all...] |
/system/core/logcat/ |
H A D | logcat.cpp | 367 if (strspn(optarg, "0123456789") != strlen(optarg)) { 368 char *cp = tail_time.strptime(optarg, 373 ret, optarg, log_time::default_format); 381 ret, optarg, c, cp + 1); 385 tail_lines = atoi(optarg); 389 ret, optarg); 401 char *cp = optarg; 441 setPruneList = optarg; 445 if (strcmp(optarg, "al [all...] |
/system/extras/tests/binder/benchmarks/ |
H A D | binderAddInts.cpp | 121 int cpu = strtoul(optarg, &chptr, 10); 124 << " option of: " << optarg << endl; 130 cerr << "CPU " << optarg << " not currently available" << endl; 141 options.iterations = strtoul(optarg, &chptr, 10); 143 cerr << "Invalid iterations specified of: " << optarg << endl; 148 << optarg << endl; 154 options.iterDelay = strtod(optarg, &chptr); 156 cerr << "Invalid delay specified of: " << optarg << endl;
|
/system/extras/tests/sdcard/ |
H A D | sdcard_perf_test.cpp | 84 extern char *optarg; 223 testCase->setDataSize(atoi(optarg) * 1024); 226 testCase->setChunkSize(atoi(optarg) * 1024); 229 testCase->setTreeDepth(atoi(optarg)); 232 testCase->setIter(atoi(optarg)); 236 testCase->setNproc(atoi(optarg)); 240 testCase->setTypeFromName(optarg); 251 if (strcmp("sync", optarg) == 0) { 253 } else if (strcmp("fsync", optarg) == 0) { 268 testCase->setFadvise(optarg); [all...] |
/system/extras/tests/bionic/libc/ |
H A D | run-test.sh | 31 optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'` 44 ADB_CMD="$optarg"
|
/system/core/fastbootd/other/ |
H A D | gptedit.c | 119 new_partition = optarg; 122 old_partition = optarg; 125 type_guid = optarg; 127 partition_guid = optarg; 133 gpt_location = strtoul(optarg, NULL, 10);
|
/system/extras/f2fs_utils/ |
H A D | make_f2fs_main.c | 49 len = atoll(optarg);
|
/system/extras/tests/suspend_stress/ |
H A D | suspend_stress.cpp | 70 count = strtoul(optarg, NULL, 0); 73 alarm_time = strtoul(optarg, NULL, 0);
|