Lines Matching refs:offset
61 …ad_fd_range(request_st * const r, const buffer * const fn, const int fd, off_t offset, off_t len) { in http_chunk_append_read_fd_range() argument
76 const off_t foff = offset; in http_chunk_append_read_fd_range()
77 offset = 0; in http_chunk_append_read_fd_range()
79 rd = chunk_file_pread(fd, b->ptr+offset, (size_t)len, foff+offset); in http_chunk_append_read_fd_range()
80 } while (rd > 0 && (offset += rd, len -= rd)); in http_chunk_append_read_fd_range()
81 buffer_commit(b, offset); in http_chunk_append_read_fd_range()
91 …file_ref_range(request_st * const r, stat_cache_entry * const sce, const off_t offset, off_t len) { in http_chunk_append_file_ref_range() argument
94 if (sce->st.st_size - offset < len) in http_chunk_append_file_ref_range()
95 len = sce->st.st_size - offset; in http_chunk_append_file_ref_range()
104 chunkqueue_append_file_fd(cq, fn, fd, offset, len); in http_chunk_append_file_ref_range()
117 …request_st * const r, const buffer * const fn, const int fd, const off_t offset, const off_t len) { in http_chunk_append_file_fd_range() argument
123 chunkqueue_append_file_fd(cq, fn, fd, offset, len); in http_chunk_append_file_fd_range()