[uClibc]setjmp() & setsigjmp()

David McCullough davidm at lineo.com
Sun May 6 14:07:30 UTC 2001


Jivin Erik Andersen lays it down ...
> On Fri May 04, 2001 at 05:01:39AM -0400, Tom Walsh wrote:
> > 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?



More information about the uClibc mailing list