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

1234567891011>>

/freebsd-11-stable/contrib/libpcap/missing/
H A Dgetopt.h4 extern char *optarg; /* getopt(3) external variables */
/freebsd-11-stable/contrib/gdb/gdb/mi/
H A Dmi-getopt.c30 int *optind, char **optarg)
45 *optarg = NULL;
51 *optarg = NULL;
61 /* A non-simple optarg option. */
64 *optarg = argv[(*optind) + 1];
70 *optarg = NULL;
82 char *optarg; local
88 if (mi_getopt (prefix, argc, argv, opts, &optind, &optarg) == -1)
27 mi_getopt(const char *prefix, int argc, char **argv, struct mi_opt *opts, int *optind, char **optarg) argument
H A Dmi-getopt.h46 struct mi_opt *opt, int *optind, char **optarg);
H A Dmi-cmd-disas.c76 char *optarg; local
95 &optind, &optarg);
101 file_string = xstrdup (optarg);
105 line_num = atoi (optarg);
109 how_many = atoi (optarg);
113 low = parse_and_eval_address (optarg);
117 high = parse_and_eval_address (optarg);
/freebsd-11-stable/usr.bin/tset/
H A Dtset.c105 add_mapping("arpanet", optarg);
108 add_mapping("dialup", optarg);
111 erasech = optarg[0] == '^' && optarg[1] != '\0' ?
112 optarg[1] == '?' ? '\177' : CTRL(optarg[1]) :
113 optarg[0];
119 intrchar = optarg[0] == '^' && optarg[1] != '\0' ?
120 optarg[
[all...]
/freebsd-11-stable/usr.sbin/bluetooth/btpand/
H A Dbtpand.c89 if (!bt_aton(optarg, &remote_bdaddr)) {
92 if ((he = bt_gethostbyname(optarg)) == NULL)
94 optarg, hstrerror(h_errno));
103 control_path = optarg;
107 if (!bt_devaddr(optarg, &local_bdaddr)) {
110 if ((he = bt_gethostbyname(optarg)) == NULL)
112 optarg, hstrerror(h_errno));
120 if (strchr(optarg, '/') == NULL) {
121 asprintf(&ep, "/dev/%s", optarg);
124 interface_name = optarg;
[all...]
/freebsd-11-stable/contrib/libreadline/examples/
H A Drl.c52 extern char *optarg;
106 prompt = optarg;
109 fd = atoi(optarg);
112 fprintf (stderr, "%s: bad file descriptor `%s'\n", progname, optarg);
117 deftext = optarg;
120 nch = atoi(optarg);
123 fprintf (stderr, "%s: bad value for -n: `%s'\n", progname, optarg);
/freebsd-11-stable/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-11-stable/sbin/newfs_msdos/
H A Dnewfs_msdos.c90 o.offset = argtooff(optarg, "offset");
99 o.bootstrap = optarg;
102 o.create_size = argtooff(optarg, "create size");
105 if (strcmp(optarg, "12") &&
106 strcmp(optarg, "16") &&
107 strcmp(optarg, "32"))
108 errx(1, "%s: bad FAT type", optarg);
109 o.fat_type = atoi(optarg);
112 o.volume_id = argto4(optarg, 0, "volume ID");
116 o.volume_label = optarg;
[all...]
/freebsd-11-stable/sbin/nvmecontrol/
H A Dperftest.c97 if (!strcmp(optarg, "refthread"))
101 if (!strcmp(optarg, "bio") ||
102 !strcmp(optarg, "wait"))
104 else if (!strcmp(optarg, "io") ||
105 !strcmp(optarg, "intr"))
110 io_test.num_threads = strtoul(optarg, &p, 0);
114 optarg);
120 optarg);
126 if (!strcmp(optarg, "read") || !strcmp(optarg, "REA
[all...]
/freebsd-11-stable/sys/contrib/rdma/krping/
H A Dgetopt.h19 char **optopt, char **optarg, unsigned long *value);
/freebsd-11-stable/contrib/tcpdump/
H A Dgetopt_long.h63 extern char *optarg; /* getopt(3) external variables */
/freebsd-11-stable/sys/contrib/rdma/krping_compat/
H A Dgetopt.h19 char **optopt, char **optarg, unsigned long *value);
/freebsd-11-stable/stand/libsa/
H A Dgetopt.c44 char *optarg; /* argument associated with option */ variable
87 optarg = NULL;
93 optarg = place;
103 optarg = nargv[optind];
/freebsd-11-stable/contrib/telnet/telnet/
H A Dmain.c169 DoBaudRate(optarg);
188 if ((tos = parsetos(optarg, "tcp")) < 0)
191 optarg,
195 ultmp = strtoul(optarg, &ep, 0);
196 if (*ep || ep == optarg || ultmp > MAXTOS)
199 optarg,
207 auth_disable_name(optarg);
224 set_escape_char(optarg);
275 (void)strncpy(dest_realm, optarg, dst_realm_sz);
294 user = optarg;
[all...]
/freebsd-11-stable/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-11-stable/usr.bin/hexdump/
H A Dhexsyntax.c84 add(optarg);
87 addfile(optarg);
90 if ((length = atoi(optarg)) < 0)
91 errx(1, "%s: bad length value", optarg);
98 if ((skip = strtoll(optarg, &p, 0)) < 0)
99 errx(1, "%s: bad skip value", optarg);
/freebsd-11-stable/usr.bin/dtc/
H A Ddtc.cc136 string arg(optarg);
151 fprintf(stderr, "Unknown input format: %s\n", optarg);
158 string arg(optarg);
177 fprintf(stderr, "Unknown output format: %s\n", optarg);
184 outfile_name = optarg;
187 outfile = open(optarg, O_CREAT | O_TRUNC | O_WRONLY, 0666);
200 if (string(optarg) != "17")
202 fprintf(stderr, "Unknown output format version: %s\n", optarg);
212 if (string(optarg) == "-")
218 depfile = fdopen(open(optarg, O_CREA
[all...]
/freebsd-11-stable/usr.sbin/makefs/
H A Dmakefs.c131 if (strcmp(optarg, "be") == 0 ||
132 strcmp(optarg, "4321") == 0 ||
133 strcmp(optarg, "big") == 0) {
137 } else if (strcmp(optarg, "le") == 0 ||
138 strcmp(optarg, "1234") == 0 ||
139 strcmp(optarg, "little") == 0) {
144 warnx("Invalid endian `%s'.", optarg);
150 len = strlen(optarg) - 1;
151 if (optarg[len] == '%') {
152 optarg[le
[all...]
/freebsd-11-stable/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-11-stable/tools/tools/netrate/tcpp/
H A Dtcpp.c119 ll = strtoll(optarg, &dummy, 10);
127 if (inet_aton(optarg, &remoteip.sin_addr) != 1)
128 err(-1, "inet_aton: %s", optarg);
137 if (inet_aton(optarg, &localipbase.sin_addr) != 1)
138 err(-1, "inet_aton: %s", optarg);
142 ll = strtoll(optarg, &dummy, 10);
149 ll = strtoll(optarg, &dummy, 10);
156 ll = strtol(optarg, &dummy, 10);
167 ll = strtoll(optarg, &dummy, 10);
174 ll = strtoll(optarg,
[all...]
/freebsd-11-stable/usr.sbin/fmtree/
H A Dmtree.c89 spec1 = fopen(optarg, "r");
91 err(1, "%s", optarg);
93 spec2 = fopen(optarg, "r");
95 err(1, "%s", optarg);
103 while ((p = strsep(&optarg, " \t,")) != NULL)
109 while ((p = strsep(&optarg, " \t,")) != NULL)
125 dir = optarg;
135 crc_total = ~strtoul(optarg, &p, 0);
137 errx(1, "illegal seed value -- %s", optarg);
153 read_excludes_file(optarg);
[all...]
/freebsd-11-stable/sbin/newfs/
H A Dnewfs.c151 volumelabel = optarg;
169 if ((Oflag = atoi(optarg)) < 1 || Oflag > 2)
171 optarg);
177 rval = expand_number_int(optarg, &sectorsize);
179 errx(1, "%s: bad sector size", optarg);
182 disktype = optarg;
194 rval = expand_number_int(optarg, &maxcontig);
197 optarg);
200 rval = expand_number_int(optarg, &bsize);
203 optarg);
[all...]
/freebsd-11-stable/usr.bin/nl/
H A Dnl.c151 parse_numbering(optarg, BODY);
154 clen = mbrlen(optarg, MB_CUR_MAX, NULL);
158 memcpy(delim1, optarg, delim1len = clen);
159 clen = mbrlen(optarg + delim1len,
165 memcpy(delim2, optarg + delim1len,
167 if (optarg[delim1len + clen] != '\0')
170 optarg);
175 parse_numbering(optarg, FOOTER);
178 parse_numbering(optarg, HEADER);
182 val = strtol(optarg,
[all...]
/freebsd-11-stable/tools/regression/environ/
H A Denvctl.c143 blank_env(optarg);
147 switch (atoi(optarg)) {
172 value = getenv(arg == 'g' ? optarg : NULL);
177 print_rtrn_errno(putenv(optarg), eol);
185 print_rtrn_errno(setenv(NULL, optarg,
191 print_rtrn_errno(setenv(optarg, argv[optind],
202 print_rtrn_errno(unsetenv(arg == 'u' ? optarg : NULL),

Completed in 488 milliseconds

1234567891011>>