Lines Matching refs:in_buf
124 int in_buf = 0; local
167 res = read(fd, buf + in_buf, max_buf_size - 1 - in_buf);
175 in_buf += res;
177 if (!buf[in_buf - 1]) {
179 in_buf--;
185 if (in_buf == 0) {
190 nl = memchr(buf, '\n', in_buf);
199 memmove(buf, buf + out_len, in_buf - out_len);
200 in_buf -= out_len;
201 } else if (in_buf == max_buf_size - 1 || !fifo_in) {
203 zlog_stream_str(log_stream, buf, in_buf);
204 in_buf = 0;