nginx/src/event
Maxim Dounin baa239c487 Fixed signed integer overflows in timer code (ticket #145).
Integer overflow is undefined behaviour in C and this indeed caused
problems on Solaris/SPARC (at least in some cases).  Fix is to
subtract unsigned integers instead, and then cast result to a signed
one, which is implementation-defined behaviour and used to work.

Strictly speaking, we should compare (unsigned) result with the maximum
value of the corresponding signed integer type instead, this will be
defined behaviour.  This will require much more changes though, and
considered to be overkill for now.
2012-04-06 23:46:09 +00:00
..
modules Fixed spelling in multiline C comments. 2012-04-03 07:37:31 +00:00
ngx_event.c Copyright updated. 2012-01-18 15:07:43 +00:00
ngx_event.h Fixed spelling in single-line comments. 2012-02-28 11:31:05 +00:00
ngx_event_accept.c Copyright updated. 2012-01-18 15:07:43 +00:00
ngx_event_acceptex.c Copyright updated. 2012-01-18 15:07:43 +00:00
ngx_event_busy_lock.c Copyright updated. 2012-01-18 15:07:43 +00:00
ngx_event_busy_lock.h Copyright updated. 2012-01-18 15:07:43 +00:00
ngx_event_connect.c Fixed error handling in ngx_event_connect_peer(). 2012-01-30 11:12:52 +00:00
ngx_event_connect.h Copyright updated. 2012-01-18 15:07:43 +00:00
ngx_event_connectex.c Copyright updated. 2012-01-18 15:07:43 +00:00
ngx_event_mutex.c Copyright updated. 2012-01-18 15:07:43 +00:00
ngx_event_openssl.c Fixed spelling in multiline C comments. 2012-04-03 07:37:31 +00:00
ngx_event_openssl.h Copyright updated. 2012-01-18 15:07:43 +00:00
ngx_event_pipe.c Fixed spelling in single-line comments. 2012-02-28 11:31:05 +00:00
ngx_event_pipe.h Copyright updated. 2012-01-18 15:07:43 +00:00
ngx_event_posted.c Copyright updated. 2012-01-18 15:07:43 +00:00
ngx_event_posted.h Copyright updated. 2012-01-18 15:07:43 +00:00
ngx_event_timer.c Fixed signed integer overflows in timer code (ticket #145). 2012-04-06 23:46:09 +00:00
ngx_event_timer.h Copyright updated. 2012-01-18 15:07:43 +00:00