Contents of /trunk/mkinitrd-magellan/klibc/usr/klibc/siglongjmp.c
Parent Directory | Revision Log
Revision 532 -
(show annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 328 byte(s)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 328 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
1 | /* |
2 | * siglongjmp.c |
3 | * |
4 | * sigsetjmp() is a macro, by necessity (it's either that or write |
5 | * it in assembly), but siglongjmp() is a normal function. |
6 | */ |
7 | |
8 | #include <setjmp.h> |
9 | #include <signal.h> |
10 | |
11 | __noreturn siglongjmp(sigjmp_buf buf, int retval) |
12 | { |
13 | sigprocmask(SIG_SETMASK, &buf->__sigs, NULL); |
14 | longjmp(buf->__jmpbuf, retval); |
15 | } |