haproxy/src
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
..
acl.c [CLEANUP] shut warnings 'is*' macros from ctype.h on solaris 2007-06-17 21:51:38 +02:00
appsession.c [MAJOR] remove files distributed under an obscure license 2007-09-09 21:56:53 +02:00
backend.c [MEDIUM] stats: report server and backend cumulated downtime 2007-10-22 21:36:23 +02:00
base64.c [CLEANUP] included common/version.h everywhere 2006-06-29 18:54:54 +02:00
buffers.c [MEDIUM] ensure we never overflow in chunk_printf() 2007-09-09 21:09:28 +02:00
cfgparse.c [MEDIUM] stats: report server and backend cumulated downtime 2007-10-22 21:36:23 +02:00
checks.c [MEDIUM] stats: report server and backend cumulated downtime 2007-10-22 21:36:23 +02:00
client.c [BUG] fix wrong timeout computation in event_accept() 2007-10-16 07:41:52 +02:00
cttproxy.c [MEDIUM] check for cttproxy support when required 2007-03-24 17:24:39 +01:00
dumpstats.c [MEDIUM] stats: report server and backend cumulated downtime 2007-10-22 21:36:23 +02:00
ev_epoll.c [MEDIUM] limit the number of events returned by *poll* 2007-06-03 17:16:49 +02:00
ev_kqueue.c [MEDIUM] limit the number of events returned by *poll* 2007-06-03 17:16:49 +02:00
ev_poll.c [BUG] fix null timeouts in *poll-based pollers 2007-05-14 02:02:04 +02:00
ev_select.c [MINOR] allow null timeouts for past events in select 2007-05-14 03:16:06 +02:00
ev_sepoll.c [MAJOR] spec I/O: fix allocations of spec entries for an FD 2007-09-09 21:09:29 +02:00
fd.c [MAJOR] auto-registering of pollers at load time 2007-04-16 00:25:25 +02:00
haproxy.c [BUG] fix calls to localtime() 2007-10-25 10:34:16 +02:00
hdr_idx.c [MAJOR] huge rework of the HTTP request FSM 2007-01-21 19:16:41 +01:00
log.c [BUG] fix calls to localtime() 2007-10-25 10:34:16 +02:00
memory.c [BUG] fix segfault at exit when using captures 2007-06-16 23:19:53 +02:00
proto_http.c [BUG] fix calls to localtime() 2007-10-25 10:34:16 +02:00
proto_uxst.c [BUG] fix off-by-one in path length in destroy_uxst_socket() 2007-10-18 16:15:52 +02:00
protocols.c [MAJOR] added generic protocol support 2007-10-18 14:11:12 +02:00
proxy.c [MEDIUM] moved the sockaddr pointer to the fdtab structure 2007-10-15 17:14:01 +02:00
queue.c [MAJOR] ported pendconn to mempools v2 2007-05-13 20:19:55 +02:00
rbtree.c [MINOR] imported the rbtree function from Linux kernel 2007-01-07 02:12:57 +01:00
regex.c [CLEANUP] shut warnings 'is*' macros from ctype.h on solaris 2007-06-17 21:51:38 +02:00
senddata.c [MEDIUM] moved stats and buffer generic functions to new files 2007-10-18 14:12:21 +02:00
server.c [MEDIUM] stats: report server and backend cumulated downtime 2007-10-22 21:36:23 +02:00
session.c [MAJOR] implemented client-side support for PF_UNIX sockets 2007-10-18 14:11:15 +02:00
sessionhash.c [BUG] fix segfault on exit in new appsession code 2007-10-15 20:08:16 +02:00
standard.c [BUG] fix error checking in strl2ic/strl2uic() 2007-10-25 09:42:24 +02:00
stream_sock.c [MEDIUM] moved the sockaddr pointer to the fdtab structure 2007-10-15 17:14:01 +02:00
task.c Merge branch 'pools' into merge-pools 2007-05-14 02:11:56 +02:00
time.c [MEDIUM] stats: report server and backend cumulated downtime 2007-10-22 21:36:23 +02:00
uri_auth.c [MINOR] report haproxy's version by default on the stats page 2007-10-15 10:05:11 +02:00