Home
last modified time | relevance | path

Searched refs:st_size (Results 1 – 19 of 19) sorted by relevance

/mOS-networking-stack/samples/lighttpd-1.4.32/src/
H A Dmod_compress.c264 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 Dmod_staticfile.c169 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 Dnetwork_write.c105 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 Dnetwork_mtcp_writev.c171 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 Dmod_flv_streaming.c240 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 Detag.c28 buffer_append_off_t(etag, st->st_size); in etag_create()
H A Dstream.c30 f->size = st.st_size; in stream_open()
H A Dnetwork_freebsd_sendfile.c186 if (offset >= sce->st.st_size) { in network_write_chunkqueue_freebsdsendfile()
H A Dnetwork_solaris_sendfilev.c156 if (offset > sce->st.st_size) { in network_write_chunkqueue_solarissendfilev()
H A Dnetwork_linux_sendfile.c185 if (offset > sce->st.st_size) { in network_write_chunkqueue_linuxsendfile()
H A Dmod_ssi.c601 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 Dnetwork_writev.c171 if (abs_offset > sce->st.st_size) { in network_write_chunkqueue_writev()
H A Dmod_cml_lua.c377 chunkqueue_append_file(con->write_queue, b, 0, sce->st.st_size); in cache_parse_lua()
H A Dmod_magnet.c315 lua_pushinteger(L, sce->st.st_size); in magnet_stat()
782 len = sce->st.st_size; in magnet_attach_content()
H A Dmod_rrdtool.c242 if (st.st_size > 0) { in mod_rrdtool_create_rrd()
H A Dmod_fastcgi.c2300 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 Dmod_dirlisting.c770 tmp->size = st.st_size; in http_list_directory()
H A Dconnections.c519 http_chunk_append_file(srv, con, con->physical.path, 0, sce->st.st_size);
H A Dmod_webdav.c880 buffer_append_off_t(b, sce->st.st_size); in webdav_get_live_property()