Inclusion of sys/types.h

Matthew Dillon dillon at apollo.backplane.com
Wed Jan 26 10:12:11 PST 2005


:
:On Wed, Jan 26, 2005 at 10:05:33AM +0100, Jeroen Ruigrok/asmodai wrote:
:> strftime() should return size_t, not __size_t, regardless if the type
:> definition ends up being the same anyway.  __ prefixed types are supposed to
:> be either internal ones, reserved ones or other special case types.
:> 
:> That's why
:> 
:> #ifdef  _BSD_SIZE_T_
:> typedef _BSD_SIZE_T_    size_t;
:> #undef  _BSD_SIZE_T_
:> #endif
:
:I don't like this, but I'll fix it (a bit different).
:
:Joerg

    I think I might have removed size_t based on an incorrect understanding
    of the standard.  There was a pollution issue of some sort but, clearly,
    in retrospect, we have to put size_t back in.

    I recommend putting it back in using the _SIZE_T_DECLARED infrastructure
    similar to the other types.  Joerg, I'll leave that to you.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>





More information about the Bugs mailing list