Searched refs:read_so_far (Results 1 – 1 of 1) sorted by relevance
132 size_t read_so_far=0; in evutil_read_file() local158 read_so_far = 0; in evutil_read_file()164 while ((r = read(fd, mem+read_so_far, N_TO_READ(st.st_size - read_so_far))) > 0) { in evutil_read_file()165 read_so_far += r; in evutil_read_file()166 if (read_so_far >= (size_t)st.st_size) in evutil_read_file()168 EVUTIL_ASSERT(read_so_far < (size_t)st.st_size); in evutil_read_file()175 mem[read_so_far] = 0; in evutil_read_file()177 *len_out = read_so_far; in evutil_read_file()