Lines Matching +defs:buf +defs:type
9 /* int rec_streamlf_get(stream, buf, maxlen)
11 /* VSTRING *buf;
14 /* int rec_streamlf_put(stream, type, data, len)
16 /* int type;
20 /* int REC_STREAMLF_PUT_BUF(stream, type, buf)
22 /* int type;
23 /* VSTRING *buf;
38 /* When the record type is REC_TYPE_NORM, a newline character is
39 /* appended to the output. The result is the record type, or
76 int rec_streamlf_get(VSTREAM *stream, VSTRING *buf, int maxlen)
86 VSTRING_RESET(buf);
89 return (VSTRING_LEN(buf) > 0 ? REC_TYPE_CONT : REC_TYPE_EOF);
91 VSTRING_TERMINATE(buf);
94 VSTRING_ADDCH(buf, ch);
96 VSTRING_TERMINATE(buf);
102 int rec_streamlf_put(VSTREAM *stream, int type, const char *data, int len)
106 if (type == REC_TYPE_NORM)
108 return (vstream_ferror(stream) ? REC_TYPE_EOF : type);