LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Roland McGrath <roland@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Move sig_kernel_* et al macros to linux/signal.h
Date: Fri, 4 May 2007 01:10:03 -0700	[thread overview]
Message-ID: <20070504011003.113b1580.akpm@linux-foundation.org> (raw)
In-Reply-To: <20070430040238.B5B971801A4@magilla.sf.frob.com>

On Sun, 29 Apr 2007 21:02:38 -0700 (PDT) Roland McGrath <roland@redhat.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?


  reply	other threads:[~2007-05-04  8:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-30  4:02 Roland McGrath
2007-05-04  8:10 ` Andrew Morton [this message]
2007-05-04 19:43   ` Roland McGrath

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070504011003.113b1580.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=hch@lst.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roland@redhat.com \
    --subject='Re: [PATCH] Move sig_kernel_* et al macros to linux/signal.h' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).