haproxy/include/common
Willy Tarreau fe94460d53 [BUG] fix calls to localtime()
localtime() was called with pointers to tv_sec, which is time_t on
some platforms and long on others. A problem was encountered on
Sparc64 under OpenBSD where tv_sec is long (64 bits) and time_t is
32 bits. Since this architecture is big-endian, it exhibited the
bug because localtime() always worked with the high part of the
value which is always zero. This problem was identified and debugged
by Thierry Fournier.

The correct solution is to pass the date by value and not by pointer,
through an intermediate function. The use of localtime_r() instead of
localtime() also made it possible to get rid of the first call to
localtime() since it does not need to allocate memory anymore.
2007-10-25 10:34:16 +02:00
..
appsession.h [MAJOR] remove files distributed under an obscure license 2007-09-09 21:56:53 +02:00
base64.h [CLEANUP] included common/version.h everywhere 2006-06-29 18:54:54 +02:00
cfgparse.h [CLEANUP] add a few "const char *" where appropriate 2006-10-15 15:17:57 +02:00
compat.h [MINOR] add support for variable size arrays in structures 2007-05-08 14:08:05 +02:00
config.h [MEDIUM] implement memory pools version 2 2007-05-13 18:26:08 +02:00
debug.h [BUILD] debug.h had a typo. Also add FSM_PRINTF to debug FSM only. 2006-12-16 23:22:58 +01:00
defaults.h [MINOR] report haproxy's version by default on the stats page 2007-10-15 10:05:11 +02:00
epoll.h [BUILD] declare epoll_* as static when using our own functions 2007-04-15 23:57:41 +02:00
memory.h [MAJOR] call garbage collector when doing soft stop 2007-05-14 00:39:29 +02:00
mini-clist.h [MINOR] add LIST_HEAD_INIT to the list management macros 2007-05-08 14:07:44 +02:00
rbtree.h [MINOR] imported the rbtree function from Linux kernel 2007-01-07 02:12:57 +01:00
regex.h [MAJOR] merged the 'setbe' actions to switch the backend on a regex 2006-12-17 23:15:24 +01:00
sessionhash.h [MAJOR] remove files distributed under an obscure license 2007-09-09 21:56:53 +02:00
standard.h [BUG] fix calls to localtime() 2007-10-25 10:34:16 +02:00
template.h [CLEANUP] included common/version.h everywhere 2006-06-29 18:54:54 +02:00
time.h [MEDIUM] stats: report server and backend cumulated downtime 2007-10-22 21:36:23 +02:00
tools.h [MINOR] forgot to include common/tools.h in the archive. 2006-12-22 14:40:41 +01:00
uri_auth.h [MINOR] report haproxy's version by default on the stats page 2007-10-15 10:05:11 +02:00
version.h [BUILD] centralize version and date into one file for each 2007-09-09 23:31:11 +02:00