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

From: stefan <stefan_at_lkcc.org>
Date: 2001-09-30 02:53:56
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,
	stefan@lkcc.org
Received on Sat Sep 29 10:02:14 2001

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:05 EST