libc: Provide ucontext_t/mcontext_t/<sys/ucontext.h>

This patch updates the C library headers to provide ucontext_t
definitions for three architectures.

+ Fix <signal.h> to always define 'struct sigcontext'.

The new declarations are announced with new macros defined in
<sys/cdefs.h> in order to make it easier to adapt client code
that already defines its own, incompatible, versions of the
structures seen here.

http://code.google.com/p/android/issues/detail?id=34784

Change-Id: Ie78c48690a4ce61c50593f6c39639be7fead3596
This commit is contained in:
David 'Digit' Turner
2012-07-12 19:06:15 +02:00
parent a9944cfe9e
commit c124baaf29
14 changed files with 837 additions and 159 deletions

View File

@@ -30,10 +30,7 @@
#include <sys/cdefs.h>
#include <sys/time.h>
#define __ARCH_SI_UID_T __kernel_uid32_t
#include <asm/siginfo.h>
#undef __ARCH_SI_UID_T
#include <machine/signal.h> /* for struct sigevent */
__BEGIN_DECLS