Lines Matching refs:p

161 	register char *p;  local
248 for (p = &bp[1]; *p != '\0' && *p != '\t'; p++)
251 if (*p == '\0')
273 *p = '\0';
356 while (*++p == '\t')
358 q = p;
359 while (*p != '\0' && *p != '\t')
360 p++;
361 *p = '\0';
554 p = munchstring(ep, NULL, '\0');
555 macdefine(&e->e_macro, A_TEMP, mid, p);
576 p = exbuf;
578 dequote_internal_chars(p, exbuf, sizeof(exbuf));
584 p = &bp[off];
586 while (*p != '\0')
591 while (*p != '\0' && SM_ISSPACE(*p))
592 p++;
593 wd = p;
594 while (*p != '\0' && !(SM_ISSPACE(*p)))
595 p++;
596 delim = *p;
597 *p = '\0';
607 *p = delim;
616 for (p = ep; SM_ISSPACE(*p); )
617 p++;
618 dynclass(mid, p);
626 for (p = ep; SM_ISSPACE(*p); )
627 p++;
628 if (p[0] == '-' && p[1] == 'o')
631 while (*p != '\0' &&
632 !(SM_ISSPACE(*p)))
633 p++;
634 while (SM_ISSPACE(*p))
635 p++;
642 if (!SM_IS_DIR_DELIM(*p) &&
643 *p != '|' &&
644 (q = strchr(p, '@')) != NULL)
658 file = p;
662 file = extrquotstr(p, &q, " ", &ok);
665 syserr("illegal filename '%s'", p);
671 p = "%s";
674 p = q;
675 if (*p == '\0')
676 p = "%s";
679 *p = '\0';
680 while (isascii(*++p) && isspace(*p))
684 fileclass(mid, file, p, ismap, safe, optional);
717 for (p = &bp[1]; *p != '\0' && *p != '='; p++)
719 if (*p == '\0')
721 *p = '\0';
723 Priorities[NumPriorities].pri_val = atoi(++p);
732 for (p = &bp[1]; SM_ISSPACE(*p); p++)
734 if (!isascii(*p) || !isdigit(*p))
740 ConfigLevel = strtol(p, &ep, 10);
749 p = macvalue('w', e);
750 if (p != NULL && (p = strchr(p, '.')) != NULL)
752 *p = '\0';
769 for (p = ep; isascii(*p) && isalpha(*p); )
770 p++;
771 *p = '\0';
785 p = strchr(bp, '=');
786 if (p != NULL)
787 *p++ = '\0';
788 sm_setuserenv(&bp[1], p);
872 register char *p; local
885 for (p = bp; *p != '\0'; p++)
887 if (*p == '#' && p > bp && ConfigLevel >= 3)
891 switch (*--p & 0377)
895 p++;
900 (void) sm_strlcpy(p, p + 1, strlen(p));
905 while (SM_ISSPACE(*p) &&
906 *p != '\n' && p > bp)
908 p--;
910 if ((e = strchr(++p, '\n')) != NULL)
911 (void) sm_strlcpy(p, e, strlen(p));
913 *p-- = '\0';
919 if (*p != '$' || p[1] == '\0')
922 if (p[1] == '$')
925 (void) sm_strlcpy(p, p + 1, strlen(p));
930 *p++ = MACROEXPAND;
933 if (*p == '=' || *p == '~' || *p == '&' || *p == '?')
934 p++;
937 *p = macid_parse(p, &ep);
938 if (ep != p + 1)
939 (void) sm_strlcpy(p + 1, ep, strlen(p + 1));
943 while (--p > bp && SM_ISSPACE(*p))
944 *p = '\0';
1041 register char *p; local
1066 if ((p = strchr(filename, '@')) == NULL)
1075 *p++ = '\0';
1076 cl = p;
1174 p = (*map.map_class->map_lookup)(&map, key, NULL, &status);
1180 p = NULL;
1184 if (p != NULL)
1185 parse_class_words(class, p);
1201 for (p = strtok(&filename[1], " \t");
1202 p != NULL && i < MAXPV;
1203 p = strtok(NULL, " \t"))
1204 argv[i++] = p;
1248 p = wordbuf;
1250 p = buf;
1253 parse_class_words(class, p);
1285 char *p; local
1306 if ((p = strchr(arg, '@')) == NULL)
1314 *p++ = '\0';
1315 maptype = p;
1540 register char *p; local
1554 for (p = line;
1555 *p != '\0' && *p != ',' && !(SM_ISSPACE(*p));
1556 p++)
1558 if (*p != '\0')
1559 *p++ = '\0';
1574 while (*p != '\0')
1578 while (*p != '\0' &&
1579 (*p == ',' || (SM_ISSPACE(*p))))
1580 p++;
1583 fcode = *p;
1584 while (*p != '\0' && *p != '=' && *p != ',')
1585 p++;
1586 if (*p++ != '=')
1591 while (SM_ISSPACE(*p))
1592 p++;
1595 p = munchstring(p, &delimptr, ',');
1601 if (*p != '\0') /* error is issued below */
1602 m->m_mailer = newstr(p);
1606 for (; *p != '\0'; p++)
1608 if (!(SM_ISSPACE(*p)))
1610 if (*p == M_INTERNAL)
1613 m->m_name, *p);
1614 setbitn(bitidx(*p), m->m_flags);
1621 i = strtorwset(p, &endp, ST_ENTER);
1629 p = endp;
1630 if (*p++ == '/')
1632 i = strtorwset(p, NULL, ST_ENTER);
1643 if (*p == '\0')
1647 m->m_eol = newstr(p);
1651 if (*p != '\0') /* error is issued below */
1652 m->m_argv = makeargv(p);
1656 m->m_maxsize = atol(p);
1660 m->m_maxdeliveries = atoi(p);
1664 m->m_maxrcpt = atoi(p);
1668 m->m_linelimit = atoi(p);
1674 m->m_nice = atoi(p);
1678 if (*p == '\0')
1682 m->m_execdir = newstr(p);
1686 if (*p == '\0')
1689 m->m_defcharset = newstr(p);
1693 if (*p == '\0')
1698 s = stab(p, ST_QUEUE, ST_FIND);
1701 m->m_name, p);
1708 m->m_mtatype = newstr(p);
1709 p = strchr(m->m_mtatype, '/');
1710 if (p != NULL)
1712 *p++ = '\0';
1713 if (*p == '\0')
1714 p = NULL;
1720 m->m_addrtype = p;
1721 if (p != NULL)
1722 p = strchr(p, '/');
1723 if (p != NULL)
1725 *p++ = '\0';
1726 if (*p == '\0')
1727 p = NULL;
1733 m->m_diagtype = p;
1739 if (isascii(*p) && !isdigit(*p))
1741 char *q = p;
1744 while (*p != '\0' && isascii(*p) &&
1746 (isalnum(*p) || strchr(SM_PWN_CHARS, *p) != NULL))
1748 (isalnum(*p) || strchr("-_", *p) != NULL))
1750 p++;
1751 while (SM_ISSPACE(*p))
1752 *p++ = '\0';
1753 if (*p != '\0')
1754 *p++ = '\0';
1777 m->m_uid = strtol(p, &q, 0);
1778 p = q;
1779 while (SM_ISSPACE(*p))
1780 p++;
1781 if (*p != '\0')
1782 p++;
1784 while (SM_ISSPACE(*p))
1785 p++;
1786 if (*p == '\0')
1788 if (isascii(*p) && !isdigit(*p))
1790 char *q = p;
1793 while (isascii(*p) &&
1794 (isalnum(*p) || strchr(SM_PWN_CHARS, *p) != NULL))
1795 p++;
1796 *p++ = '\0';
1814 m->m_gid = strtol(p, NULL, 0);
1819 m->m_wait = convtime(p, 's');
1823 if (*p == '\0')
1827 m->m_rootdir = newstr(p);
1836 p = delimptr;
1959 for (p = *pp; *p != '\0'; )
1961 if ((*p++ & 0377) == MACROEXPAND && *p == 'u')
1964 if (*p != '\0')
2005 munchstring(p, delimptr, delim) in munchstring() argument
2006 register char *p; in munchstring()
2015 for (q = buf; *p != '\0' && q < &buf[sizeof(buf) - 1]; p++)
2021 switch (*p)
2039 *q++ = *p;
2043 if (*p == '\\')
2045 else if (*p == '"')
2047 else if (quotemode || *p != delim)
2048 *q++ = *p;
2055 *delimptr = p;
2082 extrquotstr(p, delimptr, delimbuf, st) in extrquotstr() argument
2083 register char *p; in extrquotstr()
2093 for (q = buf; *p != '\0' && q < &buf[sizeof(buf) - 1]; p++)
2098 if (*p != ' ')
2101 if (*p == '\\')
2103 else if (*p == '"')
2106 strchr(delimbuf, (int) *p) == NULL)
2107 *q++ = *p;
2113 *delimptr = p;
2133 makeargv(p) in makeargv() argument
2134 register char *p; in makeargv()
2143 while (*p != '\0' && i < MAXPV)
2145 q = p;
2146 while (*p != '\0' && !(SM_ISSPACE(*p)))
2147 p++;
2148 while (SM_ISSPACE(*p))
2149 *p++ = '\0';
2436 char *p; local
2440 for (p = val; *p != '\0' && *p != delim; )
2447 while (*p == ' ')
2448 p++;
2449 if (*p == '\0')
2452 if (*p == '-' || *p == '+')
2453 clearmode = *p++ == '-';
2454 q = p;
2455 while (*p != '\0' && !(SM_ISSPACE(*p)) && *p != ',')
2456 p++;
2457 if (*p != '\0')
2458 *p++ = '\0';
2710 char *p; local
2712 for (p = val; *p != '\0'; p++)
2714 if (isascii(*p) && isalnum(*p))
2715 setbitn(bitidx(*p), tlsi_ctx->tlsi_flags);
3239 register char *p; local
3264 p = strchr(val, '=');
3265 if (p == NULL)
3266 p = &val[strlen(val)];
3267 while (*--p == ' ')
3269 while (*++p == ' ')
3270 *p = '\0';
3271 if (p == val)
3276 if (*p == '=')
3277 *p++ = '\0';
3278 while (*p == ' ')
3279 p++;
3321 val = p;
3465 p = strchr(val, '/');
3466 if (p != NULL)
3468 *p++ = '\0';
3469 MaxMessageSize = atol(p);
3582 for (p = val; *p != 0; )
3588 while (*p == ' ')
3589 p++;
3590 if (*p == '\0')
3593 if (*p == '-')
3595 else if (*p != '+')
3596 p--;
3597 p++;
3598 q = p;
3599 while (*p != '\0' && !(SM_ISSPACE(*p)))
3600 p++;
3601 if (*p != '\0')
3602 *p++ = '\0';
3670 p = newstr(ep);
3672 cleanstrcpy(p, p, strlen(p) + 1);
3673 macdefine(&CurEnv->e_macro, A_TEMP, i, p);
3699 p = val;
3705 while (isascii(*p) && (isspace(*p) || ispunct(*p)))
3706 p++;
3707 if (*p == '\0')
3709 val = p;
3710 while (isascii(*p) && isalnum(*p))
3711 p++;
3712 if (*p != '\0')
3713 *p++ = '\0';
3787 p = strchr(val, '/');
3788 if (p != NULL)
3790 *p++ = '\0';
3791 settimeout("queuewarn", p, sticky);
3805 for (p = val; *p != '\0'; p++)
3808 if (*p == '/' || *p == ':')
3810 if (*p == '.' || *p == '/' || *p == ':')
3813 *p++ = '\0';
3851 if (*p == '\0')
3853 val = p;
3998 p = val + strlen(val) - 1;
3999 while (p >= val && *p == '/')
4000 *p-- = '\0';
4140 for (p = val; *p != '\0'; p++)
4143 if (*p == '/' || *p == ':')
4145 if (*p == '.' || *p == '/' || *p == ':')
4148 *p++ = '\0';
4169 if (*p == '\0')
4176 else if (UseMSP && *p == '\0')
4190 if (*p != '\0')
4192 if (isascii(*p) && isdigit(*p))
4196 runasgid = (gid_t) atoi(p);
4210 gr = getgrnam(p);
4213 p);
4238 p = val;
4244 while (isascii(*p) && (isspace(*p) || ispunct(*p)))
4245 p++;
4246 if (*p == '\0')
4248 val = p;
4249 while (isascii(*p) && isalnum(*p))
4250 p++;
4251 if (*p != '\0')
4252 *p++ = '\0';
4390 p = strchr(val, '/');
4391 if (p != NULL)
4392 *p++ = '\0';
4394 if (p != NULL && *p != '\0')
4395 MaxMimeFieldLength = atoi(p);
5069 register char *p; local
5075 for (p = line; SM_ISSPACE(*p); p++)
5077 if (!(isascii(*p) && isalnum(*p)))
5083 mapname = p;
5084 while ((isascii(*++p) && isalnum(*p)) || *p == '_' || *p == '.')
5086 if (*p != '\0')
5087 *p++ = '\0';
5088 while (SM_ISSPACE(*p))
5089 p++;
5090 if (!(isascii(*p) && isalnum(*p)))
5095 classname = p;
5096 while (isascii(*++p) && isalnum(*p))
5098 if (*p != '\0')
5099 *p++ = '\0';
5100 while (SM_ISSPACE(*p))
5101 p++;
5117 if (class->s_mapclass.map_parse(&s->s_map, p))
5146 strtorwset(p, endp, stabmode) in strtorwset() argument
5147 char *p; in strtorwset()
5154 while (SM_ISSPACE(*p))
5155 p++;
5156 if (!isascii(*p))
5158 syserr("invalid ruleset name: \"%.20s\"", p);
5161 if (isdigit(*p))
5163 ruleset = strtol(p, endp, 10);
5177 q = p;
5178 while (*p != '\0' && isascii(*p) && (isalnum(*p) || *p == '_'))
5179 p++;
5180 if (q == p || !(isascii(*q) && isalpha(*q)))
5186 while (SM_ISSPACE(*p))
5187 *p++ = '\0';
5188 delim = *p;
5190 *p = '\0';
5193 *p = delim;
5200 while (isascii(*++p) && isspace(*p))
5202 if (!(isascii(*p) && isdigit(*p)))
5209 ruleset = strtol(p, endp, 10);
5221 *endp = p;
5614 register char *p; local
5683 for (;; val = p)
5689 for (p = val; *p != '\0' && *p != ','; p++)
5691 if (*p != '\0')
5692 *p++ = '\0';