Next: getpass
, Previous: getdtablesize
, Up: Glibc Extensions to <unistd.h>
[Contents][Index]
getpagesize
LSB specification:
https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib-getpagesize.html
Documentation:
Gnulib module: getpagesize
Portability problems fixed by Gnulib:
-D_XOPEN_SOURCE=600
.
Portability problems not fixed by Gnulib:
sysconf (_SC_PAGESIZE)
instead, in practice getpagesize
can be a little faster.
sysconf (_SC_PAGESIZE)
does not have this limitation.
However, this has not been a practical problem yet,
and so many programs use getpagesize
that it’s unlikely that
new platforms would introduce larger page sizes any time soon.