[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070504011003.113b1580.akpm@linux-foundation.org>
Date: Fri, 4 May 2007 01:10:03 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Roland McGrath <roland@...hat.com>
Cc: Christoph Hellwig <hch@....de>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Move sig_kernel_* et al macros to linux/signal.h
On Sun, 29 Apr 2007 21:02:38 -0700 (PDT) Roland McGrath <roland@...hat.com> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists