Re: [SSI] cluster/ssi/vproc/rproc_cli_pproc.c
Brought to you by:
brucewalker,
rogertsang
From: John B. <joh...@co...> - 2001-09-10 21:40:10
|
Andi Kleen wrote: > > On Mon, Sep 10, 2001 at 01:31:59PM -0700, John Byrne wrote: > > > I have another doubt here how can in the user space( #ifndef > __KERNEL__) > > > there can be two different sigaction struct for alpha and intel. ( > see > > > the signal.h file in asm directory ).I really don't know how to go > with > > > the above situation. Can someone help me. > > > > First, remember, for the user-level, the header in the linux sources > > doesn't apply; the structure seen by the application is defined by the > > glibc headers. Second, the sa_restorer field is defined to be obsolete > > and non-POSIX (at least in the man page I read); so anyone who tries > to > > use it is not going to get any support. Anyone who tries to use the > > The man page is wrong. It is used by newer glibc and needed. Without it > the signal delivery code needs to use self modifying code to get a > trampoline > to sigreturn onto the stack. Some newer ports like the x86-64 ones have > even outlawed setting no sa_restorer. > > Now of course user programs shouldn't set it directly because it is > already > used by glibc; but if they know what they're doing they can. > > -Andi Thanks for the info. I saw it being used in the library source, I just thought assumed it was backwards compatability of some form; instead of taking the time to really look through it. |