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

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Doptind.c31 char *optarg; variable
H A Dgetopt.c35 extern char *optarg; /* argument associated with option */
84 optarg = NULL;
89 optarg = place;
102 optarg = nargv[optind];
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dopt_data.c42 char *optarg = 0; variable
/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/
H A Doptions.c60 if (!(pointer = strdup(optarg))) { \
66 if (!(pointer = realloc(pointer, (unsigned) (strlen(pointer) + 1 + strlen(optarg) + 1)))) { \
70 (void)strcat (pointer, optarg); \
73 extern char *optarg;
190 if (*optarg == '-') {
206 optarg = NAME_NONE;
209 optarg = NAME_ALL;
212 optarg = 0;
230 (void)strtol(optarg, &rest, 10);
258 if (!*optarg) {
[all...]
/illumos-gate/usr/src/lib/libast/common/include/
H A Dast_getopt.h37 extern char* optarg;
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dargs.c744 * Decompose the string pointed by optarg into argv[][] so that argv[][] can be
763 if (optarg[2] == '3')
766 if (optarg[2] == '6')
770 p0 = &optarg[5];
802 if ((p0 = (char *)strdup(&optarg[5])) == NULL)
873 * optarg - option string to be processed. This will either be a NULL
882 guidance_parse(Ofl_desc *ofl, char *optarg) argument
909 optarg += MSG_ARG_GUIDE_SIZE;
910 if (*optarg == '=') {
911 optarg
972 assdeflib_parse(Ofl_desc *ofl, char *optarg) argument
[all...]
/illumos-gate/usr/src/boot/lib/libstand/
H A Dgetopt.c44 char *optarg; /* argument associated with option */ variable
87 optarg = NULL;
93 optarg = place;
103 optarg = nargv[optind];
/illumos-gate/usr/src/cmd/abi/spectrans/parser/
H A Dmain.c80 if ((T_info.ti_archtoken = arch_strtoi(optarg)) == 0) {
87 T_info.ti_arch = optarg;
98 if (!isdigit(*optarg) ||
99 (T_info.ti_verbosity = atoi(optarg)) < 0) {
109 if (!isalnum(optarg[0])) {
115 T_info.ti_liblist = optarg;
127 sizeof (char) * (size + strlen(optarg) + 3));
135 (void) strcpy(T_info.ti_dash_I, optarg);
137 (void) strcat(T_info.ti_dash_I, optarg);
147 T_info.ti_versfile = optarg;
[all...]
/illumos-gate/usr/src/cmd/lp/filter/postscript/common/
H A Dext.h48 extern char *optarg; /* for getopt() */
/illumos-gate/usr/src/cmd/bnu/
H A Dgetopt.c45 char *optarg; variable
75 optarg = &argv[optind++][sp+1];
82 optarg = argv[optind++];
85 optarg = argv[optind++];
86 if (*optarg == '-') {
99 optarg = NULL;
/illumos-gate/usr/src/cmd/mdb/common/libstand/
H A Dgetopt.c32 char *optarg = NULL; variable
43 optarg = NULL;
75 optarg = &argv[optind++][_sp+1];
82 optarg = NULL;
85 optarg = argv[optind++];
92 optarg = NULL;
/illumos-gate/usr/src/cmd/logadm/
H A Dopts.c55 static off_t opts_parse_ctime(const char *o, const char *optarg);
56 static off_t opts_parse_bytes(const char *o, const char *optarg);
57 static off_t opts_parse_atopi(const char *o, const char *optarg);
58 static off_t opts_parse_seconds(const char *o, const char *optarg);
216 opts_set(struct opts *opts, const char *o, const char *optarg) argument
222 opts->op_raw = lut_add(opts->op_raw, o, (void *)optarg);
225 *rval = (*info->oi_parser)(o, optarg);
258 * opts_optarg -- return the optarg for the given option, NULL if not set
317 * opts_parse_ctime -- parse a ctime format optarg
320 opts_parse_ctime(const char *o, const char *optarg) argument
340 opts_parse_atopi(const char *o, const char *optarg) argument
358 opts_parse_bytes(const char *o, const char *optarg) argument
393 opts_parse_seconds(const char *o, const char *optarg) argument
[all...]
/illumos-gate/usr/src/cmd/devmgmt/cmds/
H A Dgetvol.c41 extern char *optarg;
86 ckwidth = atol(optarg);
112 label = optarg;
116 prompt = optarg;
122 label = optarg;
127 kpid = atol(optarg);
131 signo = atol(optarg);
/illumos-gate/usr/src/cmd/ttymon/
H A Dttyadm.c91 extern char *optarg;
117 ptr->p_device = optarg;
134 count = optarg;
135 if (strcheck(optarg,NUM) != 0) {
142 ptr->p_termtype = optarg;
145 switch (*optarg) {
159 ptr->p_server = optarg;
163 timeout = optarg;
164 if (strcheck(optarg,NUM) != 0) {
171 ptr->p_ttylabel = optarg;
[all...]
/illumos-gate/usr/src/cmd/dumpadm/
H A Dmain.c74 if (c == 'r' && ++chrooted && chroot(optarg) == -1)
75 die(gettext("failed to chroot to %s"), optarg);
117 if (dconf_str2content(&dc, optarg) == -1)
122 if (dconf_str2device(&dc, optarg) == -1)
141 minfstr = optarg;
150 if (stat(optarg, &st) == -1 ||
153 "directory\n"), optarg);
157 if (dconf_str2savdir(&dc, optarg) == -1)
168 if (dconf_str2csave(&dc, optarg) == -1)
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dt-memstat.c27 extern char *optarg;
59 l = strtol(optarg, NULL, 0);
63 sz = strtol(optarg, NULL, 0);
67 resource = strdup(optarg);
71 slp = strtol(optarg, NULL, 0);
/illumos-gate/usr/src/cmd/nl/
H A Dnl.c87 extern char *optarg; /* getopt support */
142 switch (*optarg) {
153 (void) strcpy(pat, optarg+1);
164 optmsg(c, optarg);
168 switch (*optarg) {
179 (void) strcpy(pat, optarg+1);
190 optmsg(c, optarg);
194 switch (*optarg) {
205 (void) strcpy(pat, optarg+1);
216 optmsg(c, optarg);
[all...]
/illumos-gate/usr/src/cmd/lp/filter/postscript/postprint/
H A Dpostprint.c248 prologue = optarg;
316 fprintf(stderr, " Opt: %c, arg: %s\n", ch, optarg);
321 fprintf(stdout, "/aspectratio %s def\n", optarg);
325 copies = atoi(optarg);
326 fprintf(stdout, "/#copies %s store\n", optarg);
330 euro = (strcasecmp(optarg, "on") == 0);
334 fontname = get_font(optarg);
339 linespp = atoi(optarg);
343 fprintf(stdout, "/magnification %s def\n", optarg);
347 formsperpage = atoi(optarg);
[all...]
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dargs.c31 Dbg_args_option(Lm_list *lml, int ndx, int c, char *optarg) argument
36 if (optarg)
37 dbg_print(lml, MSG_INTL(MSG_ARG_OPTARG), ndx, c, optarg);
/illumos-gate/usr/src/lib/efcode/interpreter/
H A Dinterpreter.c94 extern char *optarg;
118 debug = debug_flags_to_mask(optarg);
125 if ((errlog = strchr(optarg, ':')) != NULL) {
127 error_log_flags = parse_msg_flags(optarg);
129 errlog = optarg;
136 syslog_flags = parse_msg_flags(optarg);
145 fcode_file = optarg;
154 forthstr = optarg;
/illumos-gate/usr/src/cmd/valtools/
H A Dckint.c136 ckwidth = atoi(optarg);
146 base = atoi(optarg);
156 deflt = optarg;
160 prompt = optarg;
164 error = optarg;
168 help = optarg;
172 kpid = atoi(optarg);
176 signo = atoi(optarg);
/illumos-gate/usr/src/cmd/dispadmin/
H A Dsdcdispadmin.c52 if (strcmp(optarg, "SDC") != 0)
55 argv[0], optarg, argv[0], "SDC");
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/
H A Dlpr.c91 printer = optarg;
95 "copies", atoi(optarg));
99 "rfc-1179-class", optarg);
106 "job-name", optarg);
110 "pr-title", optarg);
120 "pr-indent", atoi(optarg));
124 "pr-width", atoi(optarg));
180 "rfc-1179-font-r", optarg);
184 "rfc-1179-font-i", optarg);
188 "rfc-1179-font-b", optarg);
[all...]
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dippool.c50 extern char *optarg;
113 err = loadpoolfile(argc, argv, optarg);
159 setzonename_global(optarg);
162 s = strchr(optarg, '/');
175 node.ipn_addr.adf_addr.in4.s_addr = inet_addr(optarg);
180 poolname = optarg;
186 role = getrole(optarg);
197 setzonename(optarg);
244 setzonename_global(optarg);
247 poolname = optarg;
[all...]
/illumos-gate/usr/src/grub/grub-0.97/lib/
H A Dgetopt1.c136 if (optarg)
137 printf (" with arg %s", optarg);
166 printf ("option c with value `%s'\n", optarg);
170 printf ("option d with value `%s'\n", optarg);

Completed in 324 milliseconds

1234567891011>>