From: "H. Peter Anvin" <hpa@kernel.org>
To: Mike Frysinger <vapier@gentoo.org>
Cc: Adrian Bunk <bunk@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [patch] linux/{socket,stat}.h: change __GLIBC__ cruft to __KLIBC__
Date: Wed, 02 Jan 2008 10:16:55 -0800 [thread overview]
Message-ID: <477BD517.2090301@kernel.org> (raw)
In-Reply-To: <200801021047.59006.vapier@gentoo.org>
Mike Frysinger wrote:
>>>
>>> -#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
>>> +#if defined(__KERNEL__) || defined(__KLIBC__)
>>> ...
>> This changes the semantics from "!glibc" to "klibc".
>
> that's the point
>
>> I'm a bit worried that such changes might break some of the other
>> libc's people use on Linux.
>
> such libc's are broken and it isnt the kernel's problem to cater to broken
> libc's. the problem is that these headers are breaking things *now* for
> valid libc's that are not glibc. removal of __GBLIC__ was already accepted
> once but reverted for klibc.
> -mike
Either of these really is wrong... it's the userspace which should ask
for what should be imported; the kernel shouldn't hard-code which libcs
want what.
I just posted a patch to the netdev list which splits the top of
<linux/socket.h> out into <linux/sockaddr.h>, userspace can choose to
include one or the other.
-hpa
prev parent reply other threads:[~2008-01-02 18:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-02 14:37 Mike Frysinger
2008-01-02 15:13 ` Adrian Bunk
2008-01-02 15:47 ` Mike Frysinger
2008-01-02 18:16 ` H. Peter Anvin [this message]
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=477BD517.2090301@kernel.org \
--to=hpa@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=bunk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vapier@gentoo.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome