xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame] | 1 | #ifndef _SETJMP_H |
| 2 | #include <setjmp/setjmp.h> |
| 3 | |
| 4 | #ifndef _ISOMAC |
| 5 | /* Now define the internal interfaces. */ |
| 6 | |
| 7 | /* Internal machine-dependent function to restore context sans signal mask. */ |
| 8 | extern void __longjmp (__jmp_buf __env, int __val) |
| 9 | __attribute__ ((__noreturn__)) attribute_hidden; |
| 10 | |
| 11 | /* Internal function to possibly save the current mask of blocked signals |
| 12 | in ENV, and always set the flag saying whether or not it was saved. |
| 13 | This is used by the machine-dependent definition of `__sigsetjmp'. |
| 14 | Always returns zero, for convenience. */ |
| 15 | extern int __sigjmp_save (jmp_buf __env, int __savemask); |
| 16 | |
| 17 | extern void _longjmp_unwind (jmp_buf env, int val); |
| 18 | |
| 19 | extern void __libc_siglongjmp (sigjmp_buf env, int val) |
| 20 | __attribute__ ((noreturn)); |
| 21 | extern void __libc_longjmp (sigjmp_buf env, int val) |
| 22 | __attribute__ ((noreturn)); |
| 23 | libc_hidden_proto (__libc_longjmp) |
| 24 | |
| 25 | libc_hidden_proto (_setjmp) |
| 26 | libc_hidden_proto (__sigsetjmp) |
| 27 | |
| 28 | # if IS_IN (rtld) |
| 29 | extern __typeof (__sigsetjmp) __sigsetjmp attribute_hidden; |
| 30 | # endif |
| 31 | #endif |
| 32 | |
| 33 | #endif |