1 #include <setjmp.h>
2 #include <signal.h>
3 #include "syscall.h"
4 #include "pthread_impl.h"
5
siglongjmp(sigjmp_buf buf,int ret)6 _Noreturn void siglongjmp(sigjmp_buf buf, int ret)
7 {
8 /* If sigsetjmp was called with nonzero savemask flag, the address
9 * longjmp will return to is inside of sigsetjmp. The signal mask
10 * will then be restored in the returned-to context instead of here,
11 * which matters if the context we are returning from may not have
12 * sufficient stack space for signal delivery. */
13 longjmp(buf, ret);
14 }
15