Lines Matching defs:linebuf
107 static int strip_eol(char *linebuf, int *plen);
530 char linebuf[MAX_SMLEN];
540 while ((len = BIO_read(in, linebuf, MAX_SMLEN)) > 0)
541 BIO_write(out, linebuf, len);
545 while ((len = BIO_gets(in, linebuf, MAX_SMLEN)) > 0) {
546 eol = strip_eol(linebuf, &len);
548 BIO_write(out, linebuf, len);
597 char linebuf[MAX_SMLEN];
610 while ((len = BIO_gets(bio, linebuf, MAX_SMLEN)) > 0) {
611 state = mime_bound_check(linebuf, len, bound, blen);
619 /* Strip CR+LF from linebuf */
620 next_eol = strip_eol(linebuf, &len);
631 BIO_write(bpart, linebuf, len);
651 char linebuf[MAX_SMLEN];
659 while ((len = BIO_gets(bio, linebuf, MAX_SMLEN)) > 0) {
661 if (mhdr && isspace((unsigned char)linebuf[0]))
667 for (p = linebuf, q = linebuf; (c = *p) && (c != '\r') && (c != '\n');
745 if (p == linebuf)
959 static int strip_eol(char *linebuf, int *plen)
964 p = linebuf + len - 1;
965 for (p = linebuf + len - 1; len > 0; len--, p--) {