On Fri, Sep 18, 2020 at 1:33 pm, Steven Munroe <munroes...@gmail.com> wrote:
The correct solution for userland is getpagesize() from <unistd.h>.

This API has been there a long time.

Some software requires that the page size be known at compile time, e.g. WebKit's JavaScriptCore. Therefore getpagesize() is really not good enough.

We could use getpagesize() to test the page size at compile time, but it would fail if cross-compiling, so instead we just hardcode guesses in the code. For aarch64 RHEL has some hacky patch that can never go upstream to change the page size.

I don't have much good to say about this situation.

_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to