lighttpd1.4/src
Stefan Bühler 6afad87d2e fix buffer, chunk and http_chunk API
* remove unused structs and functions
    (buffer_array, read_buffer)
  * change return type from int to void for many functions,
    as the return value (indicating error/success) was never checked,
    and the function would only fail on programming errors and not on
    invalid input; changed functions to use force_assert instead of
    returning an error.
  * all "len" parameters now are the real size of the memory to be read.
    the length of strings is given always without the terminating 0.
  * the "buffer" struct still counts the terminating 0 in ->used,
    provide buffer_string_length() to get the length of a string in a
    buffer.
    unset config "strings" have used == 0, which is used in some places
    to distinguish unset values from "" (empty string) values.
  * most buffer usages should now use it as string container.
  * optimise some buffer copying by "moving" data to other buffers
  * use (u)intmax_t for generic int-to-string functions
  * remove unused enum values: UNUSED_CHUNK, ENCODING_UNSET
  * converted BUFFER_APPEND_SLASH to inline function (no macro feature
    needed)
  * refactor: create chunkqueue_steal: moving (partial) chunks into another
    queue
  * http_chunk: added separate function to terminate chunked body instead of
    magic handling in http_chunk_append_mem().
    http_chunk_append_* now handle empty chunks, and never terminate the
    chunked body.

