Thread (2 messages) flat view 2 messages, 2 authors, 2001-01-26

Re:sigcontext on Linux-ppc in user space, another hack.

From: Roman Zippel <hidden>
Date: 2001-01-25 23:04:29

Hi,

On Thu, 25 Jan 2001 jekacur@ca.ibm.com wrote:
It appears you can just use the siginfo_t * as the struct sigcontext *
!!!!!!
ie
void *signal_handler(int signo, siginfo_t *siginfoptr, struct sigcontext
*scp)
{
     scp = (struct sigcontext_struct *)siginfoptr;
     /* the rest of your code, here */
}
Please ignore the last patch!
Anyway, in the code example the last argument is not a sigcontext
structure but an ucontext_t structure, which is defined in <ucontext.h>.

bye, Roman


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help