From d3cfd2687249d2340b738ddeb8ea0660860e9e3f Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Thu, 5 Jan 2017 13:22:26 -0800 Subject: [PATCH] Add declaration of tgkill to signal.h. Expose a useful function that we've had since Jelly Bean. Bug: http://b/34111810 Test: TreeHugger Change-Id: Iaf3097f224c09b533f36050cf21394ba148007ad --- libc/bionic/abort.cpp | 2 -- libc/bionic/pthread_kill.cpp | 2 -- libc/include/signal.h | 1 + 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/libc/bionic/abort.cpp b/libc/bionic/abort.cpp index 9aefd444b..cf8fa8e86 100644 --- a/libc/bionic/abort.cpp +++ b/libc/bionic/abort.cpp @@ -31,8 +31,6 @@ #include #include -extern "C" int tgkill(int tgid, int tid, int sig); - void abort() { // Don't block SIGABRT to give any signal handler a chance; we ignore // any errors -- X311J doesn't allow abort to return anyway. diff --git a/libc/bionic/pthread_kill.cpp b/libc/bionic/pthread_kill.cpp index 93513fac3..72a6ed1c1 100644 --- a/libc/bionic/pthread_kill.cpp +++ b/libc/bionic/pthread_kill.cpp @@ -32,8 +32,6 @@ #include "private/ErrnoRestorer.h" #include "pthread_internal.h" -extern "C" int tgkill(int tgid, int tid, int sig); - int pthread_kill(pthread_t t, int sig) { ErrnoRestorer errno_restorer; diff --git a/libc/include/signal.h b/libc/include/signal.h index 7ae50de3e..ffce1fa3c 100644 --- a/libc/include/signal.h +++ b/libc/include/signal.h @@ -150,6 +150,7 @@ sighandler_t sigset(int, sighandler_t) int raise(int); int kill(pid_t, int); int killpg(int, int); +int tgkill(int tgid, int tid, int sig) __INTRODUCED_IN_32(16); int sigaltstack(const stack_t*, stack_t*); -- 2.11.0