summaryrefslogtreecommitdiffstats
path: root/9/platforms/android-19/arch-arm64/usr/include/signal.h
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-03-22 18:02:10 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2014-03-22 18:02:10 +0800
commitb193073d2e5369d848d2135d5a2f642f3242cf0e (patch)
treed94f5455cc8f1c29348a5564b6b93f2612b9befa /9/platforms/android-19/arch-arm64/usr/include/signal.h
parent25ac1196d47cea8ab0d26f6ca692034990f61233 (diff)
downloadprebuilts_ndk-b193073d2e5369d848d2135d5a2f642f3242cf0e.zip
prebuilts_ndk-b193073d2e5369d848d2135d5a2f642f3242cf0e.tar.gz
prebuilts_ndk-b193073d2e5369d848d2135d5a2f642f3242cf0e.tar.bz2
Update 64-bit headers/libs
Change-Id: I8b1908261c49eafa97f3df174c18b09c1a3d9090
Diffstat (limited to '9/platforms/android-19/arch-arm64/usr/include/signal.h')
-rw-r--r--9/platforms/android-19/arch-arm64/usr/include/signal.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/9/platforms/android-19/arch-arm64/usr/include/signal.h b/9/platforms/android-19/arch-arm64/usr/include/signal.h
index 0159bf2..267f3e6 100644
--- a/9/platforms/android-19/arch-arm64/usr/include/signal.h
+++ b/9/platforms/android-19/arch-arm64/usr/include/signal.h
@@ -51,20 +51,23 @@ __BEGIN_DECLS
typedef int sig_atomic_t;
-/* TODO: 64-bit: we should probably #undef the uapi NSIG and add a unit test that NSIG == _NSIG && NSIG >= 64. */
-#ifndef _NSIG
-# define _NSIG 64
-#endif
-#ifndef NSIG
-# define NSIG _NSIG
+/* The arm and x86 kernel header files don't define _NSIG. */
+#ifndef _KERNEL__NSIG
+#define _KERNEL__NSIG 64
#endif
+/* Userspace's NSIG is the kernel's _NSIG + 1. */
+#define _NSIG (_KERNEL__NSIG + 1)
+#define NSIG _NSIG
+
extern const char* const sys_siglist[];
-extern const char* const sys_signame[];
+extern const char* const sys_signame[]; /* BSD compatibility. */
typedef __sighandler_t sig_t; /* BSD compatibility. */
typedef __sighandler_t sighandler_t; /* glibc compatibility. */
+#define si_timerid si_tid /* glibc compatibility. */
+
#if defined(__LP64__)
struct sigaction {