| /lighttpd1.4/src/ |
| H A D | chunk.h | 15 off_t mlen; /* length of mmap'ed area */ 16 off_t foff; /* offset from the start of the file */ 30 off_t offset; 50 off_t bytes_in, bytes_out; 53 off_t upload_temp_file_size; 86 …_append_file(chunkqueue * restrict cq, const buffer * restrict fn, off_t offset, off_t len); /* co… 87 …e_fd(chunkqueue * restrict cq, const buffer * restrict fn, int fd, off_t offset, off_t len); /* co… 141 void chunkqueue_mark_written(chunkqueue *cq, off_t len); 150 void chunkqueue_append_cq_range (chunkqueue *dst, const chunkqueue *src, off_t offset, off_t len); 200 static inline off_t [all …]
|
| H A D | network_write.c | 151 off_t c_len = (off_t)buffer_clen(c->mem) - c->offset; in network_write_mem_chunk() 166 off_t toSend = c->file.length - c->offset; in network_write_file_chunk_no_mmap() 171 if (toSend > (off_t)sizeof(buf)) toSend = (off_t)sizeof(buf); in network_write_file_chunk_no_mmap() 192 static off_t 207 off_t toSend = c->file.length - c->offset; in network_write_file_chunk_mmap() 256 off_t toSend = 0; in network_writev_mem_chunks() 260 const off_t c_len = (off_t)buffer_clen(c->mem) - c->offset; in network_writev_mem_chunks() 298 off_t offset; in network_write_file_chunk_sendfile() 299 off_t toSend; in network_write_file_chunk_sendfile() 300 off_t written = 0; in network_write_file_chunk_sendfile() [all …]
|
| H A D | http_range.c | 40 http_range_coalesce (off_t * const restrict ranges, int n) in http_range_coalesce() 59 const off_t b = ranges[i]; in http_range_coalesce() 60 const off_t e = ranges[i+1]; in http_range_coalesce() 81 http_range_parse_next (const char * restrict s, const off_t len, in http_range_parse_next() 82 off_t * const restrict ranges) in http_range_parse_next() 88 off_t n = strtoll(s, &e, 10); in http_range_parse_next() 114 off_t ranges[RMAX*2]) in http_range_parse() 156 const off_t complete_length = chunkqueue_length(cq); in http_range_single() 199 const off_t ranges[RMAX*2], const int n) in http_range_multi() 229 const off_t complete_length = chunkqueue_length(cq); in http_range_multi() [all …]
|
| H A D | http_chunk.c | 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() 76 const off_t foff = 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() 142 const off_t sz = sce->st.st_size; in http_chunk_append_file_ref() 291 off_t te_chunked = r->gw_dechunk->gw_chunked; in http_chunk_decode_append_data() 296 off_t hsz; in http_chunk_decode_append_data() 301 hsz = (off_t)(++p - mem); in http_chunk_decode_append_data() 316 hsz = (off_t)(++p - h->ptr); in http_chunk_decode_append_data() 335 if (te_chunked > (off_t)(1uLL<<(8*sizeof(off_t)-5))-1-2) { in http_chunk_decode_append_data() 375 if ((off_t)mlen < len) { in http_chunk_decode_append_data() [all …]
|
| H A D | http_chunk.h | 16 int http_chunk_append_file_fd(request_st *r, const buffer *fn, int fd, off_t sz); 18 void http_chunk_append_file_fd_range(request_st *r, const buffer *fn, int fd, off_t offset, off_t l… 19 …append_file_ref_range(request_st *r, struct stat_cache_entry *sce, off_t offset, off_t len); /* co…
|
| H A D | chunk.c | 32 static off_t 46 static off_t 47 mmap_align_offset (off_t start) 49 static off_t pagemask = 0; 57 static off_t chunk_pagemask = 0; 706 off_t clen; in chunkqueue_steal() 949 off_t dlen = 0; in chunkqueue_append_cqmem_to_tempfile() 1171 off_t clen; in chunkqueue_steal_with_tempfiles() 1416 off_t offset = c->offset; in chunkqueue_write_chunk_file() 1515 off_t offset = 0; in chunkqueue_small_resp_optim() [all …]
|
| H A D | sys-setjmp.c | 91 off_t sys_setjmp_eval3(off_t(*cb)(void *, const void *, off_t), void *dst, const void *src, off_t l… in sys_setjmp_eval3() argument 93 off_t rv; in sys_setjmp_eval3()
|
| H A D | sys-setjmp.h | 15 off_t sys_setjmp_eval3(off_t(*cb)(void *, const void *, off_t), void *dst, const void *src, off_t l…
|
| H A D | request.h | 72 off_t *global_bytes_per_second_cnt_ptr; /* */ 100 off_t gw_chunked; 156 off_t reqbody_length; /* request Content-Length */ 157 off_t te_chunked; 158 off_t resp_body_scratchpad; 189 off_t bytes_written_ckpt; /* used by mod_accesslog */ 190 off_t bytes_read_ckpt; /* used by mod_accesslog */
|
| H A D | mod_echo.c | 36 off_t cqlen = chunkqueue_length(cq); in mod_echo_request_body() 54 if (cq->bytes_out == (off_t)r->reqbody_length) { in mod_echo_request_body() 61 if (cq->bytes_in != (off_t)r->reqbody_length && cqlen < 65536 - 16384) { in mod_echo_request_body() 78 if (cq->bytes_in != (off_t)r->reqbody_length) { in SUBREQUEST_FUNC() 111 if (cq->bytes_out == (off_t)r->reqbody_length) { in SUBREQUEST_FUNC()
|
| H A D | connections.c | 222 static off_t 230 off_t limit = (off_t)rconf->global_bytes_per_second in connection_write_throttled() 237 off_t limit = (off_t)rconf->bytes_per_second in connection_write_throttled() 247 static off_t 267 off_t written = cq->bytes_out; in connection_write_chunkqueue() 331 off_t written = cq->bytes_out; in connection_write_1xx_info() 1644 const off_t max_request_size = (off_t)r->conf.max_request_size << 10; in connection_handle_read_post_chunked() 1659 if (te_chunked > (off_t)(1uLL<<(8*sizeof(off_t)-5))-1-2) { in connection_handle_read_post_chunked() 1808 const off_t max_request_size = (off_t)r->conf.max_request_size << 10; in connection_handle_read_body_unknown() 1870 const off_t max_per_read = in connection_handle_read_post_state() [all …]
|
| H A D | mod_deflate.c | 231 off_t bytes_in; 232 off_t bytes_out; 1376 static void mod_deflate_note_ratio(request_st * const r, const off_t bytes_out, const off_t bytes_i… in mod_deflate_note_ratio() 1478 hctx->bytes_out = (off_t)sz; in mod_deflate_using_libdeflate_sm() 1499 static off_t mod_deflate_using_libdeflate_setjmp_cb (void *dst, const void *src, off_t len) in mod_deflate_using_libdeflate_setjmp_cb() 1534 if (0 != ftruncate(fd, (off_t)sz)) { in mod_deflate_using_libdeflate() 1605 const off_t insz = n; in mod_deflate_file_chunk_no_mmap() 1638 static off_t mod_deflate_file_chunk_setjmp_cb (void *dst, const void *src, off_t len) in mod_deflate_file_chunk_setjmp_cb() 1674 static off_t mod_deflate_file_chunk(request_st * const r, handler_ctx * const hctx, chunk * const c… in mod_deflate_file_chunk() 1690 off_t len, max; in deflate_compress_response() [all …]
|
| H A D | base.h | 39 off_t bytes_written_cur_second; /* used by rate-limiting and mod_status */ 41 int (* network_write)(struct connection *con, chunkqueue *cq, off_t max_bytes); 42 int (* network_read)(struct connection *con, chunkqueue *cq, off_t max_bytes); 148 int (* network_backend_write)(int fd, chunkqueue *cq, off_t max_bytes, log_error_st *errh);
|
| H A D | fdevent.c | 607 fdevent_load_file (const char * const fn, off_t *lim, log_error_st *errh, void *(malloc_fn)(size_t)… in fdevent_load_file() 610 off_t sz = 0; in fdevent_load_file() 618 if ((sizeof(off_t) > sizeof(size_t) && st.st_size >= (off_t)~(size_t)0u) in fdevent_load_file() 630 off_t off = 0; in fdevent_load_file() 660 fdevent_load_file_bytes (char * const buf, const off_t sz, off_t off, const char * const fn, log_er… in fdevent_load_file_bytes() 667 if (0 != off && (off_t)-1 == lseek(fd, off, SEEK_SET)) break; in fdevent_load_file_bytes()
|
| H A D | fdevent.h | 117 char * fdevent_load_file (const char * const fn, off_t *lim, log_error_st *errh, void *(malloc_fn)(… 119 int fdevent_load_file_bytes (char *buf, off_t sz, off_t off, const char *fn, log_error_st *errh);
|
| H A D | sys-mmap.h | 34 mmap (void *addr, size_t length, int prot, int flags, int fd, off_t offset) in mmap() 49 (sizeof(off_t) > 4) ? offset >> 32 : 0, in mmap()
|
| H A D | http-header-glue.c | 497 off_t begin_range, end_range, range_len; in http_response_xsendfile2() 705 static int http_response_append_buffer_simple_accum(const request_st * const r, const off_t len) { in http_response_append_buffer_simple_accum() 720 off_t len = (off_t)buffer_clen(mem); in http_response_append_buffer() 793 r->resp_body_scratchpad -= (off_t)len; in http_response_append_mem() 798 len = (size_t)(r->resp_body_scratchpad + (off_t)len); in http_response_append_mem() 819 r->resp_body_scratchpad -= (off_t)len; in http_response_transfer_cqlen() 822 len = (size_t)(r->resp_body_scratchpad + (off_t)len); in http_response_transfer_cqlen() 830 chunkqueue_mark_written(cq, (off_t)(olen - len)); in http_response_transfer_cqlen() 984 (off_t)li_restricted_strtoint64(value, vlen, &err); in http_response_process_headers() 1294 off_t cqlen = chunkqueue_length(&r->write_queue); in http_response_read() [all …]
|
| H A D | h2.c | 1101 rq->bytes_in += (off_t)alen; in h2_recv_data() 1102 rq->bytes_out += (off_t)alen; in h2_recv_data() 1117 const off_t max_request_size = (off_t)r->conf.max_request_size << 10; in h2_recv_data() 1118 off_t n = max_request_size - dst->bytes_in - (off_t)alen; in h2_recv_data() 1182 chunkqueue_steal(dst, cq, (off_t)alen); in h2_recv_data() 1488 rq->bytes_in += (off_t)hpctx.hlen; in h2_parse_headers_frame() 1489 rq->bytes_out += (off_t)hpctx.hlen; in h2_parse_headers_frame() 1859 const off_t cqlen = chunkqueue_length(cq); in h2_want_read() 2328 wq->bytes_in += (off_t)alen; in h2_send_headers() 2329 wq->bytes_out += (off_t)alen; in h2_send_headers() [all …]
|
| H A D | mod_status.c | 33 off_t bytes_written_1s; 34 off_t requests_1s; 35 off_t abs_traffic_out; 36 off_t abs_requests; 38 off_t traffic_out_5s[5]; 39 off_t requests_5s[5]; 585 off_t avg; in mod_status_handle_server_status_json()
|
| H A D | mod_magnet_cache.c | 63 const off_t sz = sce->st.st_size; in script_cache_load_script() 67 off_t off = 0; in script_cache_load_script()
|
| H A D | mod_cgi.c | 90 off_t orig_reqbody_length; 490 if (cq->bytes_in != (off_t)r->reqbody_length) { in cgi_process_wr_revents() 550 if (cq->bytes_out == (off_t)r->reqbody_length) { in cgi_response_headers() 572 const off_t bytes_in = r->write_queue.bytes_in; in cgi_recv_response() 714 if (cq->bytes_out == (off_t)r->reqbody_length && !hctx->conf.upgrade) { in cgi_write_request() 726 off_t cqlen = chunkqueue_length(cq); in cgi_write_request() 1020 (off_t)((1uLL << (sizeof(off_t)*8-1))-1); in URIHANDLER_FUNC() 1114 if (cq->bytes_in != (off_t)r->reqbody_length) { in SUBREQUEST_FUNC()
|
| H A D | response.c | 55 off_t limit = strtol(ds->value.ptr, NULL, 10) << 10; /*(*=1024)*/ in http_response_omit_header() 186 off_t cqlen; in http_response_write_header() 376 && (off_t)r->reqbody_length > ((off_t)r->conf.max_request_size << 10)) { in http_response_config() 783 off_t qlen = chunkqueue_length(&r->write_queue); in http_response_write_prepare() 832 off_t qlen = chunkqueue_length(&r->write_queue); in http_response_write_prepare() 836 off_t gw_chunked = r->gw_dechunk->gw_chunked; in http_response_write_prepare()
|
| H A D | mod_ajp13.c | 213 const off_t req_cqlen = chunkqueue_length(req_cq); in ajp13_stdin_append() 214 const off_t max_bytes = hctx->request_id < req_cqlen in ajp13_stdin_append() 217 off_t sent = 0; in ajp13_stdin_append() 220 for (off_t dlen; sent < max_bytes; sent += dlen) { in ajp13_stdin_append() 630 hctx->wb_reqlen = (off_t)n; in ajp13_create_env() 791 const off_t rblen = chunkqueue_length(hctx->rb); in ajp13_recv_parse_loop()
|
| H A D | mod_fastcgi.c | 192 off_t offset, weWant; in fcgi_stdin_append() 193 off_t req_cqlen = chunkqueue_length(req_cq); in fcgi_stdin_append() 310 off_t rblen = chunkqueue_length(hctx->rb); in fastcgi_get_packet() 311 if (rblen < (off_t)sizeof(FCGI_Header)) { in fastcgi_get_packet()
|
| H A D | mod_rrdtool.c | 21 off_t requests; 22 off_t bytes_written; 23 off_t bytes_read;
|