From 6d6c82c7a0a6b9a89f61b61c66f9b90d9c7177dc Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Fri, 9 Jan 2009 17:50:54 -0800 Subject: auto import from //branches/cupcake/...@125939 --- libc/include/setjmp.h | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) (limited to 'libc/include/setjmp.h') diff --git a/libc/include/setjmp.h b/libc/include/setjmp.h index c3a197e..68fdcef 100644 --- a/libc/include/setjmp.h +++ b/libc/include/setjmp.h @@ -43,36 +43,21 @@ #include #include -#if __BSD_VISIBLE || __POSIX_VISIBLE || __XPG_VISIBLE typedef long sigjmp_buf[_JBLEN + 1]; -#endif /* __BSD_VISIBLE || __POSIX_VISIBLE || __XPG_VISIBLE */ - typedef long jmp_buf[_JBLEN]; __BEGIN_DECLS -/* BIONIC SPECIAL: we *don't* save the signal mask in setjmp/longjmp - * this means we comply with ANSI, not with POSIX, and - * our runtime runs well instead of getting stuck - */ -#if 1 -#define setjmp(x) _setjmp(x) -#define longjmp(x,y) _longjmp(x,y) -#else -int setjmp(jmp_buf); -void longjmp(jmp_buf, int); -#endif +int _setjmp(jmp_buf); +void _longjmp(jmp_buf, int); +void longjmperror(void); + +int setjmp(jmp_buf); +void longjmp(jmp_buf, int); -#if __BSD_VISIBLE || __POSIX_VISIBLE || __XPG_VISIBLE -int sigsetjmp(sigjmp_buf, int); -void siglongjmp(sigjmp_buf, int); -#endif /* __BSD_VISIBLE || __POSIX_VISIBLE || __XPG_VISIBLE */ +int sigsetjmp(sigjmp_buf, int); +void siglongjmp(sigjmp_buf, int); -#if __BSD_VISIBLE || __XPG_VISIBLE -int _setjmp(jmp_buf); -void _longjmp(jmp_buf, int); -void longjmperror(void); -#endif /* __BSD_VISIBLE || __XPG_VISIBLE */ __END_DECLS #endif /* !_SETJMP_H_ */ -- cgit v1.1