raise.c\signal\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/signal/raise.c
blob: f0512019a1921eea797ac84252fd4fd01e3d6d7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <signal.h>
#include <stdint.h>
#include "syscall.h"
#include "pthread_impl.h"
int raise(int sig)
{
	sigset_t set;
	__block_app_sigs(&set);
	int ret = syscall(SYS_tkill, __pthread_self()->tid, sig);
	__restore_sigs(&set);
	return ret;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月09日 15:46:53 +0000

AltStyle によって変換されたページ (->オリジナル) /