Searched refs:read_so_far (Results 1 – 2 of 2) sorted by relevance
151 size_t read_so_far=0; in evutil_read_file_() local177 read_so_far = 0; in evutil_read_file_()183 while ((r = read(fd, mem+read_so_far, N_TO_READ(st.st_size - read_so_far))) > 0) { in evutil_read_file_()184 read_so_far += r; in evutil_read_file_()185 if (read_so_far >= (size_t)st.st_size) in evutil_read_file_()187 EVUTIL_ASSERT(read_so_far < (size_t)st.st_size); in evutil_read_file_()194 mem[read_so_far] = 0; in evutil_read_file_()196 *len_out = read_so_far; in evutil_read_file_()
3105 ev_off_t read_so_far = 0; in evbuffer_file_segment_materialize() local3119 while (read_so_far < length) { in evbuffer_file_segment_materialize()3120 n = read(fd, mem+read_so_far, length-read_so_far); in evbuffer_file_segment_materialize()3123 read_so_far += n; in evbuffer_file_segment_materialize()3128 if (n < 0 || (n == 0 && length > read_so_far)) { in evbuffer_file_segment_materialize()