getpagesize() vs. sysconf(_SC_PAGESIZE)

2.9k Views Asked by At

Both in general and with regard to cross-platform support, is one function -- getpagesize() vs. sysconf(_SC_PAGESIZE) -- more reliable than the other?

1

There are 1 best solutions below

1
On

After some additional searching, I've discovered that getpagesize() was deprecated in POSIX issue 6, and removed in POSIX issue 7. It's recommended to use sysconf(_SC_PAGESIZE) instead.