openssl/crypto/async/arch
Viktor Dukhovni 6e8ac50870 Async error handling and MacOS/X fixes
In the async code for MacOS/X define _XOPEN_SOURCE (if not already
defined) as early as possible.  We must do this before including
any header files, because on MacOS/X <stlib.h> includes <signal.h>
which includes <ucontext.h>.  If we delay defining _XOPEN_SOURCE
and include <ucontext.h> after various system headers are included,
we are very likely to end up with the wrong (truncated) definition
of ucontext_t.

Also, better error handling and some code cleanup in POSIX fibre
construction and destruction.  We make sure that async_fibre_makecontext()
always initializes the fibre to a state that can be freed.

For all implementations, check for error returns from
async_fibre_makecontext().

Reviewed-by: Matt Caswell <matt@openssl.org>
2015-11-22 16:54:43 -05:00
..
async_null.c Async error handling and MacOS/X fixes 2015-11-22 16:54:43 -05:00
async_null.h Simplify async pool handling 2015-11-20 23:37:17 +00:00
async_posix.c Async error handling and MacOS/X fixes 2015-11-22 16:54:43 -05:00
async_posix.h Async error handling and MacOS/X fixes 2015-11-22 16:54:43 -05:00
async_win.c Async error handling and MacOS/X fixes 2015-11-22 16:54:43 -05:00
async_win.h Async error handling and MacOS/X fixes 2015-11-22 16:54:43 -05:00