projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add legacy sys/ttydefaults.h header
[oweals/musl.git]
/
src
/
signal
/
raise.c
1
#include <signal.h>
2
#include <errno.h>
3
#include <stdint.h>
4
#include "syscall.h"
5
#include "pthread_impl.h"
6
7
int raise(int sig)
8
{
9
int pid, tid, ret;
10
sigset_t set;
11
__block_app_sigs(&set);
12
tid = __syscall(SYS_gettid);
13
pid = __syscall(SYS_getpid);
14
ret = syscall(SYS_tgkill, pid, tid, sig);
15
__restore_sigs(&set);
16
return ret;
17
}