From 8f86b8a1977128e2795737fed2577b377cc2b15e Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sun, 13 Mar 2011 20:10:13 +0100 Subject: move *longjmp related prototypes to setjmp.h Provide common prototypes for __longjmp, __libc_longjmp, __libc_siglongjmp _longjmp_unwind, __libc_unwind_longjmp in setjmp.h in preparation for use in LT new Add __longjmp to h8300 and i960 Make common longjmp.c good for NPTL Guard _longjmp_unwind use in sh's longjmp.c for NPTL (I think sh could use the common one) Remove unneeded attribute_noreturn, prototype provides it already Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- include/setjmp.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/setjmp.h') diff --git a/include/setjmp.h b/include/setjmp.h index fb9c078f7..c70f77198 100644 --- a/include/setjmp.h +++ b/include/setjmp.h @@ -113,4 +113,14 @@ extern void siglongjmp (sigjmp_buf __env, int __val) __END_DECLS +#ifdef _LIBC +extern void __longjmp(__jmp_buf __env, int __val) attribute_noreturn; +libc_hidden_proto(__longjmp) +extern __typeof(longjmp) __libc_longjmp attribute_noreturn; +extern __typeof(siglongjmp) __libc_siglongjmp attribute_noreturn; +extern void _longjmp_unwind(jmp_buf __env, int __val); +/* We use the normal longjmp for unwinding */ +# define __libc_unwind_longjmp(buf, val) __libc_longjmp(buf, val) +#endif + #endif /* setjmp.h */ -- cgit v1.2.3