1998-09-06 23:45:24 +00:00
|
|
|
#ifndef _SETJMP_H
|
1995-02-18 01:27:10 +00:00
|
|
|
#include <setjmp/setjmp.h>
|
1998-08-09 17:39:48 +00:00
|
|
|
|
2012-02-26 04:18:39 +00:00
|
|
|
#ifndef _ISOMAC
|
1998-08-09 17:39:48 +00:00
|
|
|
/* Now define the internal interfaces. */
|
|
|
|
|
|
|
|
/* Internal machine-dependent function to restore context sans signal mask. */
|
1999-11-23 17:31:31 +00:00
|
|
|
extern void __longjmp (__jmp_buf __env, int __val)
|
2015-10-15 21:22:10 +00:00
|
|
|
__attribute__ ((__noreturn__)) attribute_hidden;
|
1998-08-09 17:39:48 +00:00
|
|
|
|
|
|
|
/* Internal function to possibly save the current mask of blocked signals
|
|
|
|
in ENV, and always set the flag saying whether or not it was saved.
|
|
|
|
This is used by the machine-dependent definition of `__sigsetjmp'.
|
|
|
|
Always returns zero, for convenience. */
|
1999-11-23 17:31:31 +00:00
|
|
|
extern int __sigjmp_save (jmp_buf __env, int __savemask);
|
2000-12-05 17:34:28 +00:00
|
|
|
|
|
|
|
extern void _longjmp_unwind (jmp_buf env, int val);
|
|
|
|
|
2002-08-21 08:08:03 +00:00
|
|
|
extern void __libc_siglongjmp (sigjmp_buf env, int val)
|
2012-02-26 04:18:39 +00:00
|
|
|
__attribute__ ((noreturn));
|
2002-08-21 08:08:03 +00:00
|
|
|
extern void __libc_longjmp (sigjmp_buf env, int val)
|
|
|
|
__attribute__ ((noreturn));
|
2002-12-31 09:46:42 +00:00
|
|
|
libc_hidden_proto (__libc_longjmp)
|
2000-12-27 20:25:30 +00:00
|
|
|
|
2002-12-31 09:36:52 +00:00
|
|
|
libc_hidden_proto (_setjmp)
|
2003-08-31 18:10:47 +00:00
|
|
|
libc_hidden_proto (__sigsetjmp)
|
2015-10-15 21:22:10 +00:00
|
|
|
|
|
|
|
# if IS_IN (rtld)
|
|
|
|
extern __typeof (__sigsetjmp) __sigsetjmp attribute_hidden;
|
|
|
|
# endif
|
2012-02-26 04:18:39 +00:00
|
|
|
#endif
|
2002-12-31 09:36:52 +00:00
|
|
|
|
1998-09-06 23:45:24 +00:00
|
|
|
#endif
|