Re: [PATCH] use 1ULL instead of 1UL in kernel/signal.c

Matthew Wilcox
2002-10-23T13:31:25Z

On Wed, Oct 23, 2002 at 02:48:31PM +0100, Alan Cox wrote:
> On Wed, 2002-10-23 at 14:17, Matthew Wilcox wrote:
> > +#if SIGRTMIN > 32
> > +#define M(sig) (1ULL << (sig))
> > +#else
> > #define M(sig) (1UL << (sig))
> > +#endif
>
> Not >= ??

No, definitely not >=. Realtime signals are tested for separately, and
SIGRTMIN is the number of the lowest RT signal, not the number of the
highest non-realtime signal. Take a look in include/asm-i386/signal.h:

#define SIGSYS 31
#define SIGUNUSED 31

/* These should not be considered constants from userland. */
#define SIGRTMIN 32
#define SIGRTMAX (_NSIG-1)