Clarify when ucontext_t is available
authorAndi McClure <andi.mcclure@xamarin.com>
Fri, 15 Jan 2016 19:31:12 +0000 (14:31 -0500)
committerAndi McClure <andi.mcclure@xamarin.com>
Fri, 15 Jan 2016 19:31:12 +0000 (14:31 -0500)
commita4e257a07f511062a8feb3e06e1566fd980110ce
treea8176fe4f019129b492f91d44a7af6d387d0a9cc
parent7a49816cd5a80fbed3a80c55d4cc735fa63decd7
Clarify when ucontext_t is available

mono-context currently uses a mix of MONO_SIGNAL_USE_SIGACTION and
UCONTEXT_REG_RAX #ifs to determine whether ucontext_t is available.
UCONTEXT_REG_RAX is unreliable, and MONO_SIGNAL_USE_SIGACTION is
misnamed because it is nowhere used to gate use of sigaction.
Standardize on a new MONO_SIGNAL_USE_UCONTEXT_T, replacing SIGACTION.
mono/utils/mono-context.c
mono/utils/mono-context.h