Re: [PATCH 2/3] signal: introduce do_sigtimedwait() to factor outcompat/native code

From: Tejun Heo
Date: Mon Apr 25 2011 - 12:25:14 EST


Hey,

On Mon, Apr 25, 2011 at 05:33:16PM +0200, Oleg Nesterov wrote:
> On 04/25, Tejun Heo wrote:
> >
> > Just one more thing.
> >
> > On Sat, Apr 23, 2011 at 07:59:40PM +0200, Oleg Nesterov wrote:
> > > +int do_sigtimedwait(sigset_t *these, siginfo_t *info, long timeout)
> >
> > Maybe @these isn't the base name here? It implies that these are the
^^^^
oops, best

> > signals the function is interested in but in reality it is the
> > negation of that.
>
> Yees, I simply copied the old name. And yes, I tried to invent the
> better name but failed.
>
> Hmm. I think this patch can do a bit more. We can factor out
> sigdelsetmask(SIGKILL | SIGSTOP) + signotset() as well, I'll resend.
>
> Still, what should be the name? @set? @mask? @which?

Given that next_signal() and friends already use @mask, probably
@mask? As long as positive selection and negative masking are clearly
distinguishible...

Thanks.

--
tejun
--
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/