Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 95) sorted by relevance

1234

/mOS-networking-stack/samples/lighttpd-1.4.32/src/
H A Dnetwork_writev.c182 abs_offset == (off_t)(c->file.mmap.offset + c->file.mmap.length)) { in network_write_chunkqueue_writev()
211 munmap(c->file.mmap.start, c->file.mmap.length); in network_write_chunkqueue_writev()
217 while (c->file.mmap.offset + we_want_to_mmap < c->file.start) { in network_write_chunkqueue_writev()
224 to_mmap = (c->file.start + c->file.length) - c->file.mmap.offset; in network_write_chunkqueue_writev()
233 if (-1 == (c->file.fd = open(c->file.name->ptr, O_RDONLY))) { in network_write_chunkqueue_writev()
243 …if (MAP_FAILED == (c->file.mmap.start = mmap(NULL, to_mmap, PROT_READ, MAP_SHARED, c->file.fd, c-> in network_write_chunkqueue_writev()
247 strerror(errno), c->file.name, c->file.fd); in network_write_chunkqueue_writev()
254 buffer_copy_string_len(c->mem, c->file.mmap.start, c->file.mmap.length); in network_write_chunkqueue_writev()
263 madvise(c->file.mmap.start, c->file.mmap.length, MADV_WILLNEED); in network_write_chunkqueue_writev()
272 toSend = (c->file.mmap.offset + c->file.mmap.length) - (abs_offset); in network_write_chunkqueue_writev()
[all …]
H A Dnetwork_mtcp_writev.c182 abs_offset == (off_t)(c->file.mmap.offset + c->file.mmap.length)) {
211 munmap(c->file.mmap.start, c->file.mmap.length);
217 while (c->file.mmap.offset + we_want_to_mmap < c->file.start) {
224 to_mmap = (c->file.start + c->file.length) - c->file.mmap.offset;
233 if (-1 == (c->file.fd = open(c->file.name->ptr, O_RDONLY))) {
243 …if (MAP_FAILED == (c->file.mmap.start = mmap(NULL, to_mmap, PROT_READ, MAP_SHARED, c->file.fd, c->
247 strerror(errno), c->file.name, c->file.fd);
254 buffer_copy_string_len(c->mem, c->file.mmap.start, c->file.mmap.length);
263 madvise(c->file.mmap.start, c->file.mmap.length, MADV_WILLNEED);
272 toSend = (c->file.mmap.offset + c->file.mmap.length) - (abs_offset);
[all …]
H A Dchunk.c41 c->file.fd = -1; in chunk_init()
52 buffer_free(c->file.name); in chunk_free()
62 if (c->file.is_temp && !buffer_is_empty(c->file.name)) { in chunk_reset()
68 if (c->file.fd != -1) { in chunk_reset()
69 close(c->file.fd); in chunk_reset()
70 c->file.fd = -1; in chunk_reset()
73 munmap(c->file.mmap.start, c->file.mmap.length); in chunk_reset()
173 c->file.start = offset; in chunkqueue_append_file()
174 c->file.length = len; in chunkqueue_append_file()
308 c->file.is_temp = 1; in chunkqueue_get_append_tempfile()
[all …]
H A Dnetwork_linux_sendfile.c133 offset = c->file.start + c->offset; in network_write_chunkqueue_linuxsendfile()
134 toSend = c->file.length - c->offset; in network_write_chunkqueue_linuxsendfile()
138 if (-1 == c->file.fd) { in network_write_chunkqueue_linuxsendfile()
139 if (-1 == (c->file.fd = open(c->file.name->ptr, O_RDONLY))) { in network_write_chunkqueue_linuxsendfile()
145 fcntl(c->file.fd, F_SETFD, FD_CLOEXEC); in network_write_chunkqueue_linuxsendfile()
152 "posix_fadvise failed:", strerror(errno), c->file.fd); in network_write_chunkqueue_linuxsendfile()
206 "posix_fadvise failed:", strerror(errno), c->file.fd); in network_write_chunkqueue_linuxsendfile()
216 if (c->offset == c->file.length) { in network_write_chunkqueue_linuxsendfile()
221 if (c->file.fd != -1) { in network_write_chunkqueue_linuxsendfile()
222 close(c->file.fd); in network_write_chunkqueue_linuxsendfile()
[all …]
H A Dnetwork_freebsd_sendfile.c137 if (HANDLER_ERROR == stat_cache_get_entry(srv, con, c->file.name, &sce)) { in network_write_chunkqueue_freebsdsendfile()
139 strerror(errno), c->file.name); in network_write_chunkqueue_freebsdsendfile()
143 offset = c->file.start + c->offset; in network_write_chunkqueue_freebsdsendfile()
144 toSend = c->file.length - c->offset; in network_write_chunkqueue_freebsdsendfile()
147 if (-1 == c->file.fd) { in network_write_chunkqueue_freebsdsendfile()
148 if (-1 == (c->file.fd = open(c->file.name->ptr, O_RDONLY))) { in network_write_chunkqueue_freebsdsendfile()
155 fcntl(c->file.fd, F_SETFD, FD_CLOEXEC); in network_write_chunkqueue_freebsdsendfile()
162 if (-1 == sendfile(c->file.fd, fd, offset, toSend, NULL, &r, 0)) { in network_write_chunkqueue_freebsdsendfile()
181 if (HANDLER_ERROR == stat_cache_get_entry(srv, con, c->file.name, &sce)) { in network_write_chunkqueue_freebsdsendfile()
198 if (c->offset == c->file.length) { in network_write_chunkqueue_freebsdsendfile()
H A Dnetwork_write.c94 if (HANDLER_ERROR == stat_cache_get_entry(srv, con, c->file.name, &sce)) { in network_write_chunkqueue_write()
96 strerror(errno), c->file.name); in network_write_chunkqueue_write()
100 offset = c->file.start + c->offset; in network_write_chunkqueue_write()
101 toSend = c->file.length - c->offset; in network_write_chunkqueue_write()
106 log_error_write(srv, __FILE__, __LINE__, "sb", "file was shrinked:", c->file.name); in network_write_chunkqueue_write()
111 if (-1 == (ifd = open(c->file.name->ptr, O_RDONLY))) { in network_write_chunkqueue_write()
190 if (c->offset == c->file.length) { in network_write_chunkqueue_write()
H A Dnetwork_solaris_sendfilev.c146 if (HANDLER_ERROR == stat_cache_get_entry(srv, con, c->file.name, &sce)) { in network_write_chunkqueue_solarissendfilev()
148 strerror(errno), c->file.name); in network_write_chunkqueue_solarissendfilev()
152 offset = c->file.start + c->offset; in network_write_chunkqueue_solarissendfilev()
153 toSend = c->file.length - c->offset; in network_write_chunkqueue_solarissendfilev()
157 log_error_write(srv, __FILE__, __LINE__, "sb", "file was shrinked:", c->file.name); in network_write_chunkqueue_solarissendfilev()
162 if (-1 == (ifd = open(c->file.name->ptr, O_RDONLY))) { in network_write_chunkqueue_solarissendfilev()
190 if (c->offset == c->file.length) { in network_write_chunkqueue_solarissendfilev()
/mOS-networking-stack/samples/lighttpd-1.4.32/
H A Dcompile47 file=$1
48 case $file in
68 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
71 file=`cygpath -m "$file" || echo "$file"`
74 file=`winepath -w "$file" || echo "$file"`
87 lib_path=$file
148 set x "$@" -Fo"$file"
161 set x "$@" -I"$file"
166 set x "$@" -I"$file"
209 set x "$@" -Tp"$file"
[all …]
H A Dar-lib47 file=$1
48 case $file in
66 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
69 file=`cygpath -m "$file" || echo "$file"`
72 file=`winepath -w "$file" || echo "$file"`
107 Members may be specified in a file named with @FILE.
148 archive=$file
204 $AR -NOLOGO -REMOVE:"$file" "$archive" || exit $?
222 $AR -NOLOGO -EXTRACT:"$file" "$archive" || exit $?
248 set x "$@" "@$file"
[all …]
H A Dconfig.h.in6 /* Define to 1 if you have the <arpa/inet.h> header file. */
12 /* Define to 1 if you have the <bzlib.h> header file. */
18 /* Define to 1 if you have the <crypt.h> header file. */
21 /* Define to 1 if you have the <dlfcn.h> header file. */
30 /* Define to 1 if you have the <errmsg.h> header file. */
33 /* Define to 1 if you have the <ev.h> header file. */
48 /* Define to 1 if you have the <fcntl.h> header file. */
57 /* Define to 1 if you have the <gdbm.h> header file. */
102 /* Define to 1 if you have the <lber.h> header file. */
105 /* Define to 1 if you have the <ldap.h> header file. */
[all …]
H A Dltmain.sh3849 case $file in
3913 for file
3915 case $file in
4220 case $file in
4240 case $file in
4417 case $file in
4439 wrapper=$file
7529 case $file in
9341 $ECHO "*** using a file magic. Last file checked: $potlib"
10995 rmfiles=$file
[all …]
/mOS-networking-stack/samples/lighttpd-1.4.32/tests/docroot/123/
H A DMakefile.in331 dist_files=`for file in $$list; do echo $$file; done | \
339 for file in $$dist_files; do \
340 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
341 if test -d $$d/$$file; then \
342 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
343 if test -d "$(distdir)/$$file"; then \
346 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
347 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
350 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
352 test -f "$(distdir)/$$file" \
[all …]
/mOS-networking-stack/samples/lighttpd-1.4.32/tests/docroot/www/indexfile/
H A DMakefile.in331 dist_files=`for file in $$list; do echo $$file; done | \
339 for file in $$dist_files; do \
340 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
341 if test -d $$d/$$file; then \
342 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
343 if test -d "$(distdir)/$$file"; then \
346 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
347 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
350 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
352 test -f "$(distdir)/$$file" \
[all …]
/mOS-networking-stack/samples/lighttpd-1.4.32/doc/scripts/
H A DMakefile.in334 dist_files=`for file in $$list; do echo $$file; done | \
342 for file in $$dist_files; do \
343 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
344 if test -d $$d/$$file; then \
345 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
346 if test -d "$(distdir)/$$file"; then \
349 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
350 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
353 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
355 test -f "$(distdir)/$$file" \
[all …]
/mOS-networking-stack/samples/lighttpd-1.4.32/tests/docroot/www/expire/
H A DMakefile.in331 dist_files=`for file in $$list; do echo $$file; done | \
339 for file in $$dist_files; do \
340 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
341 if test -d $$d/$$file; then \
342 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
343 if test -d "$(distdir)/$$file"; then \
346 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
347 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
350 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
352 test -f "$(distdir)/$$file" \
[all …]
/mOS-networking-stack/samples/lighttpd-1.4.32/doc/initscripts/
H A DMakefile.in331 dist_files=`for file in $$list; do echo $$file; done | \
339 for file in $$dist_files; do \
340 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
341 if test -d $$d/$$file; then \
342 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
343 if test -d "$(distdir)/$$file"; then \
346 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
347 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
350 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
352 test -f "$(distdir)/$$file" \
[all …]
/mOS-networking-stack/samples/lighttpd-1.4.32/doc/systemd/
H A DMakefile.in331 dist_files=`for file in $$list; do echo $$file; done | \
339 for file in $$dist_files; do \
340 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
341 if test -d $$d/$$file; then \
342 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
343 if test -d "$(distdir)/$$file"; then \
346 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
347 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
350 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
352 test -f "$(distdir)/$$file" \
[all …]
/mOS-networking-stack/samples/lighttpd-1.4.32/doc/config/vhosts.d/
H A DMakefile.in331 dist_files=`for file in $$list; do echo $$file; done | \
339 for file in $$dist_files; do \
340 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
341 if test -d $$d/$$file; then \
342 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
343 if test -d "$(distdir)/$$file"; then \
346 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
347 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
350 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
352 test -f "$(distdir)/$$file" \
[all …]
/mOS-networking-stack/samples/lighttpd-1.4.32/tests/docroot/www/go/
H A DMakefile.in331 dist_files=`for file in $$list; do echo $$file; done | \
339 for file in $$dist_files; do \
340 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
341 if test -d $$d/$$file; then \
342 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
343 if test -d "$(distdir)/$$file"; then \
346 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
347 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
350 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
352 test -f "$(distdir)/$$file" \
[all …]
/mOS-networking-stack/samples/lighttpd-1.4.32/doc/outdated/
H A Dperformance.txt35 number of open file descriptors.
99 to copy the file into the webserver just to write() it back into a socket
102 sendfile() minimizes the work in the application and pushes a file directly
144 Since file descriptors are used for TCP/IP sockets, files and directories,
145 a simple request for a PHP page might result in using 3 file descriptors:
149 3. the filehandle to the file in the document root to check if it exists
151 If lighttpd runs out of file descriptors, it will stop accepting new
152 connections for awhile to use the existing file descriptors to handle the
155 If more than 90% of the file descriptors are used then the handling of new
176 Instead of using stat() every time to check for the existence of a file
[all …]
H A DMakefile.in411 dist_files=`for file in $$list; do echo $$file; done | \
419 for file in $$dist_files; do \
420 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
421 if test -d $$d/$$file; then \
422 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
423 if test -d "$(distdir)/$$file"; then \
426 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
427 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
430 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
432 test -f "$(distdir)/$$file" \
[all …]
/mOS-networking-stack/samples/lighttpd-1.4.32/doc/config/conf.d/
H A DMakefile.in356 dist_files=`for file in $$list; do echo $$file; done | \
364 for file in $$dist_files; do \
365 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
366 if test -d $$d/$$file; then \
367 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
368 if test -d "$(distdir)/$$file"; then \
371 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
372 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
375 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
377 test -f "$(distdir)/$$file" \
[all …]
/mOS-networking-stack/samples/lighttpd-1.4.32/doc/
H A DMakefile.in437 list=; while read file base inst; do \
561 dist_files=`for file in $$list; do echo $$file; done | \
569 for file in $$dist_files; do \
570 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
571 if test -d $$d/$$file; then \
572 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
573 if test -d "$(distdir)/$$file"; then \
577 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
580 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
582 test -f "$(distdir)/$$file" \
[all …]
/mOS-networking-stack/samples/lighttpd-1.4.32/tests/docroot/
H A DMakefile.in484 dist_files=`for file in $$list; do echo $$file; done | \
492 for file in $$dist_files; do \
493 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
494 if test -d $$d/$$file; then \
495 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
496 if test -d "$(distdir)/$$file"; then \
499 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
500 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
503 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
505 test -f "$(distdir)/$$file" \
[all …]
/mOS-networking-stack/samples/lighttpd-1.4.32/doc/config/
H A DMakefile.in485 dist_files=`for file in $$list; do echo $$file; done | \
493 for file in $$dist_files; do \
494 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
495 if test -d $$d/$$file; then \
496 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
497 if test -d "$(distdir)/$$file"; then \
500 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
501 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
504 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
506 test -f "$(distdir)/$$file" \
[all …]

1234