repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
update elf.h with powerpc64 elfv2 abi related macros
[musl.git]
/
src
/
signal
/
raise.c
blob
717b1c917a34311ab514c7955e995c2fbad140b9
1
#include <signal.h>
2
#include <stdint.h>
3
#include
"syscall.h"
4
#include
"pthread_impl.h"
5
6
int
raise
(
int
sig
)
7
{
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
;
15
}