Lines Matching refs:out_last
41 static size_t out_last; variable
86 out_last = 0; in set_out_buffer_size()
122 if (count < out_buf_size - out_last) { in buf_append()
123 memcpy(out_buf + out_last, buf, count); in buf_append()
124 if (out_start > out_last) in buf_append()
126 out_last += count; in buf_append()
129 size_t chunk = out_buf_size - out_last; in buf_append()
130 memcpy(out_buf + out_last, buf, chunk); in buf_append()
132 out_last = count - chunk; in buf_append()
133 out_start = out_last + 1; in buf_append()
201 if (out_start < out_last) in resend_bytes()
202 available = out_last - out_start; in resend_bytes()
210 if (out_last < needed) { in resend_bytes()
211 int chunkend = needed - out_last; in resend_bytes()
214 atomicio(vwrite, fd, out_buf, out_last); in resend_bytes()
216 atomicio(vwrite, fd, out_buf + (out_last - needed), needed); in resend_bytes()