Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getpagesize() vs. sysconf(_SC_PAGESIZE)

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

like image 633
IntellectualKitty Avatar asked May 12 '16 17:05

IntellectualKitty


1 Answers

After some additional searching, I've discovered that getpagesize() was deprecated in POSIX issue 6. So, sysconf(_SC_PAGESIZE) should be used instead.

like image 135
IntellectualKitty Avatar answered Sep 27 '22 17:09

IntellectualKitty