Lines Matching refs:c
775 for (chunk *c = cq->first; c; c = c->next) { in webdav_xml_log_response() local
776 switch (c->type) { in webdav_xml_log_response()
778 s = c->mem->ptr + c->offset; in webdav_xml_log_response()
779 len = buffer_clen(c->mem) - (uint32_t)c->offset; in webdav_xml_log_response()
788 len = (uint32_t)(c->file.length - c->offset); in webdav_xml_log_response()
791 chunkqueue_chunk_file_viewadj(c, (off_t)len, r->conf.errh); in webdav_xml_log_response()
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()
3814 webdav_mmap_file_chunk (chunk * const c, log_error_st * const errh) in webdav_mmap_file_chunk() argument
3820 const off_t len = c->file.length - c->offset; in webdav_mmap_file_chunk()
3822 chunkqueue_chunk_file_view(c, len, errh); in webdav_mmap_file_chunk()
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()
3827 UNUSED(c); in webdav_mmap_file_chunk()
3851 chunk *c = cq->first; in webdav_parse_chunkqueue() local
3854 force_assert(0 == weWant || c != NULL); in webdav_parse_chunkqueue()
3857 if (c->type == MEM_CHUNK) { in webdav_parse_chunkqueue()
3858 xmlstr = c->mem->ptr + c->offset; in webdav_parse_chunkqueue()
3859 weHave = buffer_clen(c->mem) - c->offset; in webdav_parse_chunkqueue()
3861 else if (c->type == FILE_CHUNK) { in webdav_parse_chunkqueue()
3862 xmlstr = webdav_mmap_file_chunk(c, r->conf.errh); in webdav_parse_chunkqueue()
3864 weHave = c->file.length - c->offset; in webdav_parse_chunkqueue()
3881 "unrecognized chunk type: %d", c->type); in webdav_parse_chunkqueue()
4532 chunk * const c = cq->first; in mod_webdav_write_single_file_chunk() local
4533 cq->first = c->next; in mod_webdav_write_single_file_chunk()
4536 if (mod_webdav_write_cq(r, cq, c->file.fd)) { in mod_webdav_write_single_file_chunk()
4541 c->file.length = len; in mod_webdav_write_single_file_chunk()
4542 c->next = NULL; in mod_webdav_write_single_file_chunk()
4543 cq->first = cq->last = c; in mod_webdav_write_single_file_chunk()
4548 c->next = cq->first; in mod_webdav_write_single_file_chunk()
4549 cq->first = c; in mod_webdav_write_single_file_chunk()
4707 chunk *c = cq->first; in mod_webdav_put_linkat_rename() local
4712 sizeof(pathproc)-(sizeof("/proc/self/fd/")-1), c->file.fd); in mod_webdav_put_linkat_rename()
4742 if (0 == fstat(c->file.fd, &st)) in mod_webdav_put_linkat_rename()
4746 chunkqueue_mark_written(cq, c->file.length); /*(c->offset == 0)*/ in mod_webdav_put_linkat_rename()
4825 chunk *c = cq->first; in mod_webdav_put_range() local
4827 if (c->type == FILE_CHUNK && NULL == c->next && c->file.fd >= 0) { in mod_webdav_put_range()
4833 wr = copy_file_range(c->file.fd,&zoff,fd,&ooff,(size_t)cqlen, 0); in mod_webdav_put_range()
4835 wr = copy_file_range(c->file.fd,&zoff,fd,&ooff, in mod_webdav_put_range()
4944 chunk *c = cq->first; in mod_webdav_put() local
4961 if (c->type == MEM_CHUNK) in mod_webdav_put()
4964 buffer_append_int(tmpb, (long)c->file.fd); in mod_webdav_put()
4975 if (c->type == FILE_CHUNK) { /*(reqbody contained in single tempfile)*/ in mod_webdav_put()
4976 if (NULL != c->next) { in mod_webdav_put()