This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
getcontext not implemented?
- To: libc-hacker at sourceware dot cygnus dot com,libc-alpha at sourceware dot cygnus dot com
- Subject: getcontext not implemented?
- From: Bharadwaj Yadavalli <sby at ives dot lkg dot dec dot com>
- Date: Mon, 30 Oct 2000 09:24:12 -0500 (EST)
- Reply-To: sby at ives dot lkg dot dec dot com
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