Revert "libc: Provide ucontext_t/mcontext_t/<sys/ucontext.h>"
This creates build issues in the internal Android tree.
Will investigate later.
Original patch: https://android-review.googlesource.com/#/c/38875/
Change-Id: I12c5995ebf172890051af42a5d3b31014c9c5117
diff --git a/libc/bionic/pthread.c b/libc/bionic/pthread.c
index a6c1908..da3a551 100644
--- a/libc/bionic/pthread.c
+++ b/libc/bionic/pthread.c
@@ -2106,8 +2106,8 @@
* the C library ABI, so perform a little runtime translation here.
*/
typedef union {
- sigset_t bionic;
- __kernel_sigset_t kernel;
+ sigset_t bionic;
+ uint32_t kernel[2];
} kernel_sigset_t;
/* this is a private syscall stub */
@@ -2124,8 +2124,8 @@
kernel_sigset_t in_set, *in_set_ptr;
kernel_sigset_t out_set;
- memset(&in_set.kernel, 0, sizeof(in_set.kernel));
- memset(&out_set.kernel, 0, sizeof(out_set.kernel));
+ in_set.kernel[0] = in_set.kernel[1] = 0;
+ out_set.kernel[0] = out_set.kernel[1] = 0;
/* 'in_set_ptr' is the second parameter to __rt_sigprocmask. It must be NULL
* if 'set' is NULL to ensure correct semantics (which in this case would