Lines Matching refs:file
166 off_t toSend = c->file.length - c->offset; in network_write_file_chunk_no_mmap()
173 if (c->file.fd < 0 && 0 != chunkqueue_open_file_chunk(cq, errh)) return -1; in network_write_file_chunk_no_mmap()
175 toSend = chunk_file_pread(c->file.fd, buf, toSend, c->offset); in network_write_file_chunk_no_mmap()
201 const chunk_file_view * const restrict cfv = (!c->file.is_temp) in network_write_file_chunk_mmap()
207 off_t toSend = c->file.length - c->offset; in network_write_file_chunk_mmap()
303 toSend = c->file.length - c->offset; in network_write_file_chunk_sendfile()
307 if (c->file.fd < 0 && 0 != chunkqueue_open_file_chunk(cq, errh)) return -1; in network_write_file_chunk_sendfile()
314 wr = sendfile(fd, c->file.fd, &offset, toSend); in network_write_file_chunk_sendfile()
320 wr = sendfile(c->file.fd, fd, offset, &written, NULL, 0); in network_write_file_chunk_sendfile()
325 wr = sendfile(c->file.fd, fd, offset, toSend, NULL, &written, 0); in network_write_file_chunk_sendfile()
331 fvec.sfv_fd = c->file.fd; in network_write_file_chunk_sendfile()