|
Message-ID: <20150911201011.GY17773@brightrain.aerifal.cx> Date: Fri, 11 Sep 2015 16:10:11 -0400 From: Rich Felker <dalias@...c.org> To: musl@...ts.openwall.com Subject: Re: Why musl define PAGE_SIZE On Fri, Sep 11, 2015 at 12:44:02PM -0700, Isaac Dunham wrote: > On Fri, Sep 11, 2015 at 03:28:52PM -0400, Yuxin Ren wrote: > > Hi, > > > > I found in the bits/limits.h file, musl defines PAGE_SIZE macro . > > I think this macro is always defined by operating system, not libc. > > > > Why does musl define this marco? > > It's required to be in limits.h, which has to be provided by libc for a > full implementation. It's not required. Lack of a definition means you have to query the value at runtime with sysconf(_SC_PAGESIZE). But failure to provide a value on platforms where it is constant just gratuitously pessimizes programs that need to know page size. Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.