getpagesize mixup during build
Ralf Corsepius
ralf.corsepius at rtems.org
Thu Sep 24 12:23:23 UTC 2009
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
More information about the users
mailing list