Re: [PATCH] posix_types.h: make __NFDBITS match glibc definition

From: Linus Torvalds
Date: Tue Jul 24 2012 - 15:59:58 EST


On Tue, Jul 24, 2012 at 12:41 PM, Josh Boyer <jwboyer@xxxxxxxxxx> wrote:
>
> I'd be happy to come up with a patch that drops them, but since they're
> in a user visible header file I was concerned somebody might be using
> them explicitly from posix_types.h. People do weird crap like not use
> glibc all the time.

Yeah, I agree that somebody could possibly use them.

But the odd thing is, we don't actually export anything *useful*. It's
not like we export the define for __FD_ISSET() etc, which would be
something somebody really wants. No, that kernel header only exports
the (unused by the kernel) building blocks for creating __FD_ISSET().

And I suspect (but it must be before even the old bitkeeper tree) that
we *used* to implement __FD_ISSET() long ago. We removed it, and
nobody used it, so nobody even noticed that we removed it - but left
some now unused stuff behind.

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