[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sa_sigaction [was: snapshot in preparation for m4 1.4.12]
From: |
Tom G. Christensen |
Subject: |
Re: sa_sigaction [was: snapshot in preparation for m4 1.4.12] |
Date: |
Thu, 14 Aug 2008 17:03:18 +0200 |
User-agent: |
Mutt/1.4.2.2i |
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)?
>
address@hidden ~]$ 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;
}
address@hidden ~]$ cc sigaction.c
address@hidden ~]$
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
- test-c-stack and C89 [was: snapshot in preparation for m4 1.4.12], (continued)
Re: snapshot in preparation for m4 1.4.12, Tom G. Christensen, 2008/08/09
Re: snapshot in preparation for m4 1.4.12, Rick Genter, 2008/08/12
Re: snapshot in preparation for m4 1.4.12, Thomas Klausner, 2008/08/14