summaryrefslogtreecommitdiff
path: root/src/setjmp/longjmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/setjmp/longjmp.c')
-rw-r--r--src/setjmp/longjmp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/setjmp/longjmp.c b/src/setjmp/longjmp.c
index 26c65299..c9ea0d28 100644
--- a/src/setjmp/longjmp.c
+++ b/src/setjmp/longjmp.c
@@ -5,17 +5,19 @@
_Noreturn void longjmp(jmp_buf env, int val)
{
- extern _Noreturn void __longjmp(jmp_buf);
+ extern _Noreturn void ___longjmp(jmp_buf);
SIGNAL_SAFE(0);
/* use val if nonzero, otherwise 1 */
env[0] = val ? val : 1;
for (;;) {
- __longjmp(env);
+ ___longjmp(env);
}
}
+__vcheck_2(longjmp, jmp_buf, int)
+
/***
restores the environment of a previous call to FUNCTION(setjmp)
and continues execution at the location of the call to FUNCTION(setjmp).