Lines Matching refs:c

1503     const chunk * const c = hctx->r->write_queue.first;  in mod_deflate_using_libdeflate_setjmp_cb()  local
1504 const char *in = chunk_file_view_dptr(c->file.view, c->offset); in mod_deflate_using_libdeflate_setjmp_cb()
1573 const chunk * const c = hctx->r->write_queue.first; in mod_deflate_using_libdeflate() local
1575 "SIGBUS in mmap: %s %d", c->mem->ptr, c->file.fd); in mod_deflate_using_libdeflate()
1603 …_file_chunk_no_mmap(request_st * const r, handler_ctx * const hctx, const chunk * const c, off_t n) in mod_deflate_file_chunk_no_mmap() argument
1615 rd = chunk_file_pread(c->file.fd, p, (size_t)psz, c->offset+n); in mod_deflate_file_chunk_no_mmap()
1623 "reading %s failed", c->mem->ptr); in mod_deflate_file_chunk_no_mmap()
1626 "file truncated %s", c->mem->ptr); in mod_deflate_file_chunk_no_mmap()
1644 …d_deflate_file_chunk_mmap(request_st * const r, handler_ctx * const hctx, chunk * const c, off_t n) in mod_deflate_file_chunk_mmap() argument
1650 const chunk_file_view * const restrict cfv = (!c->file.is_temp) in mod_deflate_file_chunk_mmap()
1651 ? chunkqueue_chunk_file_view(c, n, r->conf.errh) in mod_deflate_file_chunk_mmap()
1654 return mod_deflate_file_chunk_no_mmap(r, hctx, c, n); 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()
1663 "SIGBUS in mmap: %s %d", c->mem->ptr, c->file.fd); in mod_deflate_file_chunk_mmap()
1674 static off_t mod_deflate_file_chunk(request_st * const r, handler_ctx * const hctx, chunk * const c… in mod_deflate_file_chunk() argument
1675 if (-1 == c->file.fd) { /* open the file if not already open */ in mod_deflate_file_chunk()
1676 … if (-1 == (c->file.fd = fdevent_open_cloexec(c->mem->ptr, r->conf.follow_symlink, O_RDONLY, 0))) { in mod_deflate_file_chunk()
1677 log_perror(r->conf.errh, __FILE__, __LINE__, "open failed %s", c->mem->ptr); in mod_deflate_file_chunk()
1682 return mod_deflate_file_chunk_mmap(r, hctx, c, n); in mod_deflate_file_chunk()
1684 return mod_deflate_file_chunk_no_mmap(r, hctx, c, n); in mod_deflate_file_chunk()
1712 chunk *c = hctx->in_queue.first; in deflate_compress_response() local
1714 switch(c->type) { in deflate_compress_response()
1716 len = buffer_clen(c->mem) - c->offset; in deflate_compress_response()
1718 if (mod_deflate_compress(hctx, (unsigned char *)c->mem->ptr+c->offset, len) < 0) { in deflate_compress_response()
1724 len = c->file.length - c->offset; in deflate_compress_response()
1726 if ((len = mod_deflate_file_chunk(r, hctx, c, len)) < 0) { in deflate_compress_response()
1728 "compress file chunk failed %s", c->mem->ptr); in deflate_compress_response()
1733 log_error(r->conf.errh, __FILE__, __LINE__, "%d type not known", c->type); in deflate_compress_response()
2082 chunk * const c = r->write_queue.first; /*(invalid after compression)*/ in REQUEST_FUNC() local
2091 && c == r->write_queue.last in REQUEST_FUNC()
2092 && c->type == FILE_CHUNK in REQUEST_FUNC()
2093 && chunkqueue_chunk_file_view(c, len, r->conf.errh) in REQUEST_FUNC()
2094 && chunk_file_view_dlen(c->file.view, c->offset) >= len) { /*(cfv)*/ in REQUEST_FUNC()
2113 && c == r->write_queue.last in REQUEST_FUNC()
2114 && c->type == MEM_CHUNK) { in REQUEST_FUNC()