------- Comment #5 from joel at gcc dot gnu dot org 2009-09-20 16:40 ------- The LynxOS s-osinte-lynxos.ads has this:
function Get_Page_Size return size_t; function Get_Page_Size return Address; pragma Import (C, Get_Page_Size, "getpagesize"); -- Returns the size of a page, or 0 if this is not relevant on this -- target I can't find any reference in the GNU/Linux man pages or at opengroup.org on 0 being allowed or not allowed. But apparently whoever worked on that port thought 0 was a valid thing to return also. Doesn't matter much. RTEMS has PAGE_SIZE defined and the support for sysconf(_SC_PAGESIZE) so I will just add a wrapper to that for the legacy getpagesize(). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41419