[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
getpagesize mixup during build
- Date: Thu, 24 Sep 2009 14:23:23 +0200
- From: ralf.corsepius at rtems.org (Ralf Corsepius)
- Subject: getpagesize mixup during build
On 09/24/2009 02:09 PM, Peter Dufault wrote:
>
> On Sep 24, 2009, at 7:47 , Ralf Corsepius wrote:
>
>> What Peter is observing, actually a side-effect of a bug in newlib
>> (wrong prototype for getpagesize), which has recently been fixed in
>> upstream newlib.
>
> Are you sure? Both my Mac and opengroup say that getpagesize() returns
> an int.
That's correct - Newlib (until this week) used to use size_t.
The very latest rtems toolchains use "int", i.e. rtems also _must_ use
"int".
> I have to agree it's intuitive that it be a size_t.
Agreed, however the "int" is mandated by POSIX, IEEE etc.
=> RTEMS and newlib are wrong in using "size_t".
Ralf