Searched refs:optarg (Results 126 - 150 of 748) sorted by relevance

1234567891011>>

/freebsd-10.0-release/usr.sbin/yppoll/
H A Dyppoll.c71 domainname = optarg;
74 hostname = optarg;
/freebsd-10.0-release/usr.sbin/boot0cfg/
H A Dboot0cfg.c143 bpath = optarg;
146 d_arg = argtoi(optarg, 0, 0xff, 'd');
149 if (optarg[0] == '0' && optarg[1] == 'x')
150 sscanf(optarg, "0x%02x", &o_e);
152 o_e = optarg[0];
155 fpath = optarg;
158 if (sscanf(optarg, "%02x%02x-%02x%02x",
162 errx(1, "bad argument %s", optarg);
165 m_arg = argtoi(optarg,
[all...]
/freebsd-10.0-release/contrib/ofed/management/infiniband-diags/src/
H A Dibaddr.c155 ca = optarg;
158 ca_port = strtoul(optarg, 0, 0);
179 if (ib_resolve_portid_str(&sm_portid, optarg, IB_DEST_LID, 0) < 0)
180 IBERROR("can't resolve SM destination port %s", optarg);
184 timeout = strtoul(optarg, 0, 0);
H A Dibping.c231 ca = optarg;
234 ca_port = strtoul(optarg, 0, 0);
237 count = strtoul(optarg, 0, 0);
255 oui = strtoul(optarg, 0, 0);
258 if (ib_resolve_portid_str(&sm_portid, optarg, IB_DEST_LID, 0) < 0)
259 IBERROR("can't resolve SM destination port %s", optarg);
266 timeout = strtoul(optarg, 0, 0);
/freebsd-10.0-release/contrib/openbsm/bin/auditreduce/
H A Dauditreduce.c76 extern char *optarg;
631 strptime(optarg, "%Y%m%d%H%M%S", &tm);
644 strptime(optarg, "%Y%m%d%H%M%S", &tm);
652 if (0 != getauditflagsbin(optarg, &maskp)) {
665 strptime(optarg, "%Y%m%d", &tm);
678 p_euid = strtol(optarg, &converr, 10);
681 if ((pw = getpwnam(optarg)) == NULL)
689 p_egid = strtol(optarg, &converr, 10);
692 if ((grp = getgrnam(optarg)) == NULL)
700 p_rgid = strtol(optarg,
[all...]
/freebsd-10.0-release/libexec/mknetid/
H A Dmknetid.c118 groupfile = optarg;
121 passfile = optarg;
124 hostsfile = optarg;
127 netidfile = optarg;
130 domain = optarg;
/freebsd-10.0-release/sbin/iscontrol/
H A Discontrol.c179 fd = fopen(optarg, "r");
181 err(1, "fopen(\"%s\")", optarg);
187 ta = optarg;
190 kw = optarg;
193 pidfile = optarg;
/freebsd-10.0-release/sbin/mount_cd9660/
H A Dmount_cd9660.c112 getmntopts(optarg, mopts, &mntflags, NULL);
113 p = strchr(optarg, '=');
119 build_iovec(&iov, &iovlen, optarg, val, (size_t)-1);
125 ssector = atoi(optarg);
131 if (set_charset(&iov, &iovlen, optarg) == -1)
/freebsd-10.0-release/share/examples/perfmon/
H A Dperfmon.c86 pmc.pmc_unit = getnum(optarg, 0, 256);
89 pmc.pmc_mask = getnum(optarg, 0, 256);
92 loops = getnum(optarg, 1, INT_MAX - 1);
95 sleeptime = getnum(optarg, 0, INT_MAX - 1);
98 cmd = optarg;
/freebsd-10.0-release/usr.bin/ktrace/
H A Dktrace.c96 tracefile = optarg;
99 set_pid_clear(optarg, NOTSET);
106 set_pid_clear(optarg, NOTSET);
109 trpoints = getpoints(optarg);
111 warnx("unknown facility in %s", optarg);
/freebsd-10.0-release/usr.bin/mail/
H A Dmain.c97 Tflag = optarg;
107 myname = optarg;
144 subject = optarg;
189 cc = cat(cc, nalloc(optarg, GCC));
195 bcc = cat(bcc, nalloc(optarg, GBCC));
/freebsd-10.0-release/usr.bin/setchannel/
H A Dsetchannel.c116 if (strcasecmp(optarg, "on") == 0)
118 else if (strcasecmp(optarg, "off") == 0)
132 unit = atoi(optarg);
151 if (sscanf(optarg, "%ux%u", &x_size, &y_size) != 2
159 channel_set = atoi(optarg);
/freebsd-10.0-release/usr.sbin/acpi/acpiconf/
H A Dacpiconf.c205 acpi_battinfo(atoi(optarg));
208 acpi_sleep_ack(atoi(optarg));
211 if (optarg[0] == 'S')
212 sleep_type = optarg[1] - '0';
214 sleep_type = optarg[0] - '0';
/freebsd-10.0-release/usr.sbin/pkg_install/info/
H A Dmain.c176 LookUpOrigin = strdup(optarg);
186 InfoPrefix = optarg;
199 strlcpy(PlayPen, optarg, sizeof(PlayPen));
211 CheckPkg = optarg;
222 strlcpy(entp->file, optarg, PATH_MAX);
/freebsd-10.0-release/contrib/diff/src/
H A Ddiff.c320 if (optarg)
322 numval = strtoumax (optarg, &numend, 10);
324 try_help ("invalid context length `%s'", optarg);
354 + 7 * strlen (optarg) - 14 /* 7*"%s" */
358 optarg, optarg, 0,
359 optarg, optarg, 0,
360 optarg, optarg, optar
[all...]
/freebsd-10.0-release/contrib/ipfilter/tools/
H A Dippool.c49 extern char *optarg;
114 err = loadpoolfile(argc, argv, optarg);
171 if (setnodeaddr(type, role, ptr, optarg) == 0)
175 poolname = optarg;
186 role = getrole(optarg);
199 type = gettype(optarg, NULL);
202 fprintf(stderr, "unknown type '%s'\n", optarg);
213 ttl = atoi(optarg);
288 poolname = optarg;
294 role = getrole(optarg);
[all...]
/freebsd-10.0-release/usr.bin/netstat/
H A Dmain.c370 fib = strtol(optarg, &endptr, 0);
373 errx(1, "%s: invalid fib", optarg);
376 if (strcmp(optarg, "ipx") == 0)
378 else if (strcmp(optarg, "inet") == 0)
381 else if (strcmp(optarg, "inet6") == 0)
385 else if (strcmp(optarg, "pfkey") == 0)
388 else if (strcmp(optarg, "unix") == 0)
390 else if (strcmp(optarg, "atalk") == 0)
393 else if (strcmp(optarg, "ng") == 0
394 || strcmp(optarg, "netgrap
[all...]
/freebsd-10.0-release/tools/tools/mctest/
H A Dmctest.cc451 extern char* optarg; ///< option argument
470 if (inet_pton(AF_INET, optarg, group) < 1)
472 optarg);
475 interface = optarg;
478 number = atoi(optarg);
480 usage(argv[0] + string(" Error: ") + optarg +
484 pkt_size = atoi(optarg);
486 usage(argv[0] + string(" Error: ") + optarg +
490 gap = atoi(optarg);
492 usage(argv[0] + string(" Error: ") + optarg
[all...]
/freebsd-10.0-release/bin/date/
H A Ddate.c97 tz.tz_dsttime = strtol(optarg, &endptr, 10) ? 1 : 0;
98 if (endptr == optarg || *endptr != '\0')
103 fmt = optarg;
113 tval = strtoq(optarg, &tmp, 0);
119 tz.tz_minuteswest = strtol(optarg, &endptr, 10);
120 if (endptr == optarg || *endptr != '\0')
128 v = vary_append(v, optarg);
/freebsd-10.0-release/contrib/openpam/bin/pamtest/
H A Dpamtest.c288 if (end == optarg || *end != '\0') {
334 opt_str_once(opt, &rhost, optarg);
337 opt_str_once(opt, &host, optarg);
354 opt_num_once(opt, &timeout, optarg);
363 opt_str_once(opt, &tty, optarg);
366 opt_str_once(opt, &ruser, optarg);
369 opt_str_once(opt, &user, optarg);
/freebsd-10.0-release/usr.bin/fstat/
H A Dfuser.c187 nlistf = optarg;
190 memf = optarg;
202 if (isdigit(*optarg)) {
203 sig = strtol(optarg, &ep, 10);
206 optarg);
208 sig = str2sig(optarg);
211 "%s", optarg);
/freebsd-10.0-release/usr.sbin/ctm/ctm/
H A Dctm.c76 case 'b': basedir = optarg; break; /* Base Directory */
77 case 'B': BackupFile = optarg; break;
85 case 't': TarCmd = optarg; break; /* archiver command */
86 case 'T': TmpDir = optarg; break; /* set temporary directory */
89 case 'V': sscanf(optarg,"%d", &c); /* Verbose */
95 warnx("out of memory for expressions: \"%s\"", optarg);
103 regcomp(&nfilter->CompiledRegex, optarg, REG_NOSUB))) {
/freebsd-10.0-release/usr.sbin/pmcstat/
H A Dpmcstat.c629 if (optarg[0] == '*' && optarg[1] == '\0') {
633 pmcstat_get_cpumask(optarg, &cpumask);
640 if (stat(optarg, &sb) < 0)
642 optarg);
646 optarg);
647 args.pa_samplesdir = optarg;
660 graphfilename = optarg;
666 pmcstat_pluginconfigure_log(optarg);
672 graphfilename = optarg;
[all...]
/freebsd-10.0-release/usr.sbin/pw/
H A Dpw.c144 optarg = &argv[1][2];
145 if (*optarg == '\0') {
146 optarg = argv[2];
150 addarg(&arglist, 'V', optarg);
183 optarg = NULL;
189 addarg(&arglist, ch, optarg);
190 optarg = NULL;
/freebsd-10.0-release/contrib/file/
H A Dgetopt_long.c67 char *optarg; /* argument associated with option */ variable
188 optarg = NULL;
229 optarg = nargv[optind++];
293 optarg = NULL;
295 optarg = (char *)place;
305 optarg = nargv[optind];
453 optarg = has_equal;
460 optarg = nargv[optind++];
464 && (optarg == NULL)) {

Completed in 206 milliseconds

1234567891011>>