update elf.h with powerpc64 elfv2 abi related macros
[musl.git] / src / signal / raise.c
blob717b1c917a34311ab514c7955e995c2fbad140b9
1 #include <signal.h>
2 #include <stdint.h>
3 #include "syscall.h"
4 #include "pthread_impl.h"
6 int raise(int sig)
8 int tid, ret;
9 sigset_t set;
10 __block_app_sigs(&set);
11 tid = __syscall(SYS_gettid);
12 ret = syscall(SYS_tkill, tid, sig);
13 __restore_sigs(&set);
14 return ret;