public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: David Woodhouse <dwmw2@infradead.org>,
	Matthew Wilcox <willy@debian.org>,
	Erik Andersen <andersen@codepoet.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: kernel header separation
Date: Mon, 8 Sep 2003 10:25:45 -0400	[thread overview]
Message-ID: <20030908142545.GA3926@gtf.org> (raw)
In-Reply-To: <1063030329.21310.32.camel@dhcp23.swansea.linux.org.uk>

On Mon, Sep 08, 2003 at 03:12:10PM +0100, Alan Cox wrote:
> On Llu, 2003-09-08 at 14:38, David Woodhouse wrote:
> > > __u8 has a very precise meaning defined by Linux.  If you're including
> > > a Linux header. that's what you need to worry about.
> > 
> > It's a kernel-private type. If we're aiming for a clean set of headers,
> > then ideally we should avoid gratuitously defining our own types when
> > standards already exist.
> 
> __u8 is intended to be used by non kernel stuff for headers. Thats why
> "__u8" not "u8" - so it doesnt pollute the sacred posix name space and
> have us lynched by glibc people

Well, strictly speaking, __u8 is an internal gcc not kernel type.

Now that C99 has defined size-based types, I would prefer that we start
using those...  They are a bit more verbose than "u8" but I think look
better, and more important, are more portable in the long term than __u8.

Whenever I see "__u8", I think "non-standard, gcc-specific dependency"

	Jeff




  reply	other threads:[~2003-09-08 14:25 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-02 19:16 kernel header separation Matthew Wilcox
2003-09-03  1:49 ` Erik Andersen
2003-09-05 14:36   ` David Woodhouse
2003-09-05 21:10     ` Erik Andersen
2003-09-05 14:41   ` Matthew Wilcox
2003-09-05 21:16     ` Erik Andersen
2003-09-05 23:22       ` Matthew Wilcox
2003-09-08 13:38         ` David Woodhouse
2003-09-08 14:12           ` Alan Cox
2003-09-08 14:25             ` Jeff Garzik [this message]
2003-09-08 14:31               ` Alan Cox
2003-09-08 14:32               ` Jeff Garzik
2003-09-08 14:42                 ` Matthew Wilcox
2003-09-08 15:22                   ` Andreas Schwab
2003-09-08 14:37               ` Andreas Schwab
2003-09-08 20:23       ` David Garfield
2003-09-08 20:34         ` Andries Brouwer
2003-09-08 21:05           ` David Garfield
2003-09-08 20:43         ` Erik Andersen

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=20030908142545.GA3926@gtf.org \
    --to=jgarzik@pobox.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=andersen@codepoet.org \
    --cc=dwmw2@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=willy@debian.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