Home
last modified time | relevance | path

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

12345678910>>...29

/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/
H A Doptions.c212 optarg = 0;
353 if (!optarg || !*optarg || STREQU(NAME_NONE, optarg))
378 if (!optarg || !*optarg || STREQU(NAME_NONE, optarg))
668 length_sdn = _getsdn(optarg, &optarg, 0);
690 width_sdn = _getsdn(optarg, &optarg, 0);
709 cpi_sdn = _getsdn(optarg, &optarg, 1);
727 lpi_sdn = _getsdn(optarg, &optarg, 0);
737 optarg += 5;
746 if (optarg[len - 1] == *optarg)
748 optarg++;
[all …]
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dargs.c764 p0 = &optarg[5]; in createargv()
906 optarg++; in guidance_parse()
1089 if ((optarg[0] == 'n') && (optarg[1] == '\0')) { in parseopt_pass1()
1096 } else if ((optarg[0] == 'y') && (optarg[1] == '\0')) { in parseopt_pass1()
1280 optarg++; in parseopt_pass1()
1719 if ((optarg[0] == 'n') && (optarg[1] == '\0')) { in parseopt_pass1()
1726 } else if ((optarg[0] == 'y') && (optarg[1] == '\0')) { in parseopt_pass1()
1832 optarg)); in parseopt_pass2()
1838 optarg)); in parseopt_pass2()
1855 optarg)); in parseopt_pass2()
[all …]
H A Dutil.c166 optarg = str; in str2chr_wrap_cb()
227 optarg = argv[optind]; in str2chr()
235 optarg = &arg[optsz]; in str2chr()
237 if (*optarg == '=') { in str2chr()
336 optarg = in ld_getopt()
374 optarg = (char *) in ld_getopt()
387 optarg = (char *) in ld_getopt()
434 optarg = (char *) in ld_getopt()
453 optarg = in ld_getopt()
487 optarg = (char *) in ld_getopt()
[all …]
/illumos-gate/usr/src/cmd/nl/
H A Dnl.c142 switch (*optarg) { in main()
164 optmsg(c, optarg); in main()
168 switch (*optarg) { in main()
190 optmsg(c, optarg); in main()
194 switch (*optarg) { in main()
216 optmsg(c, optarg); in main()
223 optmsg(c, optarg); in main()
250 switch (*optarg) { in main()
268 optmsg(c, optarg); in main()
276 delim1 = *optarg; in main()
[all …]
/illumos-gate/usr/src/cmd/lp/filter/postscript/postprint/
H A Dpostprint.c248 prologue = optarg; in header()
325 copies = atoi(optarg); in options()
339 linespp = atoi(optarg); in options()
359 out_list(optarg); in options()
363 if ( *optarg == 'l' ) in options()
369 crmode = atoi(optarg); in options()
373 pointsize = atoi(optarg); in options()
378 tabstops = atoi(optarg); in options()
402 if ( cat(optarg) == FALSE ) in options()
407 prologue = optarg; in options()
[all …]
/illumos-gate/usr/src/cmd/logadm/
H A Dopts.c344 while (isdigit(*optarg)) in opts_parse_atopi()
345 optarg++; in opts_parse_atopi()
347 if (*optarg) in opts_parse_atopi()
361 while (isdigit(*optarg)) in opts_parse_bytes()
362 optarg++; in opts_parse_bytes()
364 switch (*optarg) { in opts_parse_bytes()
379 if (optarg[1] == '\0') in opts_parse_bytes()
403 ret = atoll(optarg); in opts_parse_seconds()
405 optarg++; in opts_parse_seconds()
407 if (optarg[1] == '\0') in opts_parse_seconds()
[all …]
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dippool.c50 extern char *optarg;
180 poolname = optarg;
197 setzonename(optarg);
247 poolname = optarg;
276 setzonename(optarg);
329 infile = optarg;
354 setzonename(optarg);
409 poolname = optarg;
413 core = optarg;
417 kernel = optarg;
[all …]
/illumos-gate/usr/src/cmd/audio/audiorecord/
H A Daudiorecord.c114 extern char *optarg;
234 Audio_dev = optarg; in main()
252 if (strncmp(optarg, "mono", strlen(optarg)) == 0) { in main()
255 strlen(optarg)) == 0) { in main()
266 if (strncmp(optarg, "ulinear", strlen(optarg)) == 0) { in main()
274 strlen(optarg)) == 0) { in main()
278 strlen(optarg)) == 0) { in main()
282 strlen(optarg)) == 0) || (strncmp(optarg, "pcm", in main()
293 if (strncmp(optarg, "au", strlen(optarg)) == 0) { in main()
296 strlen(optarg)) == 0) { in main()
[all …]
/illumos-gate/usr/src/cmd/zinject/
H A Dzinject.c815 raw = optarg; in main()
818 cancel = optarg; in main()
821 ret = parse_dvas(optarg, &dvas); in main()
825 "commas.\n", optarg); in main()
832 device = optarg; in main()
839 "value: '%s'\n", optarg); in main()
859 "'nxio'\n", optarg); in main()
923 range = optarg; in main()
951 "'claim' or 'all'\n", optarg); in main()
961 optarg); in main()
[all …]
/illumos-gate/usr/src/cmd/abi/spectrans/parser/
H A Dmain.c80 if ((T_info.ti_archtoken = arch_strtoi(optarg)) == 0) { in main()
87 T_info.ti_arch = optarg; in main()
98 if (!isdigit(*optarg) || in main()
99 (T_info.ti_verbosity = atoi(optarg)) < 0) { in main()
109 if (!isalnum(optarg[0])) { in main()
115 T_info.ti_liblist = optarg; in main()
127 sizeof (char) * (size + strlen(optarg) + 3)); in main()
135 (void) strcpy(T_info.ti_dash_I, optarg); in main()
137 (void) strcat(T_info.ti_dash_I, optarg); in main()
147 T_info.ti_versfile = optarg; in main()
[all …]
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/
H A Dlp.c108 "job-hold-until", optarg); in main()
120 "lp-charset", optarg); in main()
134 printer = optarg; in main()
138 "form", optarg); in main()
145 optarg); in main()
155 "copies", atoi(optarg)); in main()
159 PAPI_ATTR_REPLACE, optarg); in main()
166 int i = atoi(optarg); in main()
173 " value \"%s\"."), optarg); in main()
198 "job-name", optarg); in main()
[all …]
H A Dlpr.c91 printer = optarg; in main()
95 "copies", atoi(optarg)); in main()
99 "rfc-1179-class", optarg); in main()
106 "job-name", optarg); in main()
110 "pr-title", optarg); in main()
120 "pr-indent", atoi(optarg)); in main()
124 "pr-width", atoi(optarg)); in main()
180 "rfc-1179-font-r", optarg); in main()
184 "rfc-1179-font-i", optarg); in main()
188 "rfc-1179-font-b", optarg); in main()
[all …]
/illumos-gate/usr/src/cmd/latencytop/common/
H A Dlatencytop.c266 if (to_int(optarg, &klog_level) != 0 || in main()
269 "Invalid log level: %s\n", optarg); in main()
283 optarg); in main()
286 (void) strncpy(logfile, optarg, in main()
343 if (to_int(optarg, &log_interval) != 0 || in main()
355 if (strlen(optarg) >= PATH_MAX) { in main()
364 lt_strdup(optarg); in main()
369 if (strncmp(optarg, "pid=", 4) == 0) { in main()
371 select_str = &optarg[4]; in main()
374 select_str = &optarg[5]; in main()
[all …]
/illumos-gate/usr/src/cmd/ttymon/
H A Dttyadm.c105 ptr->p_device = optarg; in main()
122 count = optarg; in main()
123 if (strcheck(optarg, NUM) != 0) { in main()
130 ptr->p_termtype = optarg; in main()
133 switch (*optarg) { in main()
147 ptr->p_server = optarg; in main()
151 timeout = optarg; in main()
159 ptr->p_ttylabel = optarg; in main()
163 ptr->p_modules = optarg; in main()
168 copystr(ptr->p_prompt, optarg); in main()
[all …]
/illumos-gate/usr/src/cmd/fs.d/smbclnt/mount/
H A Dmount.c69 extern char *optarg;
420 char *equals, *optarg; in setsubopt() local
431 optarg = equals + 1; in setsubopt()
433 optarg = NULL; in setsubopt()
465 if (optarg != NULL) in setsubopt()
561 pwd = isdigit(optarg[0]) ? in setsubopt()
562 getpwuid(atoi(optarg)) : getpwnam(optarg); in setsubopt()
573 grp = isdigit(optarg[0]) ? in setsubopt()
574 getgrgid(atoi(optarg)) : getgrnam(optarg); in setsubopt()
586 val = strtol(optarg, &p, 8); in setsubopt()
[all …]
/illumos-gate/usr/src/cmd/abi/apptracecmd/
H A Dapptrace.c122 if (*optarg == '!') in main()
125 (void) buildlist(&fromlist, optarg); in main()
131 outfile = optarg; in main()
134 if (*optarg == '!') in main()
135 (void) buildlist(&toexcl, optarg + 1); in main()
137 (void) buildlist(&tolist, optarg); in main()
140 if (*optarg == '!') in main()
141 (void) buildlist(&ifexcl, optarg + 1); in main()
143 (void) buildlist(&iflist, optarg); in main()
146 if (*optarg == '!') in main()
[all …]
/illumos-gate/usr/src/cmd/sgs/crle/common/
H A Dcrle.c149 if (optarg[0] != '4') { in main()
152 MSG_ORIG(MSG_ARG_6), optarg); in main()
172 crle.c_confil = optarg; in main()
190 (const char *)optarg)) == 0) in main()
226 objdir->o_objdir = optarg; in main()
238 if (strcmp((const char *)optarg, in main()
246 crle.c_name, optarg); in main()
528 (const char *)optarg); in main()
537 (const char *)optarg); in main()
573 str, (const char *)optarg); in main()
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dserver.c54 extern char *optarg;
273 if (_nscd_add_admin_mod(optarg, 'p', in main()
274 getcacheopt(optarg), in main()
281 if (_nscd_add_admin_mod(optarg, 'n', in main()
282 getcacheopt(optarg), in main()
289 if (_nscd_add_admin_mod(optarg, 'c', in main()
290 getcacheopt(optarg), in main()
309 (void) strlcpy(debug_level, optarg, in main()
327 if (_nscd_add_admin_mod(optarg, 'h', in main()
328 getcacheopt(optarg), in main()
[all …]
/illumos-gate/usr/src/cmd/ipcrm/
H A Dipcrm.c376 zoneid = getzone(optarg); in main()
413 if ((ipc_id = msggetid(optarg)) < 0) { in main()
416 oops("msgctl", optarg); in main()
422 if ((ipc_id = shmgetid(optarg)) < 0) { in main()
425 oops("shmctl", optarg); in main()
431 if ((ipc_id = semgetid(optarg)) < 0) { in main()
435 oops("semctl", optarg); in main()
441 if ((ipc_id = msggetkey(optarg)) == -1) { in main()
446 oops("msgctl", optarg); in main()
457 oops("shmctl", optarg); in main()
[all …]
/illumos-gate/usr/src/cmd/valtools/
H A Dckrange.c145 ckwidth = atoi(optarg); in main()
155 base = atoi(optarg); in main()
165 upper = optarg; in main()
169 lower = optarg; in main()
173 deflt = optarg; in main()
177 prompt = optarg; in main()
181 error = optarg; in main()
185 help = optarg; in main()
189 kpid = atoi(optarg); in main()
193 signo = atoi(optarg); in main()
/illumos-gate/usr/src/cmd/dumpadm/
H A Dmain.c74 if (c == 'r' && ++chrooted && chroot(optarg) == -1) in main()
75 die(gettext("failed to chroot to %s"), optarg); in main()
117 if (dconf_str2content(&dc, optarg) == -1) in main()
122 if (dconf_str2device(&dc, optarg) == -1) in main()
141 minfstr = optarg; in main()
150 if (stat(optarg, &st) == -1 || in main()
153 "directory\n"), optarg); in main()
157 if (dconf_str2savdir(&dc, optarg) == -1) in main()
168 if (dconf_str2csave(&dc, optarg) == -1) in main()
/illumos-gate/usr/src/cmd/devmgmt/cmds/
H A Dgetvol.c41 extern char *optarg;
86 ckwidth = atol(optarg); in main()
112 label = optarg; in main()
116 prompt = optarg; in main()
122 label = optarg; in main()
127 kpid = atol(optarg); in main()
131 signo = atol(optarg); in main()
/illumos-gate/usr/src/cmd/auditstat/
H A Dauditstat.c58 extern char *optarg;
194 if (strisdigit(optarg)) {
199 count = atoi(optarg);
205 if (strisdigit(optarg)) {
210 header_mod = atoi(optarg);
216 if (strisdigit(optarg)) {
221 interval = atoi(optarg);
234 if (optarg) {
235 if (*optarg == 'u')
237 else if (*optarg == 'd')
/illumos-gate/usr/src/cmd/fs.d/ufs/newfs/
H A Dnewfs.c206 optarg); in main()
207 req_fssize_str = strdup(optarg); in main()
224 "%s: bad rotational delay"), optarg); in main()
236 if (strcmp(optarg, "space") == 0) in main()
238 else if (strcmp(optarg, "time") == 0) in main()
246 apc = number("apc", optarg, NR_NONE, 0); in main()
257 "%s: bad block size"), optarg); in main()
270 cpg = number("cpg", optarg, NR_NONE, 16); in main()
274 optarg); in main()
289 optarg); in main()
[all …]
/illumos-gate/usr/src/lib/efcode/interpreter/
H A Dinterpreter.c94 extern char *optarg; in main()
118 debug = debug_flags_to_mask(optarg); in main()
125 if ((errlog = strchr(optarg, ':')) != NULL) { in main()
127 error_log_flags = parse_msg_flags(optarg); in main()
129 errlog = optarg; in main()
136 syslog_flags = parse_msg_flags(optarg); in main()
145 fcode_file = optarg; in main()
154 forthstr = optarg; in main()

12345678910>>...29