| /mOS-networking-stack/samples/lighttpd-1.4.32/src/ |
| H A D | mod_compress.c | 264 z.avail_in = st_size; in deflate_file_to_buffer_gzip() 338 z.avail_in = st_size; in deflate_file_to_buffer_deflate() 383 bz.avail_in = st_size; in deflate_file_to_buffer_bzip2() 421 if ((off_t)(sce->st.st_size * 1.1) < sce->st.st_size) return -1; in deflate_file_to_file() 511 start = malloc(sce->st.st_size); in deflate_file_to_file() 512 if (NULL == start || sce->st.st_size != read(ifd, start, sce->st.st_size)) { in deflate_file_to_file() 561 munmap(start, sce->st.st_size); in deflate_file_to_file() 590 if ((off_t)(sce->st.st_size * 1.1) < sce->st.st_size) return -1; in deflate_file_to_buffer() 614 start = malloc(sce->st.st_size); in deflate_file_to_buffer() 615 if (NULL == start || sce->st.st_size != read(ifd, start, sce->st.st_size)) { in deflate_file_to_buffer() [all …]
|
| H A D | mod_staticfile.c | 169 end = sce->st.st_size - 1; in http_response_parse_range() 196 end = sce->st.st_size - 1; in http_response_parse_range() 197 start = sce->st.st_size + le; in http_response_parse_range() 202 end = sce->st.st_size - 1; in http_response_parse_range() 203 start = sce->st.st_size + le; in http_response_parse_range() 219 end = sce->st.st_size - 1; in http_response_parse_range() 226 end = sce->st.st_size - 1; in http_response_parse_range() 276 if (end > sce->st.st_size - 1) end = sce->st.st_size - 1; in http_response_parse_range() 278 if (start > sce->st.st_size - 1) { in http_response_parse_range() 301 buffer_append_off_t(b, sce->st.st_size); in http_response_parse_range() [all …]
|
| H A D | network_write.c | 105 if (offset > sce->st.st_size) { in network_write_chunkqueue_write() 118 if (MAP_FAILED == (p = mmap(0, sce->st.st_size, PROT_READ, MAP_SHARED, ifd, 0))) { in network_write_chunkqueue_write() 135 munmap(p, sce->st.st_size); in network_write_chunkqueue_write() 140 munmap(p, sce->st.st_size); in network_write_chunkqueue_write() 146 munmap(p, sce->st.st_size); in network_write_chunkqueue_write()
|
| H A D | network_mtcp_writev.c | 171 if (abs_offset > sce->st.st_size) { 424 if (offset > sce->st.st_size) { in network_write_chunkqueue_mtcp_writev() 438 if (MAP_FAILED == (p = mmap(0, sce->st.st_size, PROT_READ, MAP_SHARED, ifd, 0))) { in network_write_chunkqueue_mtcp_writev() 455 munmap(p, sce->st.st_size); in network_write_chunkqueue_mtcp_writev() 460 munmap(p, sce->st.st_size); in network_write_chunkqueue_mtcp_writev() 466 munmap(p, sce->st.st_size); in network_write_chunkqueue_mtcp_writev()
|
| H A D | mod_flv_streaming.c | 240 if (start > sce->st.st_size) { in URIHANDLER_FUNC() 248 http_chunk_append_file(srv, con, con->physical.path, start, sce->st.st_size - start); in URIHANDLER_FUNC()
|
| H A D | etag.c | 28 buffer_append_off_t(etag, st->st_size); in etag_create()
|
| H A D | stream.c | 30 f->size = st.st_size; in stream_open()
|
| H A D | network_freebsd_sendfile.c | 186 if (offset >= sce->st.st_size) { in network_write_chunkqueue_freebsdsendfile()
|
| H A D | network_solaris_sendfilev.c | 156 if (offset > sce->st.st_size) { in network_write_chunkqueue_solarissendfilev()
|
| H A D | network_linux_sendfile.c | 185 if (offset > sce->st.st_size) { in network_write_chunkqueue_linuxsendfile()
|
| H A D | mod_ssi.c | 601 off_t s = st.st_size; in process_ssi_stmt() 608 buffer_copy_off_t(b, st.st_size); in process_ssi_stmt() 620 chunkqueue_append_file(con->write_queue, p->stat_fn, 0, st.st_size); in process_ssi_stmt()
|
| H A D | network_writev.c | 171 if (abs_offset > sce->st.st_size) { in network_write_chunkqueue_writev()
|
| H A D | mod_cml_lua.c | 377 chunkqueue_append_file(con->write_queue, b, 0, sce->st.st_size); in cache_parse_lua()
|
| H A D | mod_magnet.c | 315 lua_pushinteger(L, sce->st.st_size); in magnet_stat() 782 len = sce->st.st_size; in magnet_attach_content()
|
| H A D | mod_rrdtool.c | 242 if (st.st_size > 0) { in mod_rrdtool_create_rrd()
|
| H A D | mod_fastcgi.c | 2300 begin_range = 0; end_range = sce->st.st_size - 1; in fcgi_response_parse() 2629 http_chunk_append_file(srv, con, ds->value, 0, sce->st.st_size); in fcgi_demux_response() 2634 buffer_copy_off_t(dcls->value, sce->st.st_size); in fcgi_demux_response() 2639 con->response.content_length = sce->st.st_size; in fcgi_demux_response()
|
| H A D | mod_dirlisting.c | 770 tmp->size = st.st_size; in http_list_directory()
|
| H A D | connections.c | 519 http_chunk_append_file(srv, con, con->physical.path, 0, sce->st.st_size);
|
| H A D | mod_webdav.c | 880 buffer_append_off_t(b, sce->st.st_size); in webdav_get_live_property()
|