Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 11 Sep 2015 15:53:38 -0400
From: Yuxin Ren <>
Subject: Re: Why musl define PAGE_SIZE

But I do not think other libcs define PAGE_SIZE, such as glibc or diet-libc.
Is that true?


On Fri, Sep 11, 2015 at 3:44 PM, 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.
> Hypothetically, we could get it from the Linux headers.
> But the Linux headers can and sometimes do introduce definitions and
> structs that violate the header namespaces, resulting in collisions
> (ie, kernel header defines struct foo, application defines struct foo
> without including any headers that *should* define it, application fails
> to compile.)
> HTH,
> Isaac Dunham

Content of type "text/html" skipped

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.