Re: struct sigcontext in a sa_sigaction handler

2015-04-14 Thread Philip Guenther
On Tue, Apr 14, 2015 at 2:59 PM, Mark Kettenis wrote: >> From: "Todd C. Miller" >> >> The situation is a little complicated. POSIX defines the third >> argument to the sa_sigaction handler as void * and says it may be >> cast to ucontext_t. On OpenBSD, it is really a pointer to struct >> sigcon

Re: struct sigcontext in a sa_sigaction handler

2015-04-14 Thread Mark Kettenis
> From: "Todd C. Miller" > Date: Tue, 14 Apr 2015 10:52:47 -0600 > > The situation is a little complicated. POSIX defines the third > argument to the sa_sigaction handler as void * and says it may be > cast to ucontext_t. On OpenBSD, it is really a pointer to struct > sigcontext but this is rea

Re: struct sigcontext in a sa_sigaction handler

2015-04-14 Thread Theo de Raadt
> The situation is a little complicated. POSIX defines the third > argument to the sa_sigaction handler as void * and says it may be > cast to ucontext_t. On OpenBSD, it is really a pointer to struct > sigcontext but this is really an implementation detail. I had some reservations, but into this

Re: struct sigcontext in a sa_sigaction handler

2015-04-14 Thread Todd C. Miller
The situation is a little complicated. POSIX defines the third argument to the sa_sigaction handler as void * and says it may be cast to ucontext_t. On OpenBSD, it is really a pointer to struct sigcontext but this is really an implementation detail. - todd Index: lib/libc/sys/sigaction.2 =

struct sigcontext in a sa_sigaction handler

2015-04-14 Thread Jan Stary
The SYNOPSIS of sigaction(2) cites the sa_sigaction function as void (*__sa_sigaction)(int, siginfo_t *, void *); yet in the examples, the declaration is void handler(int sig, siginfo_t *sip, struct sigcontext *scp); with the role of sigcontext described. This is a disc