public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Erik Andersen <andersen@codepoet.org>
To: David Garfield <garfield@irving.iisd.sra.com>
Cc: linux-kernel@vger.kernel.org, Matthew Wilcox <willy@debian.org>
Subject: Re: kernel header separation
Date: Mon, 8 Sep 2003 14:43:30 -0600	[thread overview]
Message-ID: <20030908204329.GA11418@codepoet.org> (raw)
In-Reply-To: <16220.58678.399619.878405@irving.iisd.sra.com>

On Mon Sep 08, 2003 at 04:23:18PM -0400, David Garfield wrote:
> On the other hand, the ISO C99 definition is probably something like:
> an integral type capable of storing the values 0 through 255
> inclusive.  (ok, I don't have a copy of the new standard but I have
> seriously examined the old one.)  I would not count on uint8_t
> necessarily being unsigned on unusual hardware.  Linux on the other

While I can apprecieate the value of pure speculation
uncluttered by facts, I think you may want to actually read
what the ISO/IEC 9899:1999 (aka C99) has to say on the subject:

    7.18.1.1 Exact-width integer types

    1 The typedef name intN_t designates a signed integer type with
	width N, no padding bits, and a two's complement
	representation.  Thus, int8_t denotes a signed integer
	type with a width of exactly 8 bits.

    2 The typedef name uintN_t designates an unsigned integer type
	with width N. Thus, uint24_t denotes an unsigned integer
	type with a width of exactly 24 bits.

I had to buy my copy of C99, so I can't post the whole thing for
the world I'm afraid.  But you can visit the SuSv3 (which defers
to the C99 standard in cases where they differ) and read their
discussion of stdint.h, which is almost identical to the text in
C99 and is available online here:

    http://www.opengroup.org/onlinepubs/007904975/basedefs/stdint.h.html

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--

      parent reply	other threads:[~2003-09-08 20:43 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
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 [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=20030908204329.GA11418@codepoet.org \
    --to=andersen@codepoet.org \
    --cc=garfield@irving.iisd.sra.com \
    --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