Lines Matching refs:buf

123 	char buf[MAXLINE];  local
162 cataddr(pvp, NULL, buf, sizeof(buf), '\0', false);
163 cte = sm_rpool_strdup_x(e->e_rpool, buf);
241 (void) sm_snprintf(buf, sizeof(buf), "%.100s/%.100s", type, subtype);
242 if (wordinclass(buf, 'n') || (cte != NULL && !wordinclass(cte, 'e')))
246 if (wordinclass(buf, 'b') || wordinclass(type, 'b'))
249 if (wordinclass(buf, 'q') || wordinclass(type, 'q'))
325 while (sm_io_fgets(e->e_dfp, SM_TIME_DEFAULT, buf, sizeof(buf))
328 bt = mimeboundary(buf, boundaries);
331 if (!putxline(buf, strlen(buf), mci,
335 sm_dprintf(" ...%s", buf);
343 (void) sm_strlcpyn(buf, sizeof(buf), 2, "--", bbuf);
344 if (!putline(buf, mci))
347 sm_dprintf(" ...%s\n", buf);
360 (void) sm_strlcpyn(buf, sizeof(buf), 3, "--", bbuf, "--");
361 if (!putline(buf, mci))
364 sm_dprintf(" ...%s\n", buf);
369 while (sm_io_fgets(e->e_dfp, SM_TIME_DEFAULT, buf, sizeof(buf))
372 bt = mimeboundary(buf, boundaries);
375 if (!putxline(buf, strlen(buf), mci,
379 sm_dprintf(" ...%s", buf);
446 while (sm_io_fgets(e->e_dfp, SM_TIME_DEFAULT, buf, sizeof(buf))
449 if (mimeboundary(buf, boundaries) != MBT_NOTSEP)
451 for (p = buf; *p != '\0'; p++)
498 bp = buf;
515 (void) sm_snprintf(buf, sizeof(buf),
517 if (!putline(buf, mci))
520 sm_dprintf(" ...%s\n", buf);
525 while (sm_io_fgets(e->e_dfp, SM_TIME_DEFAULT, buf, sizeof(buf))
530 bt = mimeboundary(buf, boundaries);
534 if (!putxline(buf, strlen(buf), mci,
551 (void) sm_snprintf(buf, sizeof(buf),
554 if (!putline(buf, mci) || !putline("", mci))
563 if (!putline(buf, mci))
566 bp = buf;
594 if (!putline(buf, mci))
621 (void) sm_snprintf(buf, sizeof(buf),
624 if (!putline(buf, mci) || !putline("", mci))
640 if (buf[0] == '.' && bp == &buf[1])
642 buf[0] = '=';
647 if (!putline(buf, mci))
650 bp = buf;
677 if (!putline(buf, mci))
680 bp = buf;
716 if (!putline(buf, mci))
754 static unsigned char buf[128]; /* need not be a full line */ local
769 bp = buf;
798 buflen = bp - buf - 1;
799 bp = buf;
805 while (bp < &buf[sizeof(buf) - 2] &&
812 bt = mimeboundary((char *) &buf[start], boundaries);
823 if (bp < &buf[sizeof(buf) - 2] && c != SM_IO_EOF)
828 buflen = bp - buf - 1;
834 bp = buf;
1041 char buf[MAXLINE]; local
1061 (void) sm_snprintf(buf, sizeof(buf),
1063 if (!putline(buf, mci))
1069 while (sm_io_fgets(e->e_dfp, SM_TIME_DEFAULT, buf, sizeof(buf))
1072 if (!putline(buf, mci))
1077 cataddr(pvp, NULL, buf, sizeof(buf), '\0', false);
1078 cte = sm_rpool_strdup_x(e->e_rpool, buf);
1083 (void) sm_snprintf(buf, sizeof(buf),
1086 if (!putline(buf, mci) || !putline("", mci))
1179 while (sm_io_fgets(e->e_dfp, SM_TIME_DEFAULT, buf,
1180 sizeof(buf)) != NULL)
1182 off = mime_fromqp((unsigned char *) buf, &fbufp,
1195 if (off >= 0 && buf[off] != '\0')
1197 off = mime_fromqp((unsigned char *) (buf + off),