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

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Doptind.c31 char *optarg; variable
/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.c704 * Decompose the string pointed by optarg into argv[][] so that argv[][] can be
723 if (optarg[2] == '3')
726 if (optarg[2] == '6')
730 p0 = &optarg[5];
762 if ((p0 = (char *)strdup(&optarg[5])) == NULL)
833 * optarg - option string to be processed. This will either be a NULL
842 guidance_parse(Ofl_desc *ofl, char *optarg) argument
869 optarg += MSG_ARG_GUIDE_SIZE;
870 if (*optarg == '=') {
871 optarg
932 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/mdb/common/libstand/
H A Dgetopt.c34 char *optarg = NULL; variable
45 optarg = NULL;
77 optarg = &argv[optind++][_sp+1];
84 optarg = NULL;
87 optarg = argv[optind++];
94 optarg = NULL;
/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/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.c89 extern char *optarg; /* getopt support */
146 switch (*optarg) {
157 (void) strcpy(pat, optarg+1);
168 optmsg(c, optarg);
172 switch (*optarg) {
183 (void) strcpy(pat, optarg+1);
194 optmsg(c, optarg);
198 switch (*optarg) {
209 (void) strcpy(pat, optarg+1);
220 optmsg(c, optarg);
[all...]
/illumos-gate/usr/src/cmd/lp/filter/postscript/postprint/
H A Dpostprint.c249 prologue = optarg;
317 fprintf(stderr, " Opt: %c, arg: %s\n", ch, optarg);
322 fprintf(stdout, "/aspectratio %s def\n", optarg);
326 copies = atoi(optarg);
327 fprintf(stdout, "/#copies %s store\n", optarg);
331 euro = (strcasecmp(optarg, "on") == 0);
335 fontname = get_font(optarg);
340 linespp = atoi(optarg);
344 fprintf(stdout, "/magnification %s def\n", optarg);
348 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/lvm/metassist/controller/
H A Dgetopt_ext.c112 optarg = argv[optind];
142 optarg = argv[optind-1];
/illumos-gate/usr/src/cmd/zinject/
H A Dzinject.c714 if (strcasecmp(optarg, "degrade") == 0) {
716 } else if (strcasecmp(optarg, "fault") == 0) {
720 "must be 'degrade' or 'fault'\n", optarg);
726 raw = optarg;
729 cancel = optarg;
732 device = optarg;
735 ret = parse_delay(optarg, &record.zi_timer,
739 "value: '%s'\n", optarg);
745 if (strcasecmp(optarg, "io") == 0) {
747 } else if (strcasecmp(optarg, "checksu
[all...]
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/
H A Dlpr.c93 printer = optarg;
97 "copies", atoi(optarg));
101 "rfc-1179-class", optarg);
108 "job-name", optarg);
112 "pr-title", optarg);
122 "pr-indent", atoi(optarg));
126 "pr-width", atoi(optarg));
183 "rfc-1179-font-r", optarg);
187 "rfc-1179-font-i", optarg);
191 "rfc-1179-font-b", optarg);
[all...]
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dippool.c49 extern char *optarg;
112 err = loadpoolfile(argc, argv, optarg);
158 setzonename_global(optarg);
161 s = strchr(optarg, '/');
174 node.ipn_addr.adf_addr.in4.s_addr = inet_addr(optarg);
179 poolname = optarg;
185 role = getrole(optarg);
196 setzonename(optarg);
243 setzonename_global(optarg);
246 poolname = optarg;
[all...]

Completed in 1078 milliseconds

1234567891011>>