/external/ltp/testcases/kernel/io/disktest/ |
D | parse.c | 49 extern char *optarg; in fill_cld_args() 67 if (optarg == NULL) { in fill_cld_args() 72 if (!isdigit(optarg[0])) { in fill_cld_args() 77 gbl_dbg_lvl = atoi(optarg); in fill_cld_args() 90 if (optarg == NULL) { in fill_cld_args() 95 if (!isdigit(optarg[0])) { in fill_cld_args() 100 args->seed = (unsigned int)strtol(optarg, NULL, 0); in fill_cld_args() 103 if (optarg == NULL) { in fill_cld_args() 108 if (strchr(optarg, 'g')) { in fill_cld_args() 111 if (strchr(optarg, 'c')) { in fill_cld_args() [all …]
|
/external/vboot_reference/cgpt/ |
D | cmd_add.c | 53 params.drive_size = strtoull(optarg, &e, 0); in cmd_add() 54 if (!*optarg || (e && *e)) in cmd_add() 56 Error("invalid argument to -%c: \"%s\"\n", c, optarg); in cmd_add() 61 params.partition = (uint32_t)strtoul(optarg, &e, 0); in cmd_add() 62 if (!*optarg || (e && *e)) in cmd_add() 64 Error("invalid argument to -%c: \"%s\"\n", c, optarg); in cmd_add() 70 params.begin = strtoull(optarg, &e, 0); in cmd_add() 71 if (!*optarg || (e && *e)) in cmd_add() 73 Error("invalid argument to -%c: \"%s\"\n", c, optarg); in cmd_add() 79 params.size = strtoull(optarg, &e, 0); in cmd_add() [all …]
|
D | cmd_find.c | 82 params.drive_size = strtoull(optarg, &e, 0); in cmd_find() 83 if (!*optarg || (e && *e)) in cmd_find() 85 Error("invalid argument to -%c: \"%s\"\n", c, optarg); in cmd_find() 100 params.label = optarg; in cmd_find() 104 if (CGPT_OK != SupportedType(optarg, ¶ms.type_guid) && in cmd_find() 105 CGPT_OK != StrToGuid(optarg, ¶ms.type_guid)) { in cmd_find() 106 Error("invalid argument to -%c: %s\n", c, optarg); in cmd_find() 112 if (CGPT_OK != StrToGuid(optarg, ¶ms.unique_guid)) { in cmd_find() 113 Error("invalid argument to -%c: %s\n", c, optarg); in cmd_find() 118 params.matchbuf = ReadFile(optarg, ¶ms.matchlen); in cmd_find() [all …]
|
/external/libxcam/tests/ |
D | test-device-manager.cpp | 396 XCAM_ASSERT (optarg); in main() 397 if (!strcmp (optarg, "simple")) in main() 400 else if (!strcmp (optarg, "aiq")) in main() 403 else if (!strcmp (optarg, "dynamic")) in main() 405 else if (!strcmp (optarg, "hybrid")) in main() 417 XCAM_ASSERT (optarg); in main() 418 if (!strcmp (optarg, "dma")) in main() 420 else if (!strcmp (optarg, "mmap")) in main() 431 XCAM_ASSERT (optarg); in main() 432 interval_frames = atoi(optarg); in main() [all …]
|
D | test-pipe-manager.cpp | 243 XCAM_ASSERT (optarg); in main() 244 CHECK_EXP ((strlen (optarg) == 4), "invalid pixel format\n"); in main() 245 pixel_format = v4l2_fourcc ((unsigned) optarg[0], in main() 246 (unsigned) optarg[1], in main() 247 (unsigned) optarg[2], in main() 248 (unsigned) optarg[3]); in main() 252 XCAM_ASSERT (optarg); in main() 253 image_width = atoi (optarg); in main() 257 XCAM_ASSERT (optarg); in main() 258 image_height = atoi (optarg); in main() [all …]
|
D | test-cl-image.cpp | 187 input_file = optarg; in main() 190 output_file = optarg; in main() 193 refer_file = optarg; in main() 197 if (!strcasecmp (optarg, "nv12")) in main() 199 else if (!strcasecmp (optarg, "ba10")) in main() 201 else if (! strcasecmp (optarg, "rgba")) in main() 203 else if (! strcasecmp (optarg, "rgba64")) in main() 205 else if (!strcasecmp (optarg, "ba12")) in main() 212 width = atoi (optarg); in main() 216 height = atoi (optarg); in main() [all …]
|
/external/libnl/src/ |
D | nf-exp-add.c | 146 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main() 147 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 148 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 149 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 150 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 151 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 152 case ARG_MASTER_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 153 case ARG_MASTER_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 154 case ARG_MASTER_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 155 case ARG_MASTER_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() [all …]
|
D | nf-exp-delete.c | 130 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main() 131 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 132 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 133 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 134 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 135 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 136 case ARG_MASTER_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 137 case ARG_MASTER_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 138 case ARG_MASTER_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 139 case ARG_MASTER_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() [all …]
|
D | nf-ct-list.c | 107 case 'f': params.dp_type = nl_cli_parse_dumptype(optarg); break; in main() 110 case 'i': nl_cli_ct_parse_id(ct, optarg); break; in main() 111 case 'p': nl_cli_ct_parse_protocol(ct, optarg); break; in main() 112 case ARG_TCP_STATE: nl_cli_ct_parse_tcp_state(ct, optarg); break; in main() 113 case ARG_ORIG_SRC: nl_cli_ct_parse_src(ct, 0, optarg); break; in main() 114 case ARG_ORIG_SPORT: nl_cli_ct_parse_src_port(ct, 0, optarg); break; in main() 115 case ARG_ORIG_DST: nl_cli_ct_parse_dst(ct, 0, optarg); break; in main() 116 case ARG_ORIG_DPORT: nl_cli_ct_parse_dst_port(ct, 0, optarg); break; in main() 117 case ARG_REPLY_SRC: nl_cli_ct_parse_src(ct, 1, optarg); break; in main() 118 case ARG_REPLY_SPORT: nl_cli_ct_parse_src_port(ct, 1, optarg); break; in main() [all …]
|
D | nf-exp-list.c | 109 case 'f': params.dp_type = nl_cli_parse_dumptype(optarg); break; in main() 112 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main() 113 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 114 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 115 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 116 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 117 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main() 118 case ARG_MASTER_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 119 case ARG_MASTER_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() 120 case ARG_MASTER_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_MASTER, optarg); break; in main() [all …]
|
D | nf-ct-add.c | 108 case 'p': nl_cli_ct_parse_protocol(ct, optarg); break; in main() 109 case ARG_ORIG_SRC: nl_cli_ct_parse_src(ct, 0, optarg); break; in main() 110 case ARG_ORIG_SPORT: nl_cli_ct_parse_src_port(ct, 0, optarg); break; in main() 111 case ARG_ORIG_DST: nl_cli_ct_parse_dst(ct, 0, optarg); break; in main() 112 case ARG_ORIG_DPORT: nl_cli_ct_parse_dst_port(ct, 0, optarg); break; in main() 113 case ARG_REPLY_SRC: nl_cli_ct_parse_src(ct, 1, optarg); break; in main() 114 case ARG_REPLY_SPORT: nl_cli_ct_parse_src_port(ct, 1, optarg); break; in main() 115 case ARG_REPLY_DST: nl_cli_ct_parse_dst(ct, 1, optarg); break; in main() 116 case ARG_REPLY_DPORT: nl_cli_ct_parse_dst_port(ct, 1, optarg); break; in main() 117 case 'F': nl_cli_ct_parse_family(ct, optarg); break; in main() [all …]
|
D | nl-route-list.c | 105 case 'f': params.dp_type = nl_cli_parse_dumptype(optarg); break; in main() 108 case 'd': nl_cli_route_parse_dst(route, optarg); break; in main() 109 case 'n': nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main() 110 case 't': nl_cli_route_parse_table(route, optarg); break; in main() 111 case ARG_FAMILY: nl_cli_route_parse_family(route, optarg); break; in main() 112 case ARG_SRC: nl_cli_route_parse_src(route, optarg); break; in main() 113 case ARG_IIF: nl_cli_route_parse_iif(route, optarg, link_cache); break; in main() 114 case ARG_PREF_SRC: nl_cli_route_parse_pref_src(route, optarg); break; in main() 115 case ARG_METRICS: nl_cli_route_parse_metric(route, optarg); break; in main() 116 case ARG_PRIORITY: nl_cli_route_parse_prio(route, optarg); break; in main() [all …]
|
D | nl-route-add.c | 108 case 'd': nl_cli_route_parse_dst(route, optarg); break; in main() 109 case 'n': nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main() 110 case 't': nl_cli_route_parse_table(route, optarg); break; in main() 111 case ARG_FAMILY: nl_cli_route_parse_family(route, optarg); break; in main() 112 case ARG_SRC: nl_cli_route_parse_src(route, optarg); break; in main() 113 case ARG_IIF: nl_cli_route_parse_iif(route, optarg, link_cache); break; in main() 114 case ARG_PREF_SRC: nl_cli_route_parse_pref_src(route, optarg); break; in main() 115 case ARG_METRICS: nl_cli_route_parse_metric(route, optarg); break; in main() 116 case ARG_PRIORITY: nl_cli_route_parse_prio(route, optarg); break; in main() 117 case ARG_SCOPE: nl_cli_route_parse_scope(route, optarg); break; in main() [all …]
|
D | nl-route-delete.c | 141 case 'd': nf++; nl_cli_route_parse_dst(route, optarg); break; in main() 142 case 'n': nf++; nl_cli_route_parse_nexthop(route, optarg, link_cache); break; in main() 143 case 't': nf++; nl_cli_route_parse_table(route, optarg); break; in main() 144 case ARG_FAMILY: nf++; nl_cli_route_parse_family(route, optarg); break; in main() 145 case ARG_SRC: nf++; nl_cli_route_parse_src(route, optarg); break; in main() 146 case ARG_IIF: nf++; nl_cli_route_parse_iif(route, optarg, link_cache); break; in main() 147 case ARG_PREF_SRC: nf++; nl_cli_route_parse_pref_src(route, optarg); break; in main() 148 case ARG_METRICS: nf++; nl_cli_route_parse_metric(route, optarg); break; in main() 149 case ARG_PRIORITY: nf++; nl_cli_route_parse_prio(route, optarg); break; in main() 150 case ARG_SCOPE: nf++; nl_cli_route_parse_scope(route, optarg); break; in main() [all …]
|
/external/newfs_msdos/ |
D | newfs_msdos.c | 90 o.offset = argtooff(optarg, "offset"); in main() 99 o.bootstrap = optarg; in main() 102 o.create_size = argtooff(optarg, "create size"); in main() 105 if (strcmp(optarg, "12") && in main() 106 strcmp(optarg, "16") && in main() 107 strcmp(optarg, "32")) in main() 108 errx(1, "%s: bad FAT type", optarg); in main() 109 o.fat_type = atoi(optarg); in main() 112 o.volume_id = argto4(optarg, 0, "volume ID"); in main() 116 o.volume_label = optarg; in main() [all …]
|
/external/f2fs-tools/fsck/ |
D | main.c | 127 static int is_digits(char *optarg) in is_digits() argument 131 for (i = 0; i < strlen(optarg); i++) in is_digits() 132 if (!isdigit(optarg[i])) in is_digits() 134 return i == strlen(optarg); in is_digits() 208 if (!strcmp(optarg, "android")) in f2fs_parse_options() 212 if (parse_feature(feature_table, optarg)) in f2fs_parse_options() 222 if (optarg[0] == '-' || !is_digits(optarg) || in f2fs_parse_options() 230 c.preen_mode = atoi(optarg); in f2fs_parse_options() 242 if (optarg[0] == '-') { in f2fs_parse_options() 245 } else if (!is_digits(optarg)) { in f2fs_parse_options() [all …]
|
/external/adhd/cras/src/server/ |
D | cras.c | 62 log_mask = atoi(optarg); in main() 66 device_config_dir = optarg; in main() 70 dsp_config = optarg; in main() 74 while ((optarg != NULL) && (*optarg != 0)) { in main() 75 if (strncmp(optarg, "hfp", 3) == 0) { in main() 78 if (strncmp(optarg, "hsp", 3) == 0) { in main() 81 if (strncmp(optarg, "a2dp", 4) == 0) { in main() 84 optarg = strchr(optarg, ','); in main() 85 if (optarg != NULL) { in main() 86 optarg++; in main() [all …]
|
/external/blktrace/btt/ |
D | args.c | 303 bno_dump_name = optarg; in handle_args() 306 sscanf(optarg, "%lf", &range_delta); in handle_args() 309 devices = optarg; in handle_args() 312 exes = optarg; in handle_args() 318 input_name = optarg; in handle_args() 321 d2c_name = optarg; in handle_args() 324 plat_freq = atof(optarg); in handle_args() 327 iostat_name = strdup(optarg); in handle_args() 330 sps_name = optarg; in handle_args() 333 if (dev_map_read(optarg)) in handle_args() [all …]
|
/external/honggfuzz/ |
D | cmdline.c | 162 rlim_t cmdlineParseRLimit(int res, const char* optarg, unsigned long mul) { in cmdlineParseRLimit() argument 167 if (strcasecmp(optarg, "max") == 0) { in cmdlineParseRLimit() 170 if (strcasecmp(optarg, "def") == 0) { in cmdlineParseRLimit() 173 if (util_isANumber(optarg) == false) { in cmdlineParseRLimit() 174 LOG_F("RLIMIT %d needs a numeric or 'max'/'def' value ('%s' provided)", res, optarg); in cmdlineParseRLimit() 176 rlim_t val = strtoul(optarg, NULL, 0) * mul; in cmdlineParseRLimit() 178 PLOG_F("strtoul('%s', 0)", optarg); in cmdlineParseRLimit() 485 hfuzz->io.inputDir = optarg; in cmdlineParse() 487 hfuzz->io.covDirAll = optarg; in cmdlineParse() 509 logfile = optarg; in cmdlineParse() [all …]
|
/external/libnl/lib/cli/qdisc/ |
D | htb.c | 58 rtnl_htb_set_rate2quantum(qdisc, nl_cli_parse_u32(optarg)); in htb_parse_qdisc_argv() 62 rtnl_htb_set_defcls(qdisc, nl_cli_parse_u32(optarg)); in htb_parse_qdisc_argv() 123 rate = nl_size2int(optarg); in htb_parse_class_argv() 126 "\"%s\": Invalid format.", optarg); in htb_parse_class_argv() 133 rate = nl_size2int(optarg); in htb_parse_class_argv() 136 "\"%s\": Invalid format.", optarg); in htb_parse_class_argv() 143 rtnl_htb_set_prio(class, nl_cli_parse_u32(optarg)); in htb_parse_class_argv() 147 rate = nl_size2int(optarg); in htb_parse_class_argv() 150 "\"%s\": Invalid format.", optarg); in htb_parse_class_argv() 157 rate = nl_size2int(optarg); in htb_parse_class_argv() [all …]
|
/external/vboot_reference/futility/ |
D | cmd_vbutil_kernel.c | 286 filename = optarg; in do_vbutil_kernel() 291 if ((!strncasecmp(optarg, "x86", 3)) || in do_vbutil_kernel() 292 (!strcasecmp(optarg, "amd64"))) in do_vbutil_kernel() 294 else if ((!strcasecmp(optarg, "arm")) || in do_vbutil_kernel() 295 (!strcasecmp(optarg, "aarch64"))) in do_vbutil_kernel() 297 else if (!strcasecmp(optarg, "mips")) in do_vbutil_kernel() 302 optarg); in do_vbutil_kernel() 308 oldfile = optarg; in do_vbutil_kernel() 312 kernel_body_load_address = strtoul(optarg, &e, 0); in do_vbutil_kernel() 313 if (!*optarg || (e && *e)) { in do_vbutil_kernel() [all …]
|
/external/f2fs-tools/mkfs/ |
D | f2fs_format_main.c | 119 c.heap = atoi(optarg); in f2fs_parse_options() 127 if (strlen(optarg) > MAX_PATH_LEN) { in f2fs_parse_options() 132 c.devices[c.ndevs++].path = strdup(optarg); in f2fs_parse_options() 135 c.dbg_lv = atoi(optarg); in f2fs_parse_options() 138 c.extension_list[0] = strdup(optarg); in f2fs_parse_options() 141 c.extension_list[1] = strdup(optarg); in f2fs_parse_options() 144 if (!strcmp(optarg, "android")) in f2fs_parse_options() 151 if (strlen(optarg) > 512) { in f2fs_parse_options() 156 c.vol_label = optarg; in f2fs_parse_options() 162 c.overprovision = atof(optarg); in f2fs_parse_options() [all …]
|
/external/dtc/ |
D | dtc.c | 191 inform = optarg; in main() 194 outform = optarg; in main() 197 outname = optarg; in main() 200 outversion = strtol(optarg, NULL, 0); in main() 203 depname = optarg; in main() 206 reservenum = strtol(optarg, NULL, 0); in main() 209 minsize = strtol(optarg, NULL, 0); in main() 212 padsize = strtol(optarg, NULL, 0); in main() 215 alignsize = strtol(optarg, NULL, 0); in main() 227 cmdline_boot_cpuid = strtoll(optarg, NULL, 0); in main() [all …]
|
/external/u-boot/scripts/dtc/ |
D | dtc.c | 189 inform = optarg; in main() 192 outform = optarg; in main() 195 outname = optarg; in main() 198 outversion = strtol(optarg, NULL, 0); in main() 201 depname = optarg; in main() 204 reservenum = strtol(optarg, NULL, 0); in main() 207 minsize = strtol(optarg, NULL, 0); in main() 210 padsize = strtol(optarg, NULL, 0); in main() 213 alignsize = strtol(optarg, NULL, 0); in main() 225 cmdline_boot_cpuid = strtoll(optarg, NULL, 0); in main() [all …]
|
/external/minijail/ |
D | minijail0_cli.c | 616 set_user(j, optarg, &uid, &gid); in parse_args() 625 set_group(j, optarg, &gid); in parse_args() 649 filter_path = optarg; in parse_args() 659 add_binding(j, optarg); in parse_args() 663 skip_securebits(j, optarg); in parse_args() 667 use_caps(j, optarg); in parse_args() 670 use_chroot(j, optarg, &chroot, pivot_root); in parse_args() 673 add_mount(j, optarg); in parse_args() 676 if (optarg) in parse_args() 677 set_remount_mode(j, optarg); in parse_args() [all …]
|