On Wed, Aug 13, 2008 at 08:14:43PM -0600, Eric Blake wrote:
> According to Tom G. Christensen on 8/13/2008 2:45 PM:
> >>Weird.  So Irix 5.3 has sigaction, but not sa_sigaction?  Can you please
> >>post the definition of struct sigaction from <signal.h>?
> >>
> >>From <sys/signal.h>:
> >typedef struct sigaction {
> >        int sa_flags;                   /* see below for values         */
> >        __sigret_t (*sa_handler)(_sigargs);     /* SIG_DFL, SIG_IGN, or 
> >        *fn */
> >        sigset_t sa_mask;               /* additional set of sigs to be */
> >                                        /* blocked during handler 
> >                                        execution */
> >        int sa_resv[2];
> >} sigaction_t;
> 
> Let's try resolving this one first.  Does this program compile 
> successfully (although it probably issues a warning)?
> 
[EMAIL PROTECTED] ~]$ cat sigaction.c
#include <signal.h>
#define sa_sigaction sa_handler

static void
handler (int i, siginfo_t *s, void *v)
{
}

int main()
{
  struct sigaction sa;
  sa.sa_sigaction = handler;
  sa.sa_flags = SA_SIGINFO;
  return 0;
}

[EMAIL PROTECTED] ~]$ cc sigaction.c
[EMAIL PROTECTED] ~]$

No warnings.

> Then, since your latest logs show:
> libsigsegv: mips-sgi-irix5.3 | yes | yes | 2.5
> it looks like c-stack will work with libsigsegv, once we downgrade the 
> compiler error on sa_sigaction to a warning.
> 
Let's hope so though it didn't seem to be enough for Irix 6.x.

-tgc


Reply via email to