Re: [Linux-ia64] use of setcontext()/getcontext()

stefan
2001-09-29T16:53:56Z

On Thu, 27 Sep 2001, David Mosberger wrote:

> struct rv
> {
> long retval;
> long first_return;
> };
>
> int
> swapcontext (ucontext_t *oucp, const ucontext_t *ucp)
> {
> struct rv rv = getcontext (oucp);
> if (rv.first_return)
> setcontext (ucp);
> return 0;
> }

By including <sys/ucontext.h> and declaring getcontext() and setcontext()
by hand it was possible to port the upcoming GNU Guile release 1.6 to
ia64-linux. Thank you very much for your help !

Thanks,