1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-27 01:01:52 -07:00
No description
Find a file
Bruce Mitchener 322dc834d9 Unix: use sysconf(_sc_pagesize), not getpagesize()
The `getpagesize()` is a legacy function and is not available
in the default configurations on some platforms.

The documentation for `getpagesize()` recommends using the POSIX
`sysconf(_SC_PAGESIZE)` instead.

Additionally, `sysconf(_SC_PAGESIZE)` returns a `long` rather than
an `int`, so the code is updated to handle that as well.

Sources:

* https://man7.org/linux/man-pages/man2/getpagesize.2.html
* https://pubs.opengroup.org/onlinepubs/7908799/xsh/getpagesize.html
2023-03-04 14:11:09 +07:00
mps Unix: use sysconf(_sc_pagesize), not getpagesize() 2023-03-04 14:11:09 +07:00