OSDN Git Service

Add declaration of tgkill to signal.h.
authorJosh Gao <jmgao@google.com>
Thu, 5 Jan 2017 21:22:26 +0000 (13:22 -0800)
committerJosh Gao <jmgao@google.com>
Thu, 5 Jan 2017 23:15:12 +0000 (15:15 -0800)
Expose a useful function that we've had since Jelly Bean.

Bug: http://b/34111810
Test: TreeHugger
Change-Id: Iaf3097f224c09b533f36050cf21394ba148007ad

libc/bionic/abort.cpp
libc/bionic/pthread_kill.cpp
libc/include/signal.h

index 9aefd44..cf8fa8e 100644 (file)
@@ -31,8 +31,6 @@
 #include <stdlib.h>
 #include <unistd.h>
 
-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.
index 93513fa..72a6ed1 100644 (file)
@@ -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;
 
index 7ae50de..ffce1fa 100644 (file)
@@ -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*);