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

1234567891011>>

/freebsd-10.0-release/usr.sbin/pkg_install/create/
H A Dmain.c108 Prefix = optarg;
112 SrcDir = optarg;
116 BaseDir = optarg;
120 Contents = optarg;
124 Conflicts = optarg;
128 Comment = optarg;
132 Desc = optarg;
136 Install = optarg;
140 PostInstall = optarg;
144 DeInstall = optarg;
[all...]
/freebsd-10.0-release/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-10.0-release/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-10.0-release/usr.sbin/bluetooth/btpand/
H A Dbtpand.c86 if (!bt_aton(optarg, &remote_bdaddr)) {
89 if ((he = bt_gethostbyname(optarg)) == NULL)
91 optarg, hstrerror(h_errno));
100 control_path = optarg;
104 if (!bt_devaddr(optarg, &local_bdaddr)) {
107 if ((he = bt_gethostbyname(optarg)) == NULL)
109 optarg, hstrerror(h_errno));
117 if (strchr(optarg, '/') == NULL) {
118 asprintf(&ep, "/dev/%s", optarg);
121 interface_name = optarg;
[all...]
/freebsd-10.0-release/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-10.0-release/usr.sbin/makefs/
H A Dmakefs.c120 if (strcmp(optarg, "be") == 0 ||
121 strcmp(optarg, "4321") == 0 ||
122 strcmp(optarg, "big") == 0) {
126 } else if (strcmp(optarg, "le") == 0 ||
127 strcmp(optarg, "1234") == 0 ||
128 strcmp(optarg, "little") == 0) {
133 warnx("Invalid endian `%s'.", optarg);
139 len = strlen(optarg) - 1;
140 if (optarg[len] == '%') {
141 optarg[le
[all...]
/freebsd-10.0-release/contrib/mtree/
H A Dmtree.c114 parsetags(&excludetags, optarg);
121 spec1 = fopen(optarg, "r");
123 mtree_err("%s: %s", optarg,
126 spec2 = fopen(optarg, "r");
128 mtree_err("%s: %s", optarg,
135 if (strcmp(optarg, flavors[i].name) == 0) {
146 parsetags(&includetags, optarg);
153 while ((p = strsep(&optarg, " \t,")) != NULL)
158 while ((p = strsep(&optarg, " \t,")) != NULL)
179 if (! setup_getid(optarg))
[all...]
/freebsd-10.0-release/sbin/nvmecontrol/
H A Dperftest.c95 if (!strcmp(optarg, "refthread"))
99 if (!strcmp(optarg, "bio") ||
100 !strcmp(optarg, "wait"))
102 else if (!strcmp(optarg, "io") ||
103 !strcmp(optarg, "intr"))
108 io_test.num_threads = strtoul(optarg, &p, 0);
112 optarg);
118 optarg);
124 if (!strcmp(optarg, "read") || !strcmp(optarg, "REA
[all...]
/freebsd-10.0-release/contrib/dtc/
H A Ddtc.c125 inform = optarg;
128 outform = optarg;
131 outname = optarg;
134 outversion = strtol(optarg, NULL, 0);
137 depname = optarg;
140 reservenum = strtol(optarg, NULL, 0);
143 minsize = strtol(optarg, NULL, 0);
146 padsize = strtol(optarg, NULL, 0);
155 cmdline_boot_cpuid = strtoll(optarg, NULL, 0);
158 srcfile_add_search_path(optarg);
[all...]
/freebsd-10.0-release/lib/libstand/
H A Dgetopt.c44 char *optarg; /* argument associated with option */ variable
87 optarg = NULL;
93 optarg = place;
103 optarg = nargv[optind];
/freebsd-10.0-release/sys/contrib/rdma/krping/
H A Dgetopt.h19 char **optopt, char **optarg, unsigned long *value);
/freebsd-10.0-release/contrib/bmake/
H A Dgetopt.c57 char *optarg; /* argument associated with option */ variable
111 optarg = NULL;
117 optarg = place;
129 optarg = nargv[optind];
155 if (optarg)
156 printf("--%s ", optarg);
162 if (optarg)
163 printf("-%c %s ", c, optarg);
/freebsd-10.0-release/usr.bin/getopt/
H A Dgetopt.c26 if (optarg != NULL)
27 printf(" -%c %s", c, optarg);
/freebsd-10.0-release/contrib/ofed/management/opensm/osmtest/
H A Dmain.c362 if (strlen(optarg) > OSMTEST_FILE_PATH_MAX)
366 strcpy(opt.file_name, optarg);
375 if (strlen(optarg) > OSMTEST_FILE_PATH_MAX)
379 strcpy(flow_name, optarg);
381 if (!strcmp("c", optarg)) {
384 } else if (!strcmp("v", optarg)) {
387 } else if (!strcmp("s", optarg)) {
390 } else if (!strcmp("e", optarg)) {
393 } else if (!strcmp("f", optarg)) {
396 } else if (!strcmp("m", optarg)) {
[all...]
/freebsd-10.0-release/usr.bin/dtc/
H A Ddtc.cc118 string arg = string(optarg);
129 fprintf(stderr, "Unknown input format: %s\n", optarg);
136 string arg = string(optarg);
151 fprintf(stderr, "Unknown output format: %s\n", optarg);
158 outfile_name = optarg;
159 outfile = open(optarg, O_CREAT | O_TRUNC | O_WRONLY, 0666);
171 if (string(optarg) != string("17"))
173 fprintf(stderr, "Unknown output format version: %s\n", optarg);
183 if (string(optarg) == string("-"))
189 depfile = fdopen(open(optarg, O_CREA
[all...]
/freebsd-10.0-release/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-10.0-release/contrib/telnet/telnet/
H A Dmain.c189 if ((tos = parsetos(optarg, "tcp")) < 0)
192 optarg,
196 ultmp = strtoul(optarg, &ep, 0);
197 if (*ep || ep == optarg || ultmp > MAXTOS)
200 optarg,
208 auth_disable_name(optarg);
225 set_escape_char(optarg);
276 (void)strncpy(dest_realm, optarg, dst_realm_sz);
295 user = optarg;
298 SetNetTrace(optarg);
[all...]
/freebsd-10.0-release/sbin/newfs/
H A Dnewfs.c154 volumelabel = optarg;
170 if ((Oflag = atoi(optarg)) < 1 || Oflag > 2)
172 optarg);
178 rval = expand_number_int(optarg, &sectorsize);
180 errx(1, "%s: bad sector size", optarg);
183 disktype = optarg;
195 rval = expand_number_int(optarg, &maxcontig);
198 optarg);
201 rval = expand_number_int(optarg, &bsize);
204 optarg);
[all...]
/freebsd-10.0-release/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-10.0-release/usr.sbin/mtree/
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-10.0-release/usr.bin/nl/
H A Dnl.c149 parse_numbering(optarg, BODY);
152 clen = mbrlen(optarg, MB_CUR_MAX, NULL);
156 memcpy(delim1, optarg, delim1len = clen);
157 clen = mbrlen(optarg + delim1len,
163 memcpy(delim2, optarg + delim1len,
165 if (optarg[delim1len + clen] != '\0')
168 optarg);
173 parse_numbering(optarg, FOOTER);
176 parse_numbering(optarg, HEADER);
180 val = strtol(optarg,
[all...]
/freebsd-10.0-release/contrib/ofed/management/opensm/opensm/
H A Dmain.c623 printf("Reloading config from `%s`:\n", optarg);
624 if (osm_subn_parse_conf_file(optarg, &opt)) {
633 conf_template = optarg;
657 opt.port_prof_ignore_file = optarg;
666 opt.guid = cl_hton64(strtoull(optarg, NULL, 16));
677 val = strtol(optarg, NULL, 0);
690 opt.transaction_timeout = strtol(optarg, NULL, 0);
696 opt.max_wire_smps = strtol(optarg, NULL, 0);
706 if (strcmp(optarg, OSM_DISABLE_CONSOLE) == 0
707 || strcmp(optarg, OSM_LOCAL_CONSOL
[all...]
/freebsd-10.0-release/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 384 milliseconds

1234567891011>>