Tor Arntsen wrote:
>> Clearly it isn't portable (the sigcontext structure is
>> processor-specific), but then I'm not sure that there is any portable
>> method. Stevens[1] indicates that SA_SIGINFO and struct siginfo are
>> specific to SVR4, and that BSD 4.3+ signal handlers have the
>> prototype:
On Jan 20, 22:01, William M. Perry wrote:
>And evidently libc specific. This fails to compile on a libc5 system
>(redhat 4.x + various weird crap) :)
There's no sigcontext.h in libc5.
glibc-2's sigcontext.h is basically just:
#define sigcontext_struct sigcontext
#include <asm/sigcontext.h>
The structure is called `struct sigcontext' on 2.1.*, and `struct
sigcontext_struct' on 2.0.*.
--
Glynn Clements <glynn(a)sensei.co.uk>