Searched refs:optarg (Results 1 - 25 of 828) sorted by relevance

1234567891011>>

/freebsd-current/contrib/libpcap/missing/
H A Dgetopt.h4 extern char *optarg; /* getopt(3) external variables */
/freebsd-current/usr.bin/hexdump/
H A Dhexsyntax.c78 add(optarg);
81 addfile(optarg);
84 if ((length = atoi(optarg)) < 0)
85 errx(1, "%s: bad length value", optarg);
92 if ((skip = strtoll(optarg, &p, 0)) < 0)
93 errx(1, "%s: bad skip value", optarg);
/freebsd-current/usr.sbin/bhyve/amd64/
H A Dbhyverun_machdep.c138 if (bhyve_pincpu_parse(optarg) != 0) {
140 "configuration '%s'", optarg);
144 if (bhyve_topology_parse(optarg) != 0) {
146 "'%s'", optarg);
153 if (qemu_fwcfg_parse_cmdline_arg(optarg) != 0) {
155 optarg);
159 bhyve_parse_gdb_options(optarg);
162 bhyve_parse_simple_config_file(optarg);
165 set_config_value("keyboard.layout", optarg);
168 if (strncmp(optarg, "hel
[all...]
/freebsd-current/usr.sbin/bluetooth/btpand/
H A Dbtpand.c84 if (!bt_aton(optarg, &remote_bdaddr)) {
87 if ((he = bt_gethostbyname(optarg)) == NULL)
89 optarg, hstrerror(h_errno));
98 control_path = optarg;
102 if (!bt_devaddr(optarg, &local_bdaddr)) {
105 if ((he = bt_gethostbyname(optarg)) == NULL)
107 optarg, hstrerror(h_errno));
115 if (strchr(optarg, '/') == NULL) {
116 asprintf(&ep, "/dev/%s", optarg);
119 interface_name = optarg;
[all...]
/freebsd-current/contrib/bmake/
H A Dgetopt.c51 char *optarg; /* argument associated with option */ variable
112 optarg = NULL;
119 optarg = __UNCONST(place);
125 optarg = NULL;
127 optarg = nargv[optind];
164 if (optarg)
165 printf("--%s ", optarg);
171 if (optarg)
172 printf("-%c %s ", c, optarg);
/freebsd-current/sbin/newfs_msdos/
H A Dnewfs_msdos.c85 o.offset = argtooff(optarg, "offset");
94 o.bootstrap = optarg;
97 o.create_size = argtooff(optarg, "create size");
100 if (strcmp(optarg, "12") &&
101 strcmp(optarg, "16") &&
102 strcmp(optarg, "32"))
103 errx(1, "%s: bad FAT type", optarg);
104 o.fat_type = atoi(optarg);
107 o.volume_id = argto4(optarg, 0, "volume ID");
111 o.volume_label = optarg;
[all...]
/freebsd-current/sys/contrib/rdma/krping/
H A Dgetopt.h19 char **optopt, char **optarg, unsigned long *value);
/freebsd-current/contrib/tcpdump/missing/
H A Dgetopt_long.h63 extern char *optarg; /* getopt(3) external variables */
/freebsd-current/contrib/ntp/sntp/libevent/WIN32-Code/
H A Dgetopt.h12 extern char *optarg; /* argument associated with option */
/freebsd-current/sys/tests/runtest/
H A Druntest.c66 strlcpy(kern_test.name, optarg, sizeof(kern_test.name));
70 kern_test.tot_threads_running = atoi(optarg);
73 callout_test.number_of_callouts = atoi(optarg);
76 callout_test.test_number = atoi(optarg);
/freebsd-current/contrib/libevent/WIN32-Code/
H A Dgetopt.h12 extern char *optarg; /* argument associated with option */
/freebsd-current/contrib/telnet/telnet/
H A Dmain.c170 DoBaudRate(optarg);
192 if ((tos = parsetos(optarg, "tcp")) < 0)
195 optarg,
199 ultmp = strtoul(optarg, &ep, 0);
200 if (*ep || ep == optarg || ultmp > MAXTOS)
203 optarg,
211 auth_disable_name(optarg);
228 set_escape_char(optarg);
279 (void)strncpy(dest_realm, optarg, dst_realm_sz);
298 user = optarg;
[all...]
/freebsd-current/stand/libsa/
H A Dgetopt.c37 char *optarg; /* argument associated with option */ variable
80 optarg = NULL;
86 optarg = place;
96 optarg = nargv[optind];
/freebsd-current/usr.sbin/makefs/
H A Dmakefs.c134 if (strcmp(optarg, "be") == 0 ||
135 strcmp(optarg, "4321") == 0 ||
136 strcmp(optarg, "big") == 0) {
140 } else if (strcmp(optarg, "le") == 0 ||
141 strcmp(optarg, "1234") == 0 ||
142 strcmp(optarg, "little") == 0) {
147 warnx("Invalid endian `%s'.", optarg);
153 len = strlen(optarg) - 1;
154 if (optarg[len] == '%') {
155 optarg[le
[all...]
/freebsd-current/contrib/sendmail/libsm/
H A Dt-memstat.c25 extern char *optarg;
57 l = strtol(optarg, NULL, 0);
61 sz = strtol(optarg, NULL, 0);
65 resource = strdup(optarg);
69 optarg);
75 slp = strtol(optarg, NULL, 0);
/freebsd-current/usr.bin/dtc/
H A Ddtc.cc134 string arg(optarg);
149 fprintf(stderr, "Unknown input format: %s\n", optarg);
156 string arg(optarg);
175 fprintf(stderr, "Unknown output format: %s\n", optarg);
182 outfile_name = optarg;
185 outfile = open(optarg, O_CREAT | O_TRUNC | O_WRONLY, 0666);
198 if (string(optarg) != "17")
200 fprintf(stderr, "Unknown output format version: %s\n", optarg);
210 if (string(optarg) == "-")
216 depfile = fdopen(open(optarg, O_CREA
[all...]
/freebsd-current/contrib/ofed/opensm/opensm/
H A Dmain.c719 config_file = optarg;
748 conf_template = optarg;
772 SET_STR_OPT(opt.port_prof_ignore_file, optarg);
778 SET_STR_OPT(opt.hop_weights_file, optarg);
784 SET_STR_OPT(opt.port_search_ordering_file, optarg);
793 opt.guid = cl_hton64(strtoull(optarg, NULL, 16));
804 val = strtol(optarg, NULL, 0);
817 val = strtoul(optarg, NULL, 0);
818 opt.transaction_timeout = strtoul(optarg, NULL, 0);
829 opt.max_wire_smps = strtoul(optarg, NUL
[all...]
/freebsd-current/tools/tools/netrate/tcpp/
H A Dtcpp.c117 ll = strtoll(optarg, &dummy, 10);
125 if (inet_aton(optarg, &remoteip.sin_addr) != 1)
126 err(-1, "inet_aton: %s", optarg);
135 if (inet_aton(optarg, &localipbase.sin_addr) != 1)
136 err(-1, "inet_aton: %s", optarg);
140 ll = strtoll(optarg, &dummy, 10);
147 ll = strtoll(optarg, &dummy, 10);
154 ll = strtol(optarg, &dummy, 10);
165 ll = strtoll(optarg, &dummy, 10);
172 ll = strtoll(optarg,
[all...]
/freebsd-current/sbin/newfs/
H A Dnewfs.c142 volumelabel = optarg;
161 if ((Oflag = atoi(optarg)) < 1 || Oflag > 2)
163 optarg);
169 rval = expand_number_int(optarg, &sectorsize);
171 errx(1, "%s: bad sector size", optarg);
174 disktype = optarg;
187 rval = expand_number_int(optarg, &maxcontig);
190 optarg);
193 rval = expand_number_int(optarg, &bsize);
196 optarg);
[all...]
/freebsd-current/usr.bin/nl/
H A Dnl.c142 parse_numbering(optarg, BODY);
145 clen = mbrlen(optarg, MB_CUR_MAX, NULL);
149 memcpy(delim1, optarg, delim1len = clen);
150 clen = mbrlen(optarg + delim1len,
156 memcpy(delim2, optarg + delim1len,
158 if (optarg[delim1len + clen] != '\0')
161 optarg);
166 parse_numbering(optarg, FOOTER);
169 parse_numbering(optarg, HEADER);
173 val = strtol(optarg,
[all...]
/freebsd-current/usr.bin/truncate/
H A Dtruncate.c86 rname = optarg;
89 if (*optarg == '+' || *optarg == '-') {
91 } else if (*optarg == '%' || *optarg == '/') {
95 optarg + 1 : optarg,
98 "invalid size argument `%s'", optarg);
100 sz = (*optarg == '-' || *optarg
[all...]
/freebsd-current/tools/regression/environ/
H A Denvctl.c140 blank_env(optarg);
144 switch (atoi(optarg)) {
169 value = getenv(arg == 'g' ? optarg : NULL);
174 print_rtrn_errno(putenv(optarg), eol);
182 print_rtrn_errno(setenv(NULL, optarg,
188 print_rtrn_errno(setenv(optarg, argv[optind],
199 print_rtrn_errno(unsetenv(arg == 'u' ? optarg : NULL),
/freebsd-current/contrib/bsddialog/utility/
H A Dutil_cli.c394 opt->backtitle = optarg;
399 conf->x = (int)strtol(optarg, NULL, 10);
405 conf->y = (int)strtol(optarg, NULL, 10);
416 (int)strtol(optarg, NULL, 10));
419 conf->button.cancel_label = optarg;
430 (u_int)strtoul(optarg, NULL, 10);
436 if (strcasecmp(optarg, "d/m/y") == 0)
438 else if (strcasecmp(optarg, "m/d/y") == 0)
440 else if (strcasecmp(optarg, "y/m/d") == 0)
444 "date format \"%s\" is invalid", optarg);
[all...]
/freebsd-current/usr.sbin/fifolog/fifolog_reader/
H A Dfifolog_reader.c106 opt_B = strtoul(optarg, NULL, 0);
109 opt_B = get_date(optarg);
111 errx(1, "Didn't understand \"%s\"", optarg);
114 opt_E = strtoul(optarg, NULL, 0);
117 opt_E = get_date(optarg);
119 errx(1, "Didn't understand \"%s\"", optarg);
122 opt_o = optarg;
125 opt_R = optarg;
131 opt_T = optarg;
/freebsd-current/lib/libc/stdlib/
H A Dgetopt.c47 char *optarg; /* argument associated with option */ variable
102 optarg = NULL;
109 optarg = place;
115 optarg = NULL;
117 optarg = nargv[optind];

Completed in 303 milliseconds

1234567891011>>