Home
last modified time | relevance | path

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

123456789

/external/iptables/extensions/
Dlibip6t_owner.c65 check_inverse(optarg, &invert, &optind, 0); in parse()
67 if ((pwd = getpwnam(optarg))) in parse()
70 ownerinfo->uid = strtoul(optarg, &end, 0); in parse()
71 if (*end != '\0' || end == optarg) in parse()
72 exit_error(PARAMETER_PROBLEM, "Bad OWNER UID value `%s'", optarg); in parse()
81 check_inverse(optarg, &invert, &optind, 0); in parse()
82 if ((grp = getgrnam(optarg))) in parse()
85 ownerinfo->gid = strtoul(optarg, &end, 0); in parse()
86 if (*end != '\0' || end == optarg) in parse()
87 exit_error(PARAMETER_PROBLEM, "Bad OWNER GID value `%s'", optarg); in parse()
[all …]
Dlibipt_owner.c67 check_inverse(optarg, &invert, &optind, 0); in parse()
68 if ((pwd = getpwnam(optarg))) in parse()
71 ownerinfo->uid = strtoul(optarg, &end, 0); in parse()
72 if (*end != '\0' || end == optarg) in parse()
73 exit_error(PARAMETER_PROBLEM, "Bad OWNER UID value `%s'", optarg); in parse()
82 check_inverse(optarg, &invert, &optind, 0); in parse()
83 if ((grp = getgrnam(optarg))) in parse()
86 ownerinfo->gid = strtoul(optarg, &end, 0); in parse()
87 if (*end != '\0' || end == optarg) in parse()
88 exit_error(PARAMETER_PROBLEM, "Bad OWNER GID value `%s'", optarg); in parse()
[all …]
Dlibipt_ULOG.c86 if (check_inverse(optarg, &invert, NULL, 0)) in parse()
89 group_d = atoi(optarg); in parse()
104 if (check_inverse(optarg, &invert, NULL, 0)) in parse()
108 if (strlen(optarg) > sizeof(loginfo->prefix) - 1) in parse()
113 if (strlen(optarg) == 0) in parse()
117 if (strlen(optarg) != strlen(strtok(optarg, "\n"))) in parse()
121 strcpy(loginfo->prefix, optarg); in parse()
128 if (atoi(optarg) < 0) in parse()
132 loginfo->copy_range = (unsigned long long)atoll(optarg); in parse()
134 loginfo->copy_range = atoi(optarg); in parse()
[all …]
Dlibipt_hashlimit.c111 static int parse_mode(struct ipt_hashlimit_info *r, char *optarg) in parse_mode() argument
114 char *arg = strdup(optarg); in parse_mode()
165 if (!parse_rate(optarg, &r->cfg.avg)) in parse()
167 "bad rate `%s'", optarg); in parse()
173 if (string_to_number(optarg, 0, 10000, &num) == -1) in parse()
175 "bad --hashlimit-burst `%s'", optarg); in parse()
181 if (string_to_number(optarg, 0, 0xffffffff, &num) == -1) in parse()
183 "bad --hashlimit-htable-size: `%s'", optarg); in parse()
189 if (string_to_number(optarg, 0, 0xffffffff, &num) == -1) in parse()
191 "bad --hashlimit-htable-max: `%s'", optarg); in parse()
[all …]
Dlibip6t_hashlimit.c111 static int parse_mode(struct xt_hashlimit_info *r, char *optarg) in parse_mode() argument
114 char *arg = strdup(optarg); in parse_mode()
165 if (!parse_rate(optarg, &r->cfg.avg)) in parse()
167 "bad rate `%s'", optarg); in parse()
173 if (string_to_number(optarg, 0, 10000, &num) == -1) in parse()
175 "bad --hashlimit-burst `%s'", optarg); in parse()
181 if (string_to_number(optarg, 0, 0xffffffff, &num) == -1) in parse()
183 "bad --hashlimit-htable-size: `%s'", optarg); in parse()
189 if (string_to_number(optarg, 0, 0xffffffff, &num) == -1) in parse()
191 "bad --hashlimit-htable-max: `%s'", optarg); in parse()
[all …]
Dlibipt_REJECT.c112 if (check_inverse(optarg, &invert, NULL, 0)) in parse()
116 if ((strncasecmp(reject_table[i].name, optarg, strlen(optarg)) == 0) in parse()
117 || (strncasecmp(reject_table[i].alias, optarg, strlen(optarg)) == 0)) { in parse()
123 if (strncasecmp("echo-reply", optarg, strlen(optarg)) == 0 in parse()
124 || strncasecmp("echoreply", optarg, strlen(optarg)) == 0) in parse()
127 exit_error(PARAMETER_PROBLEM, "unknown reject type `%s'",optarg); in parse()
Dlibipt_CLUSTERIP.c107 if (!strcmp(optarg, "sourceip")) in parse()
109 else if (!strcmp(optarg, "sourceip-sourceport")) in parse()
111 else if (!strcmp(optarg, "sourceip-sourceport-destport")) in parse()
115 optarg); in parse()
123 parse_mac(optarg, (char *)cipinfo->clustermac); in parse()
133 if (string_to_number(optarg, 1, CLUSTERIP_MAX_NODES, &num) < 0) in parse()
134 exit_error(PARAMETER_PROBLEM, "Unable to parse `%s'\n", optarg); in parse()
143 if (string_to_number(optarg, 1, CLUSTERIP_MAX_NODES, &num) < 0) in parse()
144 exit_error(PARAMETER_PROBLEM, "Unable to parse `%s'\n", optarg); in parse()
154 if (string_to_number(optarg, 0, UINT_MAX, &num) < 0) in parse()
[all …]
Dlibipt_NFLOG.c54 if (check_inverse(optarg, &invert, NULL, 0)) in parse()
58 n = atoi(optarg); in parse()
68 if (check_inverse(optarg, &invert, NULL, 0)) in parse()
72 n = strlen(optarg); in parse()
80 if (n != strlen(strtok(optarg, "\n"))) in parse()
83 strcpy(info->prefix, optarg); in parse()
89 n = atoi(optarg); in parse()
99 n = atoi(optarg); in parse()
Dlibip6t_NFLOG.c54 if (check_inverse(optarg, &invert, NULL, 0)) in parse()
58 n = atoi(optarg); in parse()
68 if (check_inverse(optarg, &invert, NULL, 0)) in parse()
72 n = strlen(optarg); in parse()
80 if (n != strlen(strtok(optarg, "\n"))) in parse()
83 strcpy(info->prefix, optarg); in parse()
89 n = atoi(optarg); in parse()
99 n = atoi(optarg); in parse()
Dlibipt_connbytes.c61 if (check_inverse(optarg, &invert, &optind, 0)) in parse()
73 if (!strcmp(optarg, "original")) in parse()
75 else if (!strcmp(optarg, "reply")) in parse()
77 else if (!strcmp(optarg, "both")) in parse()
81 "Unknown --connbytes-dir `%s'", optarg); in parse()
86 if (!strcmp(optarg, "packets")) in parse()
88 else if (!strcmp(optarg, "bytes")) in parse()
90 else if (!strcmp(optarg, "avgpkt")) in parse()
94 "Unknown --connbytes-mode `%s'", optarg); in parse()
Dlibipt_statistic.c53 if (!strcmp(optarg, "random")) in parse()
55 else if (!strcmp(optarg, "nth")) in parse()
58 exit_error(PARAMETER_PROBLEM, "Bad mode `%s'", optarg); in parse()
64 prob = atof(optarg); in parse()
74 if (string_to_number(optarg, 0, 0xFFFFFFFF, in parse()
77 "cannot parse --every `%s'", optarg); in parse()
86 if (string_to_number(optarg, 0, 0xFFFFFFFF, in parse()
89 "cannot parse --packet `%s'", optarg); in parse()
Dlibip6t_REJECT.c98 if (check_inverse(optarg, &invert, NULL, 0)) in parse()
102 if ((strncasecmp(reject_table[i].name, optarg, strlen(optarg)) == 0) in parse()
103 || (strncasecmp(reject_table[i].alias, optarg, strlen(optarg)) == 0)) { in parse()
108 exit_error(PARAMETER_PROBLEM, "unknown reject type `%s'",optarg); in parse()
Dlibip6t_CONNMARK.c82 markinfo->mark = strtoul(optarg, &end, 0); in parse()
86 if (*end != '\0' || end == optarg) in parse()
87 exit_error(PARAMETER_PROBLEM, "Bad MARK value `%s'", optarg); in parse()
111 markinfo->mask = strtoul(optarg, &end, 0); in parse()
113 if (*end != '\0' || end == optarg) in parse()
114 exit_error(PARAMETER_PROBLEM, "Bad MASK value `%s'", optarg); in parse()
Dlibipt_CONNMARK.c82 markinfo->mark = strtoul(optarg, &end, 0); in parse()
86 if (*end != '\0' || end == optarg) in parse()
87 exit_error(PARAMETER_PROBLEM, "Bad MARK value `%s'", optarg); in parse()
111 markinfo->mask = strtoul(optarg, &end, 0); in parse()
113 if (*end != '\0' || end == optarg) in parse()
114 exit_error(PARAMETER_PROBLEM, "Bad MASK value `%s'", optarg); in parse()
/external/blktrace/btt/
Dargs.c297 bno_dump_name = optarg; in handle_args()
300 sscanf(optarg, "%lf", &range_delta); in handle_args()
303 devices = optarg; in handle_args()
306 exes = optarg; in handle_args()
312 input_name = optarg; in handle_args()
315 d2c_name = optarg; in handle_args()
318 plat_freq = atof(optarg); in handle_args()
321 iostat_name = strdup(optarg); in handle_args()
324 sps_name = optarg; in handle_args()
327 if (dev_map_read(optarg)) in handle_args()
[all …]
/external/netperf/
Dnetsh.c467 extern char *optarg; /* pointer to option string */ in scan_cmd_line()
495 break_args(optarg,arg1,arg2); in scan_cmd_line()
504 break_args(optarg,arg1,arg2); in scan_cmd_line()
556 libfmt = *optarg; in scan_cmd_line()
560 strcpy(fill_file,optarg); in scan_cmd_line()
564 break_args(optarg,arg1,arg2); in scan_cmd_line()
583 break_args(optarg,arg1,arg2); in scan_cmd_line()
605 break_args(optarg,arg1,arg2); in scan_cmd_line()
619 break_args(optarg,arg1,arg2); in scan_cmd_line()
631 shell_num_cpus = atoi(optarg); in scan_cmd_line()
[all …]
/external/e2fsprogs/misc/
Dblkid.c19 extern char *optarg;
143 if (optarg && !*optarg) in main()
146 read = optarg; in main()
157 if (!strcmp(optarg, "value")) in main()
159 else if (!strcmp(optarg, "device")) in main()
161 else if (!strcmp(optarg, "full")) in main()
164 fprintf(stderr, "Invalid output format %s. Chose from value, device, or full\n", optarg); in main()
173 show[numtag++] = optarg; in main()
181 if (blkid_parse_tag_string(optarg, in main()
192 if (optarg && !*optarg) in main()
[all …]
Dtune2fs.c35 extern char *optarg;
560 max_mount_count = strtol (optarg, &tmp, 0); in parse_tune2fs_options()
564 optarg); in parse_tune2fs_options()
573 mount_count = strtoul (optarg, &tmp, 0); in parse_tune2fs_options()
577 optarg); in parse_tune2fs_options()
584 if (strcmp (optarg, "continue") == 0) in parse_tune2fs_options()
586 else if (strcmp (optarg, "remount-ro") == 0) in parse_tune2fs_options()
588 else if (strcmp (optarg, "panic") == 0) in parse_tune2fs_options()
593 optarg); in parse_tune2fs_options()
600 extended_cmd = optarg; in parse_tune2fs_options()
[all …]
/external/tcpdump/
Dtcpdump.c291 extern char *optarg;
517 UserBufferSize = atoi(optarg)*1024; in main()
519 error("invalid packet buffer size %s", optarg); in main()
524 cnt = atoi(optarg); in main()
526 error("invalid packet count %s", optarg); in main()
530 Cflag = atoi(optarg) * 1000000; in main()
532 error("invalid file size %s", optarg); in main()
567 gndo->ndo_espsecret = optarg; in main()
575 infile = optarg; in main()
579 if (optarg[0] == '0' && optarg[1] == 0) in main()
[all …]
/external/bison/src/
Dgetargs.c383 if (optarg) in getargs()
384 spec_graph_file = AS_FILE_NAME (optarg); in getargs()
392 skeleton = AS_FILE_NAME (optarg); in getargs()
396 include = AS_FILE_NAME (optarg); in getargs()
402 if (optarg) in getargs()
403 spec_defines_file = AS_FILE_NAME (optarg); in getargs()
427 spec_outfile = AS_FILE_NAME (optarg); in getargs()
431 spec_file_prefix = AS_FILE_NAME (optarg); in getargs()
435 spec_name_prefix = optarg; in getargs()
439 report_argmatch (optarg); in getargs()
[all …]
/external/wpa_supplicant/
Dmain.c155 iface->bridge_ifname = optarg; in main()
161 iface->confname = optarg; in main()
164 iface->ctrl_interface = optarg; in main()
167 iface->driver = optarg; in main()
181 params.wpa_debug_file_path = optarg; in main()
185 params.ctrl_interface = optarg; in main()
192 iface->ifname = optarg; in main()
202 iface->driver_param = optarg; in main()
206 params.pid_file = os_rel2abs_path(optarg); in main()
/external/bluez/utils/dund/
Dmain.c454 dst = strdup(optarg); in main()
460 if (optarg) in main()
461 search_duration = atoi(optarg); in main()
467 dst = strdup(optarg); in main()
477 channel = atoi(optarg); in main()
481 src = strdup(optarg); in main()
509 if (optarg) in main()
510 persist = atoi(optarg); in main()
516 if (optarg) in main()
517 use_cache = atoi(optarg); in main()
[all …]
/external/qemu/distrib/sdl-1.2.12/
Dsdl-config.in21 -*=*) optarg=`echo "$1" | LC_ALL="C" sed 's/[-_a-zA-Z0-9]*=//'` ;;
22 *) optarg= ;;
27 prefix=$optarg
29 exec_prefix=$optarg
36 exec_prefix=$optarg
/external/grub/lib/
Dgetopt.c115 char *optarg = NULL; variable
523 optarg = NULL;
611 optarg = argv[optind++];
697 optarg = nameend + 1;
722 optarg = argv[optind++];
809 optarg = nextchar;
832 optarg = argv[optind++];
837 for (nextchar = nameend = optarg; *nameend && *nameend != '='; nameend++)
880 optarg = nameend + 1;
895 optarg = argv[optind++];
[all …]
/external/grub/grub/
Dmain.c168 if (! optarg) in main()
171 hold = atoi (optarg); in main()
175 strncpy (config_file, optarg, 127); /* FIXME: arbitrary */ in main()
180 install_partition = strtoul (optarg, 0, 0); in main()
189 boot_drive = strtoul (optarg, 0, 0); in main()
233 device_map_file = strdup (optarg); in main()

123456789