Subject: Re: POSIX signal macros broken/shakey on 1.0 beta
To: None <rhealey@aggregate.com>
From: Noses <noses@oink.rhein.de>
List: current-users
Date: 08/12/1994 00:31:36
> I'm not sure if it's a x86 gcc bug or not but the whole signal
> setup macro set looks kinda shakey to me.
>
> Specifically, it depends on sigismember to return a 0 when the signal
> number goes over the number of bits in the datatype of set. i.e. 32
> bits in our case.
Even if it is *reaching* the limit you're in trouble; try the following
program:
void main (void)
{
unsigned long i, j;
i = 0x80000000L;
j = i >> 32;
printf ("i = %lx (>> 32) j = %lx\n",i, j);
} /* main */
And it isn't the compiler's fault either as the generated code is looking
ok.
Achim
------------------------------------------------------------------------------