Re: [PATCH] Move sig_kernel_* et al macros to linux/signal.h

From: Andrew Morton
Date: Fri May 04 2007 - 04:11:09 EST


On Sun, 29 Apr 2007 21:02:38 -0700 (PDT) Roland McGrath <roland@xxxxxxxxxx> wrote:

> This patch moves the sig_kernel_* and related macros from kernel/signal.c
> to linux/signal.h, and cleans them up slightly. I need the sig_kernel_*
> macros for default signal behavior in the utrace code, and want to avoid
> duplication or overhead to share the knowledge.
>
> ...
>
> +#ifdef SIGEMT
> +#define SIGEMT_MASK rt_sigmask(SIGEMT)
> +#else
> +#define SIGEMT_MASK 0
> +#endif
> +
> +#if SIGRTMIN > BITS_PER_LONG
> +#define rt_sigmask(sig) (1ULL << ((sig)-1))
> +#else
> +#define rt_sigmask(sig) sigmask(sig)
> +#endif
> +#define siginmask(sig, mask) (rt_sigmask(sig) & (mask))

Should we undef rt_sigmask and siginmask after using them here?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/