summaryrefslogtreecommitdiffstats
path: root/libc/include/setjmp.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-01-09 17:50:54 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-01-09 17:50:54 -0800
commit6d6c82c7a0a6b9a89f61b61c66f9b90d9c7177dc (patch)
tree8de86895228b63728c3a134c8b1fcab003db467d /libc/include/setjmp.h
parent4e468ed2eb86a2406e14f1eca82072ee501d05fd (diff)
downloadbionic-6d6c82c7a0a6b9a89f61b61c66f9b90d9c7177dc.zip
bionic-6d6c82c7a0a6b9a89f61b61c66f9b90d9c7177dc.tar.gz
bionic-6d6c82c7a0a6b9a89f61b61c66f9b90d9c7177dc.tar.bz2
auto import from //branches/cupcake/...@125939
Diffstat (limited to 'libc/include/setjmp.h')
-rw-r--r--libc/include/setjmp.h31
1 files changed, 8 insertions, 23 deletions
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 <sys/cdefs.h>
#include <machine/setjmp.h>
-#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_ */