about summary refs log tree commit diff
path: root/src/signal/siglongjmp.c
blob: 2974ff7fc49f9067139db95c72c99f5859121b19 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <setjmp.h>
#include <signal.h>
#include <stdlib.h>
#include "syscall.h"
#include "pthread_impl.h"

_Noreturn void siglongjmp(sigjmp_buf buf, int ret)
{
	if (buf->__fl) __restore_sigs(buf->__ss);
	longjmp(buf, ret);
}