Home
last modified time | relevance | path

Searched refs:cfv (Results 1 – 5 of 5) sorted by relevance

/lighttpd1.4/src/
H A Dchunk.h191 chunk_file_view_dptr (const chunk_file_view * const cfv, off_t offset);
193 chunk_file_view_dptr (const chunk_file_view * const cfv, off_t offset) in chunk_file_view_dptr() argument
195 return cfv->mptr - cfv->foff + offset; in chunk_file_view_dptr()
201 chunk_file_view_dlen (const chunk_file_view * const cfv, off_t offset);
203 chunk_file_view_dlen (const chunk_file_view * const cfv, off_t offset) in chunk_file_view_dlen() argument
205 return cfv->mlen + cfv->foff - offset; in chunk_file_view_dlen()
216 const chunk_file_view * const restrict cfv = c->file.view; in chunkqueue_chunk_file_view() local
217 if (NULL == cfv in chunkqueue_chunk_file_view()
219 : (c->offset - cfv->foff < 0 in chunkqueue_chunk_file_view()
220 || chunk_file_view_dlen(cfv, c->offset) < (n ? n : 1))) in chunkqueue_chunk_file_view()
[all …]
H A Dchunk.c143 cfv->mlen = 0; in chunk_file_view_init()
144 cfv->foff = 0; in chunk_file_view_init()
147 return cfv; in chunk_file_view_init()
154 munmap(cfv->mptr, (size_t)cfv->mlen); in __attribute_nonnull__()
155 free(cfv); in __attribute_nonnull__()
1715 munmap(cfv->mptr, (size_t)cfv->mlen); in chunkqueue_chunk_file_viewadj()
1726 cfv->mlen = c->offset - cfv->foff + n; in chunkqueue_chunk_file_viewadj()
1739 if (cfv->mlen > c->file.length - cfv->foff) in chunkqueue_chunk_file_viewadj()
1740 cfv->mlen = c->file.length - cfv->foff; in chunkqueue_chunk_file_viewadj()
1742 cfv->mptr = mmap(NULL, (size_t)cfv->mlen, PROT_READ, in chunkqueue_chunk_file_viewadj()
[all …]
H A Dnetwork_write.c201 const chunk_file_view * const restrict cfv = (!c->file.is_temp) in network_write_file_chunk_mmap() local
204 if (NULL == cfv) in network_write_file_chunk_mmap()
211 const off_t mmap_avail = chunk_file_view_dlen(cfv, c->offset); in network_write_file_chunk_mmap()
212 const char * const data = chunk_file_view_dptr(cfv, c->offset); in network_write_file_chunk_mmap()
H A Dmod_deflate.c1650 const chunk_file_view * const restrict cfv = (!c->file.is_temp) in mod_deflate_file_chunk_mmap() local
1653 if (NULL == cfv) in mod_deflate_file_chunk_mmap()
1656 const char * const p = chunk_file_view_dptr(cfv, c->offset); in mod_deflate_file_chunk_mmap()
1657 off_t len = chunk_file_view_dlen(cfv, c->offset); in mod_deflate_file_chunk_mmap()
H A Dmod_webdav.c790 const chunk_file_view * const restrict cfv = in webdav_xml_log_response() local
792 s = (cfv && chunk_file_view_dlen(cfv, c->offset) >= (off_t)len) in webdav_xml_log_response()
793 ? chunk_file_view_dptr(cfv, c->offset) in webdav_xml_log_response()
3821 const chunk_file_view * const restrict cfv = in webdav_mmap_file_chunk() local
3823 return (cfv && chunk_file_view_dlen(cfv, c->offset) >= len) in webdav_mmap_file_chunk()
3824 ? chunk_file_view_dptr(cfv, c->offset) in webdav_mmap_file_chunk()