blob: 9323a8697cf0f2283007665abddaed5a7aea9fa2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <thread.h>
#include <asm-generic/signal.h>
#include <syscall.h>
typedef struct __thread_self *pthread_t;
int pthread_kill(pthread_t thread, int sig)
{
if (sig < 0 || sig > _NSIG) {
return EINVAL;
}
if (thread->tid == 0) {
return 0;
}
return syscall(tkill, thread->tid, sig);
}
|