Subject: Re: CMSG_* problems
To: None <tech-userlevel@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-userlevel
Date: 02/15/2007 00:39:29
> section 5.2.4.2 (Numerical limits) where the minimum and maximum
> sizes of integral types is specified. It actually says char < short
> <= int < long < long long. More precisely, the minimum number of
> bits for each type:
> char 8
> short 16
> int 16
> long 32
> llong 64
Your "more precisely" makes it sound as though the table is what is
present and the rest is your interpretation.
This table does not, in itself, compel char < short or int < long or
long < long long. These are *minimums*; for example, nothing here
prevents long and long long from each being 64 bits - or for that
matter prevents all five of these types from being 64 bits wide.
(Other factors prevent that last, actually; int must be strictly wider
than unsigned char because of the existence of EOF.)
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B