Lines Matching refs:optarg

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) {
263 if (*optarg == '-') {
275 if (*optarg == '-') {
353 if (!optarg || !*optarg || STREQU(NAME_NONE, optarg))
355 if (!(H = getlist(optarg, LP_WS, LP_SEP))) {
378 if (!optarg || !*optarg || STREQU(NAME_NONE, optarg))
380 else if (!(I = getlist(optarg, LP_WS, LP_SEP))) {
420 oparse (optarg);
433 if (STREQU(NAME_ANY, optarg))
436 Q = strtol(optarg, &rest, 10);
462 if (!(S = getlist(optarg, LP_WS, LP_SEP))) {
473 if ((cp = strchr(optarg, '!')))
476 if ((STREQU(optarg, NAME_NONE)) ||
477 (STREQU(optarg, "localhost")))
480 else if (STREQU(optarg, Local_System)) {
499 t = strtol(optarg, &rest, 10);
513 if (!(T = getlist(optarg, LP_WS, LP_SEP))) {
543 if (STREQU(NAME_ONCE, optarg))
546 W = strtol(optarg, &rest, 10);
602 static void oparse (optarg) in oparse() argument
603 char *optarg; in oparse()
605 register char **list = dashos(optarg);
611 for ( ; (optarg = *list); list++)
613 if (STREQU(optarg, "banner")) {
623 } else if (STREQU(optarg, "nobanner")) {
634 } else if (STRNEQU(optarg, "banner=", 7)) {
637 ptr = (optarg += 7);
654 } else if (STRNEQU(optarg, "length=", 7)) {
661 length = (optarg += 7);
663 if (!*optarg) {
668 length_sdn = _getsdn(optarg, &optarg, 0);
676 } else if (STRNEQU(optarg, "width=", 6)) {
683 width = (optarg += 6);
685 if (!*optarg) {
690 width_sdn = _getsdn(optarg, &optarg, 0);
698 } else if (STRNEQU(optarg, "cpi=", 4)) {
702 cpi = (optarg += 4);
704 if (!*optarg) {
709 cpi_sdn = _getsdn(optarg, &optarg, 1);
717 } else if (STRNEQU(optarg, "lpi=", 4)) {
720 lpi = (optarg += 4);
722 if (!*optarg) {
727 lpi_sdn = _getsdn(optarg, &optarg, 0);
735 } else if (STRNEQU(optarg, "stty=", 5)) {
737 optarg += 5;
738 if (!*optarg)
742 if (strchr(LP_QUOTES, *optarg)) {
744 = strlen(optarg);
746 if (optarg[len - 1] == *optarg)
747 optarg[len - 1] = 0;
748 optarg++;
757 } else if (STREQU(optarg, "filebreak")) {
760 } else if (STREQU(optarg, "nofilebreak")) {
764 } else if (*optarg) {
766 if ((addlist(&o_options, optarg)) != 0) {
771 optarg++;