Commit Graph

9 Commits

Author SHA1 Message Date
vasilito 5a441d5a1c setjmp.h: declare the POSIX _setjmp/_longjmp
relibc already exports both -- nm libc.a shows 'T _setjmp' and
'T _longjmp' as aliases of setjmp/longjmp -- but setjmp.h never declared
them, so callers got an implicit declaration. GCC 14+ makes that an
error:

    lua-5.4.4/src/ldo.c:66: error: implicit declaration of function
    '_longjmp'; did you mean 'longjmp'?

which broke wireplumber, since it bundles Lua and Lua uses them under
LUA_USE_POSIX.

The difference between the two forms is whether the signal mask is
saved; relibc's implementation saves it in neither, so exporting them as
aliases is accurate rather than a convenience.
2026-08-03 20:25:32 +03:00
Wildan M f731a20e02 Move sigsetjmp and siglongjmp to setjmp.h 2026-05-18 19:03:11 +07:00
Wildan M 043ec22076 FIx sigjmp_buf and add tests 2026-05-02 16:59:48 +07:00
Jeremy Soller ed575e9259 Implement sigsetjmp on all archs 2025-04-11 20:18:27 -06:00
Bendeguz Pisch 35a3efd936 Implement sigsetjmp and siglongjmp for X64 2025-01-04 00:29:19 +00:00
Andrey Turkin a4122753e6 Initial RISC-V64 support 2024-10-11 06:44:54 +03:00
Robin Randhawa 0842d6504b aarch64: Fix typo in a jmp_buf preprocessor conditional 2018-12-23 16:04:35 +05:30
Tibor Nagy d4308c8a9b Disable symbol mangling for C++ 2018-10-28 13:24:34 +01:00
jD91mZM2 ad324a0e4d Use global_asm for setjmp instead 2018-06-26 10:21:44 +02:00