Re: [PATCH 21/21] posix_types: Remove fd_set macros

From: H. Peter Anvin
Date: Wed Feb 08 2012 - 11:58:09 EST


On 02/08/2012 04:20 AM, David Howells wrote:
> H. Peter Anvin <hpa@xxxxxxxxx> wrote:
>
>> However, they are nothing but standard (nonatomic) bit operations, and
>> we already have optimized versions of bit operations in the kernel.
>> We can't include <linux/bitops.h> in <asm/posix_types.h> but we can
>> move the definitions to <linux/time.h> and define them there in terms
>> of standard kernel bitops.
>
> Why linux/time.h? Why not linux/poll.h? That would seem a more appropriate
> place for them.
>
> David

If you look in the file a few lines below the patch, the reason should
be obvious.

Anyway, select() paraphernalia goes in <sys/time.h> (as opposed to
<time.h>), poll() paraphernalia goes in <sys/poll.h>, and the linux/*
files mimics that.

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.


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