getcontext not implemented?

Bharadwaj Yadavalli sby@ives.lkg.dec.com
Mon Oct 30 06:24:00 GMT 2000


Do excuse me if this is an FAQ.

Compiling the following program on my Linux/Alpha
box that has glibc 2.1.2 results in a warning

  warning: getcontext is not implemented and will always fail

#include <ucontext.h>
#include <stdio.h>

int
main ()
{
  ucontext_t ucp;

  if (getcontext(&ucp) == 0)
    printf("Flags: 0x%x\n", ucp.uc_flags);
  else
    printf("call to getcontext failed\n");
}

It works fine on Tru64 though.

Can some one enlighten me on this?

Thanks,

Bharadwaj


More information about the Libc-alpha mailing list