Subject: Re: Need info on meaning of elements of jmp_buf!
To: None <port-m68k@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: port-m68k
Date: 08/12/1998 11:52:53
In article <Pine.LNX.3.96.980812094456.1091A-100000@asta4.rz.fh-ulm.de> reiner@asta4.rz.fh-ulm.de (Reiner Buehl) writes:
>Hi,
>
>where can I find  more information about the different types of
>information stored in the array jmp_buf from setjmp.h? I need to know
>which field represents the stack pointer. Is there a description of this
>array? I couldn't find anything in the man pages nor in the header files
>(setjmp.h, machine/setjmp.h, m68k/setjmp.h) execpt that it seems to be an
>array of 17 longs.
>

If you need this just for the stack pointer (I presume because you want
to use alternate stacks to implement threads), there is a more portable
way of doing this using a combination of sigaltstack()/setjmp()/longjmp().

christos