From: Stefan Bühler <stbuehler@web.de>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2975 152afb58-edef-0310-8abb-c4023f1b3aa9
2015-02-08 12:37:10 +00:00
..
CMakeLists.txt print backtrace in assert logging with libunwind 2015-02-07 13:32:56 +00:00
Makefile.am print backtrace in assert logging with libunwind 2015-02-07 13:32:56 +00:00
SConscript Always use our 'own' md5 implementation, fixes linking issues on MacOS (fixes #2331) 2011-07-30 09:16:03 +00:00
array.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
array.h Fix header inclusion order, always include "config.h" before any system header 2009-10-11 14:31:42 +00:00
base.h [stat-cache] fix FAM cleanup/fdevent handling 2013-11-13 11:43:31 +00:00
bitset.c add force_assert() to enforce assertions as simple assert()s are disabled by -DNDEBUG (fixes #2546) 2014-02-16 13:08:20 +00:00
bitset.h moved everything below trunk/ and added branches/ and tags/ 2005-02-20 14:27:00 +00:00
buffer.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
buffer.h fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
chunk.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
chunk.h fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
config.h.cmake print backtrace in assert logging with libunwind 2015-02-07 13:32:56 +00:00
configfile-glue.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
configfile.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
configfile.h fixed aggressive caching of conditionals (#41) 2007-08-18 09:27:11 +00:00
configparser.y fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
connections-glue.c Fix some problems with more strict compilers (#1923) 2009-03-07 13:54:10 +00:00
connections.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
connections.h moved everything below trunk/ and added branches/ and tags/ 2005-02-20 14:27:00 +00:00
crc32.c fixed crc32c on 64bit platforms (fixes crc errors) 2005-09-26 12:26:37 +00:00
crc32.h Fix header inclusion order, always include "config.h" before any system header 2009-10-11 14:31:42 +00:00
data_array.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
data_config.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
data_count.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
data_fastcgi.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
data_integer.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
data_string.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
etag.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
etag.h Fix header inclusion order, always include "config.h" before any system header 2009-10-11 14:31:42 +00:00
fastcgi.h - white space cleanup part 2 this time 1.4 ;) 2006-10-04 13:26:23 +00:00
fdevent.c force assertion: setting FD_CLOEXEC must work (if available) 2014-02-16 13:08:29 +00:00
fdevent.h force assertion: setting FD_CLOEXEC must work (if available) 2014-02-16 13:08:29 +00:00
fdevent_freebsd_kqueue.c Move fdevent subsystem includes to implementation files to reduce conflicts (fixes #2373) 2011-12-25 15:35:01 +00:00
fdevent_libev.c add force_assert() to enforce assertions as simple assert()s are disabled by -DNDEBUG (fixes #2546) 2014-02-16 13:08:20 +00:00
fdevent_linux_sysepoll.c force assertion: setting FD_CLOEXEC must work (if available) 2014-02-16 13:08:29 +00:00
fdevent_poll.c Move fdevent subsystem includes to implementation files to reduce conflicts (fixes #2373) 2011-12-25 15:35:01 +00:00
fdevent_select.c add force_assert() to enforce assertions as simple assert()s are disabled by -DNDEBUG (fixes #2546) 2014-02-16 13:08:20 +00:00
fdevent_solaris_devpoll.c force assertion: setting FD_CLOEXEC must work (if available) 2014-02-16 13:08:29 +00:00
fdevent_solaris_port.c fdevent: add solaris eventports (fixes #2171) 2011-06-13 17:34:57 +00:00
http-header-glue.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
http_auth.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
http_auth.h [mod_auth] some cleanup, only search for matching auth.require path once 2013-08-30 13:14:54 +00:00
http_chunk.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
http_chunk.h fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
inet_ntop_cache.c Fix header inclusion order, always include "config.h" before any system header 2009-10-11 14:31:42 +00:00
inet_ntop_cache.h moved everything below trunk/ and added branches/ and tags/ 2005-02-20 14:27:00 +00:00
joblist.c Fix header inclusion order, always include "config.h" before any system header 2009-10-11 14:31:42 +00:00
joblist.h moved everything below trunk/ and added branches/ and tags/ 2005-02-20 14:27:00 +00:00
keyvalue.c [core] recognize more http methods to forward to backends (fixes #2346) 2013-06-29 10:53:24 +00:00
keyvalue.h [core] recognize more http methods to forward to backends (fixes #2346) 2013-06-29 10:53:24 +00:00
lemon.c fix/silence bugs reported by ccc-analyzer (clang) 2013-11-13 11:43:26 +00:00
lempar.c Use NULL instead of 0 where pointers are expected. 2012-08-31 14:11:43 +00:00
lighttpd-angel.c [lighttpd-angel] Remove unused variable. 2012-08-31 14:11:46 +00:00
log.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
log.h add force_assert() to enforce assertions as simple assert()s are disabled by -DNDEBUG (fixes #2546) 2014-02-16 13:08:20 +00:00
md5.c [md5] Fix non-ANSI function definitions. 2012-08-31 14:11:42 +00:00
md5.h [ssl/md5] prefix our own md5 implementation with li_ so it doesn't conflict with the openssl one (fixes #2269) 2011-04-24 16:02:52 +00:00
mod_access.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_accesslog.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_alias.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_auth.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_auth.h moved everything below trunk/ and added branches/ and tags/ 2005-02-20 14:27:00 +00:00
mod_cgi.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_cml.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_cml.h - white space cleanup part 2 this time 1.4 ;) 2006-10-04 13:26:23 +00:00
mod_cml_funcs.c Always use our 'own' md5 implementation, fixes linking issues on MacOS (fixes #2331) 2011-07-30 09:16:03 +00:00
mod_cml_funcs.h Fix header inclusion order, always include "config.h" before any system header 2009-10-11 14:31:42 +00:00
mod_cml_lua.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_compress.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_dirlisting.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_evasive.c fix/silence bugs reported by ccc-analyzer (clang) 2013-11-13 11:43:26 +00:00
mod_evhost.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_expire.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_extforward.c add force_assert() to enforce assertions as simple assert()s are disabled by -DNDEBUG (fixes #2546) 2014-02-16 13:08:20 +00:00
mod_fastcgi.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_flv_streaming.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_indexfile.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_magnet.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_magnet_cache.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_magnet_cache.h lua_State has to be put into the #ifdef too 2006-09-15 15:32:18 +00:00
mod_mysql_vhost.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_proxy.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_redirect.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_rewrite.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_rrdtool.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_scgi.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_secure_download.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_setenv.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_simple_vhost.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_skeleton.c fix/silence bugs reported by ccc-analyzer (clang) 2013-11-13 11:43:26 +00:00
mod_ssi.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_ssi.h Add ssi.content-type option (default text/html, fixes #615) 2009-06-10 14:50:42 +00:00
mod_ssi_expr.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_ssi_expr.h [mod_ssi] fix "ssi_val_init" prototype 2013-11-13 17:18:35 +00:00
mod_ssi_exprparser.y Fix header inclusion order, always include "config.h" before any system header 2009-10-11 14:31:42 +00:00
mod_staticfile.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_status.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_trigger_b4_dl.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_uploadprogress.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_userdir.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_usertrack.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
mod_webdav.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
network.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
network.h Limit amount of bytes we send in one go; fixes stalling in one connection and timeouts on slow systems. 2011-08-22 15:12:28 +00:00
network_backends.h Disable mmap by default (fixes #2391) 2012-02-24 18:34:20 +00:00
network_freebsd_sendfile.c force assertion: setting FD_CLOEXEC must work (if available) 2014-02-16 13:08:29 +00:00
network_linux_sendfile.c force assertion: setting FD_CLOEXEC must work (if available) 2014-02-16 13:08:29 +00:00
network_openssl.c [network] check return value of lseek() 2014-02-16 13:08:32 +00:00
network_solaris_sendfilev.c Limit amount of bytes we send in one go; fixes stalling in one connection and timeouts on slow systems. 2011-08-22 15:12:28 +00:00
network_write.c [network] check return value of lseek() 2014-02-16 13:08:32 +00:00
network_writev.c force assertion: setting FD_CLOEXEC must work (if available) 2014-02-16 13:08:29 +00:00
plugin.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
plugin.h Fix non-ANSI function declarations. 2012-08-31 14:11:41 +00:00
proc_open.c fix some bugs found with canalyze (fixes #2484, thx Zhenbo Xu) 2013-05-15 10:31:07 +00:00
proc_open.h Fix leaving zombie process with include_shell (#1777) 2008-09-30 19:42:29 +00:00
request.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
request.h moved everything below trunk/ and added branches/ and tags/ 2005-02-20 14:27:00 +00:00
response.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
response.h Fix header inclusion order, always include "config.h" before any system header 2009-10-11 14:31:42 +00:00
server.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
server.h moved everything below trunk/ and added branches/ and tags/ 2005-02-20 14:27:00 +00:00
settings.h add force_assert() to enforce assertions as simple assert()s are disabled by -DNDEBUG (fixes #2546) 2014-02-16 13:08:20 +00:00
splaytree.c Fix header inclusion order, always include "config.h" before any system header 2009-10-11 14:31:42 +00:00
splaytree.h - white space cleanup part 2 this time 1.4 ;) 2006-10-04 13:26:23 +00:00
stat_cache.c fix buffer, chunk and http_chunk API 2015-02-08 12:37:10 +00:00
stat_cache.h cleanup fdevent code, removed linux-rtsig handler, replaced some fprintf calls 2010-08-06 21:57:15 +00:00
status_counter.c Fix header inclusion order, always include "config.h" before any system header 2009-10-11 14:31:42 +00:00
status_counter.h Fix header inclusion order, always include "config.h" before any system header 2009-10-11 14:31:42 +00:00
stream.c Use NULL instead of 0 where pointers are expected. 2012-08-31 14:11:43 +00:00
stream.h moved everything below trunk/ and added branches/ and tags/ 2005-02-20 14:27:00 +00:00
sys-mmap.h moved everything below trunk/ and added branches/ and tags/ 2005-02-20 14:27:00 +00:00
sys-socket.h ECONNABORTED is not known on cygwin (fixes #863) 2007-04-09 20:31:03 +00:00
version.h Fix header inclusion order, always include "config.h" before any system header 2009-10-11 14:31:42 +00:00