Re: [Fwd: sigcontext on Linux-ppc in user space]

2001-01-25 Thread jekacur
584 (tie line) "Kevin B. Hendricks" <[EMAIL PROTECTED]> on 01/25/2001 01:10:40 PM Please respond to [EMAIL PROTECTED] To: John Kacur/Toronto/IBM@IBMCA cc: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [Fwd: sigcontext on Linux-ppc in user space] Hi, Here is what I get

Re: [Fwd: sigcontext on Linux-ppc in user space]

2001-01-25 Thread Kevin B. Hendricks
Hi, If it matters I am running some kernel fixes to enable RT signal handling properly. A version of this patch was supposed to be included into the 2.4 series but I don't work with those kernels so I never checked to see if it was ever included. I have attached the patch which should apply cle

Re: [Fwd: sigcontext on Linux-ppc in user space]

2001-01-25 Thread Dan Malek
[EMAIL PROTECTED] wrote: > .. But I > still can't get at the sigcontext.c on Linux Powerpc. For example, this > simple program gives me a segmentation fault. (Linux ppc, suse 6.4, kernel > 2.2.14 You are not the only one. I recently discovered some inconsistent data structures and function

Re: [Fwd: sigcontext on Linux-ppc in user space]

2001-01-25 Thread Kevin B. Hendricks
Hi, Here is what I get from running it on my system (ppc linux with 2.2.15 kernel with some mods and glibc-2.1.3). But no segfault. Kevin [kbhend@localhost ~]$ gcc -O2 -ojunk junk.c [kbhend@localhost ~]$ ./junk SIGUSR1 = 10 scp = 7fffe9a4 scp->signal = 0 [kbhend@localhost ~]$ On Thursda

Re: [Fwd: sigcontext on Linux-ppc in user space]

2001-01-25 Thread jekacur
Kacur/Toronto/IBM@IBMCA Subject: Re: [Fwd: sigcontext on Linux-ppc in user space] (Document link: John Kacur) Thanks for your reply. Yes, you are right I shouldn't include kernel files in user space programs, and signal.h will contain what I need anyway. But I still can't

Re: sigcontext on Linux-ppc in user space

2001-01-23 Thread Andreas Jaeger
John Kacur <[EMAIL PROTECTED]> writes: > Does anyone know how to get at the struct sigcontext in a signal handler > on Linux for powerpc? sigaction of course lets you create a signal > handler as a function with the prototype void(*)(int, siginfo_t *, void > *) > where the last argument, a pointe

sigcontext on Linux-ppc in user space

2001-01-23 Thread John Kacur
Does anyone know how to get at the struct sigcontext in a signal handler on Linux for powerpc? sigaction of course lets you create a signal handler as a function with the prototype void(*)(int, siginfo_t *, void *) where the last argument, a pointer to void, is the sigcontext. I believe that the l