mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krzysztof Halasa <khc@pm.waw.pl>
To: Mariusz Mazur <mmazur@kernel.pl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [ANNOUNCE] linux-libc-headers 2.6.3.0
Date: Thu, 04 Mar 2004 15:13:20 +0100	[thread overview]
Message-ID: <m3brnc8zun.fsf@defiant.pm.waw.pl> (raw)
In-Reply-To: <200403031829.41394.mmazur@kernel.pl> (Mariusz Mazur's message of "Wed, 3 Mar 2004 19:08:41 +0100")

Mariusz Mazur <mmazur@kernel.pl> writes:

> We do. Abi changes are rather rare so keeping them as a separate tree
> wouldn't 
> add too much work for subsystem maintainers, and it would be a Good Thing 
> (tm) to have one place where the whole current abi can be seen.

Sure. One place, yes. But separate header sets are IMHO too much crazy.

> One thing to 
> note is that linux headers duplicate many structures and definitions that 
> should be (and are) provided by glibc. This causes collisions. My current 
> practice is to clear offending linux headers of their content, and simply 
> include appropriate libc headers (with a nice warning) from them.

Is it the kernel which is based on glibc, or is it glibc (and the rest of
the userland as glibc isn't that special) using the kernel interface?

The kernel doesn't need glibc at all, I don't know why do you want it
to require some external headers to compile.
Should the kernel behave differently when compiled with different glibc
header sets? :-)

IMHO all the defines should be in the kernel tree. Glibc can and should
use them, as it uses the ABI.

> I can say that about 60-80% of current linux headers do not have proper 
> separation of kernel only code (counting in headers that are kernel only,
> but 
> have no visible signs of that fact)

No doubt.

> and adding that separation would take a 
> while. And even if successfull, it would add significant maintainer burden
> to 
> keep the whole thing working (it would probably look like crap too).

Don't think so. Anyway, there is no other acceptable option. The kernel
must compile without glibc headers (without any external headers, to
be precise) - as it doesn't need any external software to work.

The open question (of much less importance) is if we want to keep
the existing include/ layout or to move public parts to include/linux-abi
etc. It still has to reside in the kernel tree, though. I'd go with the
former for now as it requires less work. OTOH the latter might be
cleaner.

> And we have to remember 2.4 compatibilities (which linux-libc-headers
> have) - 
> is 2.6 kernel a place for them?

Examples?
If they are part of kernel API/ABI, then of course they are still used
by 2.6 kernel and they need to be there. If they aren't used by the
kernel (old #define names for instance) they should go to glibc headers
(#ifndef xxx #define xxx etc.).
-- 
Krzysztof Halasa, B*FH

  parent reply	other threads:[~2004-03-04 14:29 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-29 18:42 Mariusz Mazur
2004-02-29 20:19 ` H. Peter Anvin
2004-02-29 20:30   ` Mariusz Mazur
2004-02-29 21:03     ` H. Peter Anvin
2004-02-29 21:21       ` Mariusz Mazur
2004-02-29 21:33         ` Måns Rullgård
2004-03-01 14:42           ` Chris Friesen
2004-03-01 18:10             ` Krzysztof Halasa
2004-03-03 12:49               ` Måns Rullgård
2004-03-03 15:22               ` Sam Ravnborg
2004-03-03 16:49                 ` Krzysztof Halasa
2004-03-04 16:50                   ` Jeff Garzik
2004-03-04 18:49                     ` [Linuxabi] " H. Peter Anvin
2004-03-04  4:43                 ` [Linuxabi] " H. Peter Anvin
2004-03-03 18:08               ` [ANNOUNCE] " Mariusz Mazur
2004-03-03 19:20                 ` Grzegorz Kulewski
2004-03-04 14:13                 ` Krzysztof Halasa [this message]
2004-03-04 20:49                   ` Mariusz Mazur
2004-03-04 21:27                     ` Chris Friesen
2004-03-04 22:52                       ` Mariusz Mazur
2004-03-04 23:32                         ` Chris Friesen
2004-03-05 17:02                     ` Krzysztof Halasa
2004-03-05 23:44                       ` Grzegorz Kulewski
2004-03-06 22:30                         ` Krzysztof Halasa
2004-03-07  1:15                           ` Paul Jackson
2004-03-07 19:00                             ` Krzysztof Halasa
2004-03-08  1:28                               ` Paul Jackson
2004-03-08 15:03                                 ` Krzysztof Halasa
2004-03-08 15:37                                   ` Chris Friesen
2004-03-08 20:27                                     ` Krzysztof Halasa
2004-02-29 21:25     ` Benjamin Herrenschmidt

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=m3brnc8zun.fsf@defiant.pm.waw.pl \
    --to=khc@pm.waw.pl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mmazur@kernel.pl \
    /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

all inboxes | Powered by JetHome®