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

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 Mark Kettenis
From: Todd C. Miller todd.mil...@courtesan.com 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

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 mark.kette...@xs4all.nl wrote: From: Todd C. Miller todd.mil...@courtesan.com 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