[uClibc]setjmp() & setsigjmp()

Tom Walsh tom at cyberiansoftware.com
Fri May 4 09:01:39 UTC 2001


Hello,

If I am reading this correctly..  A call to setjmp() will save the
processor state within a struct sigjmp_buff (everything, including the
stack and except the status register)?  Then when setlongjmp() is
called, this will restore the processor state back to what it had been
saved into the sigjmp_buff structure?

I need to implement the m68k version of sigsetjmp() and, by looking at
the other processor implementations of this, it appears that a setjmp()
will *always* save into "slot"(?) zero, and with sigsetjmp() it is
possible to specify which "slot" within the sigjmp_buff to place the
processor state?

TIA,

TomW

-- 
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."





More information about the uClibc mailing list