All of lore.kernel.org
 help / color / mirror / Atom feed
From: torvalds@transmeta.com (Linus Torvalds)
To: linux-kernel@vger.kernel.org
Subject: Re: Linux kernel headers violate RFC2553
Date: 8 Jun 2001 14:49:29 -0700	[thread overview]
Message-ID: <9frh99$7bi$1@penguin.transmeta.com> (raw)
In-Reply-To: <20010608195719.A4862@fefe.de> <15137.8668.590390.10485@pizda.ninka.net> <20010608211247.A12925@codeblau.de>

In article <20010608211247.A12925@codeblau.de>,
Felix von Leitner  <leitner@fefe.de> wrote:
>Thus spake David S. Miller (davem@redhat.com):
>>  > glibc works around this, but the diet libc uses the kernel headers and
>>  > thus exports the wrong API to user land.
>> Don't user kernel headers for userspace.
>
>What choice do I have?
>Duplicate everything and then be out of sync when the specs change?

Yes.

Even more preferably - write user-space headers that have _only_ the
minimum amount of code in them. The kernel headers have a lot of cruft
that is kernel-only, and that means that if you compile user space using
them, your compiles will be slower than they should be.

The basic issue is that the kernel will _refuse_ to follow the
"namespace of the day" rules of C89, C99, POSIX, BSD, SuS, GNU .. the
list goes on. The kernel headers are not meant to be used in user space,
and will not have the strict namespace rules that a lot of standards
spend so much time playing with.

There aren't that many things that are actually useful in the kernel
headers anyway.  Most of them (like the IPv6 stuff) are really specified
in other places in the first place. 

		Linus

  parent reply	other threads:[~2001-06-08 21:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-08 17:57 Linux kernel headers violate RFC2553 Felix von Leitner
2001-06-08 19:05 ` David S. Miller
2001-06-08 19:12   ` Felix von Leitner
2001-06-08 21:31     ` David S. Miller
2001-06-08 21:49     ` Linus Torvalds [this message]
2001-06-08 23:06       ` Oliver Xymoron

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='9frh99$7bi$1@penguin.transmeta.com' \
    --to=torvalds@transmeta.com \
    --cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.