Lines Matching refs:buf

125 	char buf[MAXLINE];
164 cataddr(pvp, NULL, buf, sizeof(buf), '\0', false);
165 cte = sm_rpool_strdup_x(e->e_rpool, buf);
243 (void) sm_snprintf(buf, sizeof(buf), "%.100s/%.100s", type, subtype);
244 if (wordinclass(buf, 'n') || (cte != NULL && !wordinclass(cte, 'e')))
248 if (wordinclass(buf, 'b') || wordinclass(type, 'b'))
251 if (wordinclass(buf, 'q') || wordinclass(type, 'q'))
327 while (sm_io_fgets(e->e_dfp, SM_TIME_DEFAULT, buf, sizeof(buf))
330 bt = mimeboundary(buf, boundaries);
333 if (!putxline(buf, strlen(buf), mci,
337 sm_dprintf(" ...%s", buf);
345 (void) sm_strlcpyn(buf, sizeof(buf), 2, "--", bbuf);
346 if (!putline(buf, mci))
349 sm_dprintf(" ...%s\n", buf);
362 (void) sm_strlcpyn(buf, sizeof(buf), 3, "--", bbuf, "--");
363 if (!putline(buf, mci))
366 sm_dprintf(" ...%s\n", buf);
371 while (sm_io_fgets(e->e_dfp, SM_TIME_DEFAULT, buf, sizeof(buf))
374 bt = mimeboundary(buf, boundaries);
377 if (!putxline(buf, strlen(buf), mci,
381 sm_dprintf(" ...%s", buf);
448 while (sm_io_fgets(e->e_dfp, SM_TIME_DEFAULT, buf, sizeof(buf))
451 if (mimeboundary(buf, boundaries) != MBT_NOTSEP)
453 for (p = buf; *p != '\0'; p++)
500 bp = buf;
517 (void) sm_snprintf(buf, sizeof(buf),
519 if (!putline(buf, mci))
522 sm_dprintf(" ...%s\n", buf);
527 while (sm_io_fgets(e->e_dfp, SM_TIME_DEFAULT, buf, sizeof(buf))
532 bt = mimeboundary(buf, boundaries);
536 if (!putxline(buf, strlen(buf), mci,
553 (void) sm_snprintf(buf, sizeof(buf),
556 if (!putline(buf, mci) || !putline("", mci))
565 if (!putline(buf, mci))
568 bp = buf;
596 if (!putline(buf, mci))
623 (void) sm_snprintf(buf, sizeof(buf),
626 if (!putline(buf, mci) || !putline("", mci))
642 if (buf[0] == '.' && bp == &buf[1])
644 buf[0] = '=';
649 if (!putline(buf, mci))
652 bp = buf;
679 if (!putline(buf, mci))
682 bp = buf;
718 if (!putline(buf, mci))
756 static unsigned char buf[128]; /* need not be a full line */
771 bp = buf;
800 buflen = bp - buf - 1;
801 bp = buf;
807 while (bp < &buf[sizeof(buf) - 2] &&
814 bt = mimeboundary((char *) &buf[start], boundaries);
825 if (bp < &buf[sizeof(buf) - 2] && c != SM_IO_EOF)
830 buflen = bp - buf - 1;
836 bp = buf;
1043 char buf[MAXLINE];
1063 (void) sm_snprintf(buf, sizeof(buf),
1065 if (!putline(buf, mci))
1071 while (sm_io_fgets(e->e_dfp, SM_TIME_DEFAULT, buf, sizeof(buf))
1074 if (!putline(buf, mci))
1079 cataddr(pvp, NULL, buf, sizeof(buf), '\0', false);
1080 cte = sm_rpool_strdup_x(e->e_rpool, buf);
1085 (void) sm_snprintf(buf, sizeof(buf),
1088 if (!putline(buf, mci) || !putline("", mci))
1181 while (sm_io_fgets(e->e_dfp, SM_TIME_DEFAULT, buf,
1182 sizeof(buf)) != NULL)
1184 off = mime_fromqp((unsigned char *) buf, &fbufp,
1197 if (off >= 0 && buf[off] != '\0')
1199 off = mime_fromqp((unsigned char *) (buf + off),