[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Dishonest docs ?
$ man getcontext
GETCONTEXT(2) Linux Programmer's Manual GETCONTEXT(2)
NAME
getcontext, setcontext - get or set the user context
$ cat test.c
#include <stdio.h>
#include <ucontext.h>
main()
{
ucontext_t uc;
if (getcontext(&uc) == -1) {
perror("getcontext");
}
}
$ cc test.c -o test
/tmp/ccONPX2k.o: In function `main':
/tmp/ccONPX2k.o(.text+0x11): warning: getcontext is not implemented and will always fail