1998-09-07 07:45:24 +08:00
|
|
|
#ifndef _SETJMP_H
|
1995-02-18 09:27:10 +08:00
|
|
|
#include <setjmp/setjmp.h>
|
1998-08-10 01:39:48 +08:00
|
|
|
|
|
|
|
/* Now define the internal interfaces. */
|
|
|
|
|
|
|
|
/* Internal machine-dependent function to restore context sans signal mask. */
|
1999-11-24 01:31:31 +08:00
|
|
|
extern void __longjmp (__jmp_buf __env, int __val)
|
1998-08-10 01:39:48 +08:00
|
|
|
__attribute__ ((__noreturn__));
|
|
|
|
|
|
|
|
/* 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-24 01:31:31 +08:00
|
|
|
extern int __sigjmp_save (jmp_buf __env, int __savemask);
|
2000-12-06 01:34:28 +08:00
|
|
|
|
|
|
|
extern void _longjmp_unwind (jmp_buf env, int val);
|
|
|
|
|
2002-08-21 16:08:03 +08:00
|
|
|
extern void __libc_siglongjmp (sigjmp_buf env, int val)
|
2000-12-28 04:25:30 +08:00
|
|
|
__attribute__ ((noreturn));
|
2002-08-21 16:08:03 +08:00
|
|
|
extern void __libc_longjmp (sigjmp_buf env, int val)
|
|
|
|
__attribute__ ((noreturn));
|
2002-12-31 17:46:42 +08:00
|
|
|
libc_hidden_proto (__libc_longjmp)
|
2000-12-28 04:25:30 +08:00
|
|
|
|
2002-12-31 17:36:52 +08:00
|
|
|
libc_hidden_proto (_setjmp)
|
|
|
|
|
1998-09-07 07:45:24 +08:00
|
|
|
#endif
|