projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
remove useless __yield alias for sched_yield
[oweals/musl.git]
/
src
/
signal
/
raise.c
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 pid, tid, ret;
9
sigset_t set;
10
__block_app_sigs(&set);
11
tid = __syscall(SYS_gettid);
12
pid = __syscall(SYS_getpid);
13
ret = syscall(SYS_tgkill, pid, tid, sig);
14
__restore_sigs(&set);
15
return ret;
16
}