2 @subsection @code{getpagesize}
5 LSB specification:@* @url{https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib-getpagesize.html}
11 @ref{Query Memory Parameters,,How to get information about the memory subsystem?,libc},
14 @url{https://www.gnu.org/software/libc/manual/html_node/Query-Memory-Parameters.html},
17 @uref{https://www.kernel.org/doc/man-pages/online/pages/man2/getpagesize.2.html,,man getpagesize}.
20 Gnulib module: getpagesize
23 Portability problems fixed by Gnulib:
26 This function is missing on some platforms:
29 This function is not declared on some platforms:
30 HP-UX 11 with compiler option @code{-D_XOPEN_SOURCE=600}.
32 This function is broken on some platforms:
36 Portability problems not fixed by Gnulib:
40 The function has never been in POSIX and was removed from the Single
41 UNIX Specification in SUSv3 (2001).
42 Although portable programs are supposed to use @code{sysconf (_SC_PAGESIZE)}
43 instead, in practice @code{getpagesize} can be a little faster.
46 On typical platforms this function's API limits page sizes to at most 1 GiB,
47 even though @code{sysconf (_SC_PAGESIZE)} does not have this limitation.
48 However, this has not been a practical problem yet,
49 and so many programs use @code{getpagesize} that it's unlikely that
50 new platforms would introduce larger page sizes any time soon.