/titanic_51/usr/src/cmd/lp/cmd/lpadmin/ |
H A D | options.c | 60 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) { 602 oparse(optarg) oparse() argument [all...] |
/titanic_51/usr/src/cmd/sgs/libld/common/ |
H A D | args.c | 704 * Decompose the string pointed by optarg into argv[][] so that argv[][] can be 723 if (optarg[2] == '3') in createargv() 726 if (optarg[2] == '6') in createargv() 730 p0 = &optarg[5]; in createargv() 762 if ((p0 = (char *)strdup(&optarg[5])) == NULL) in createargv() 833 * optarg - option string to be processed. This will either be a NULL 842 guidance_parse(Ofl_desc *ofl, char *optarg) in guidance_parse() argument 869 optarg += MSG_ARG_GUIDE_SIZE; in guidance_parse() 870 if (*optarg == '=') { in guidance_parse() 871 optarg in guidance_parse() 932 assdeflib_parse(Ofl_desc * ofl,char * optarg) assdeflib_parse() argument [all...] |
H A D | util.c | 283 * the return character set to 'z' and optarg set to 'XXX'. This callback 284 * changes optarg to include the missing wrap= prefix. 293 size_t len = MSG_ARG_WRAP_SIZE + strlen(optarg) + 1; in str2chr_wrap_cb() 298 MSG_ORIG(MSG_ARG_WRAP), optarg); in str2chr_wrap_cb() 299 optarg = str; in str2chr_wrap_cb() 305 * be translated to an option character. If so, update the optind and optarg 346 * Make sure an optarg is available, and if not return in str2chr() 360 optarg = argv[optind]; in str2chr() 368 optarg = &arg[optsz]; in str2chr() 370 if (*optarg in str2chr() [all...] |
/titanic_51/usr/src/cmd/nl/ |
H A D | nl.c | 89 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...] |
/titanic_51/usr/src/cmd/lp/filter/postscript/postprint/ |
H A D | postprint.c | 249 prologue = optarg; in header() 317 fprintf(stderr, " Opt: %c, arg: %s\n", ch, optarg); in options() 322 fprintf(stdout, "/aspectratio %s def\n", optarg); in options() 326 copies = atoi(optarg); in options() 327 fprintf(stdout, "/#copies %s store\n", optarg); in options() 331 euro = (strcasecmp(optarg, "on") == 0); in options() 335 fontname = get_font(optarg); in options() 340 linespp = atoi(optarg); in options() 344 fprintf(stdout, "/magnification %s def\n", optarg); in options() 348 formsperpage = atoi(optarg); in options() [all...] |
/titanic_51/usr/src/cmd/logadm/ |
H A D | opts.c | 55 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) in opts_set() argument 222 opts->op_raw = lut_add(opts->op_raw, o, (void *)optarg); in opts_set() 225 *rval = (*info->oi_parser)(o, optarg); in opts_set() 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) in opts_parse_ctime() argument 340 opts_parse_atopi(const char * o,const char * optarg) opts_parse_atopi() argument 358 opts_parse_bytes(const char * o,const char * optarg) opts_parse_bytes() argument 393 opts_parse_seconds(const char * o,const char * optarg) opts_parse_seconds() argument [all...] |
/titanic_51/usr/src/cmd/ipf/tools/ |
H A D | ippool.c | 49 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...] |
/titanic_51/usr/src/cmd/zinject/ |
H A D | zinject.c | 714 if (strcasecmp(optarg, "degrade") == 0) { in main() 716 } else if (strcasecmp(optarg, "fault") == 0) { in main() 720 "must be 'degrade' or 'fault'\n", optarg); in main() 726 raw = optarg; in main() 729 cancel = optarg; in main() 732 device = optarg; in main() 735 ret = parse_delay(optarg, &record.zi_timer, in main() 739 "value: '%s'\n", optarg); in main() 745 if (strcasecmp(optarg, "io") == 0) { in main() 747 } else if (strcasecmp(optarg, "checksu in main() [all...] |
/titanic_51/usr/src/cmd/abi/spectrans/parser/ |
H A D | main.c | 80 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...] |
/titanic_51/usr/src/cmd/ttymon/ |
H A D | ttyadm.c | 91 extern char *optarg; in main() 117 ptr->p_device = optarg; in main() 134 count = optarg; in main() 135 if (strcheck(optarg,NUM) != 0) { in main() 142 ptr->p_termtype = optarg; in main() 145 switch (*optarg) { in main() 159 ptr->p_server = optarg; in main() 163 timeout = optarg; in main() 164 if (strcheck(optarg,NUM) != 0) { in main() 171 ptr->p_ttylabel = optarg; in main() [all...] |
/titanic_51/usr/src/cmd/audio/audiorecord/ |
H A D | audiorecord.c | 110 extern char *optarg; 213 if (parse_unsigned(optarg, &Volume, "-v")) { in main() 222 Time = audio_str_to_secs(optarg); in main() 230 Audio_dev = optarg; in main() 239 Info = optarg; /* set information string */ in main() 243 if (parse_sample_rate(optarg, &Sample_rate)) { in main() 248 if (strncmp(optarg, "mono", strlen(optarg)) == 0) { in main() 250 } else if (strncmp(optarg, "stereo", in main() 251 strlen(optarg)) in main() [all...] |
/titanic_51/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | lp.c | 97 if (strcasecmp(optarg, "hold") == 0) in main() 101 else if (strcasecmp(optarg, "immediate") == 0) in main() 108 "job-hold-until", optarg); in main() 113 snprintf(buf, sizeof (buf), "page-ranges=%s", optarg); in main() 120 "lp-charset", optarg); in main() 125 lp_type_to_mime_type(optarg)); in main() 134 printer = optarg; in main() 138 "form", optarg); in main() 141 if ((get_printer_id(optarg, &printer, &modify) < 0) || in main() 145 optarg); in main() [all...] |
H A D | lpr.c | 93 printer = optarg; in main() 97 "copies", atoi(optarg)); in main() 101 "rfc-1179-class", optarg); in main() 108 "job-name", optarg); in main() 112 "pr-title", optarg); in main() 122 "pr-indent", atoi(optarg)); in main() 126 "pr-width", atoi(optarg)); in main() 183 "rfc-1179-font-r", optarg); in main() 187 "rfc-1179-font-i", optarg); in main() 191 "rfc-1179-font-b", optarg); in main() [all...] |
/titanic_51/usr/src/cmd/latencytop/common/ |
H A D | latencytop.c | 254 if (to_int(optarg, &refresh_interval) != 0 || in main() 257 "Invalid refresh interval: %s\n", optarg); in main() 266 if (to_int(optarg, &klog_level) != 0 || in main() 269 "Invalid log level: %s\n", optarg); in main() 280 } else if (strlen(optarg) >= sizeof (logfile)) { in main() 283 optarg); in main() 286 (void) strncpy(logfile, optarg, in main() 292 for (token = strtok(optarg, ","); token != NULL; in main() 343 if (to_int(optarg, &log_interval) != 0 || in main() 346 "Invalid log interval: %s\n", optarg); in main() [all...] |
/titanic_51/usr/src/cmd/fs.d/smbclnt/mount/ |
H A D | mount.c | 69 extern char *optarg; 268 for (sopt = optarg; sopt != NULL; sopt = nextopt) { in main() 278 /* undo changes to optarg */ in main() 415 char *equals, *optarg; in setsubopt() local 426 optarg = equals + 1; in setsubopt() 428 optarg = NULL; in setsubopt() 460 * None of these take an optarg. in setsubopt() 462 if (optarg != NULL) in setsubopt() 495 val = strtol(optarg, &p, 10); in setsubopt() 508 val = strtol(optarg, in setsubopt() [all...] |
/titanic_51/usr/src/cmd/abi/apptracecmd/ |
H A D | apptrace.c | 122 if (*optarg == '!') in main() 123 (void) buildlist(&fromexcl, optarg + 1); 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() [all...] |
/titanic_51/usr/src/cmd/sgs/crle/common/ |
H A D | crle.c | 149 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() 241 else if (strcmp((const char *)optarg, in main() 246 crle.c_name, optarg); in main() 515 if (inspect(&crle, (const char *)optarg, flag) != 0) in main() 523 if ((flag = addenv(&crle, (const char *)optarg, in main() [all...] |
/titanic_51/usr/src/cmd/nscd/ |
H A D | server.c | 53 extern char *optarg; 199 if ((cfgfile = strdup(optarg)) == NULL) in main() 272 if (_nscd_add_admin_mod(optarg, 'p', in main() 273 getcacheopt(optarg), in main() 280 if (_nscd_add_admin_mod(optarg, 'n', in main() 281 getcacheopt(optarg), in main() 288 if (_nscd_add_admin_mod(optarg, 'c', in main() 289 getcacheopt(optarg), in main() 296 if (_nscd_add_admin_mod(optarg, 'i', NULL, in main() 303 (void) strlcpy(logfile, optarg, sizeo in main() [all...] |
/titanic_51/usr/src/cmd/dumpadm/ |
H A D | main.c | 74 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()
|
/titanic_51/usr/src/cmd/valtools/ |
H A D | ckrange.c | 145 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() [all...] |
H A D | ckitem.c | 164 ckwidth = atol(optarg); in main() 174 max = atoi(optarg); in main() 192 invis[ninvis++] = optarg; in main() 209 label = optarg; in main() 213 if ((fp = fopen(optarg, "r")) == NULL) { in main() 216 prog, optarg); in main() 226 deflt = optarg; in main() 230 prompt = optarg; in main() 234 error = optarg; in main() 238 help = optarg; in main() [all...] |
/titanic_51/usr/src/cmd/devmgmt/cmds/ |
H A D | getvol.c | 41 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()
|
/titanic_51/usr/src/cmd/ipcrm/ |
H A D | ipcrm.c | 61 extern char *optarg; /* arg pointer for getopt */ 376 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() [all...] |
/titanic_51/usr/src/lib/efcode/interpreter/ |
H A D | interpreter.c | 94 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()
|
/titanic_51/usr/src/cmd/auditstat/ |
H A D | auditstat.c | 54 extern char *optarg; 191 if (strisdigit(optarg)) { 196 count = atoi(optarg); 202 if (strisdigit(optarg)) { 207 header_mod = atoi(optarg); 213 if (strisdigit(optarg)) { 218 interval = atoi(optarg); 231 if (optarg) { 232 if (*optarg == 'u') 234 else if (*optarg [all...] |