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
22 Portability problems fixed by Gnulib:
25 This function is missing on some platforms:
28 This function is not declared on some platforms:
29 HP-UX 11 with compiler option @code{-D_XOPEN_SOURCE=600}.
31 This function is broken on some platforms:
35 Portability problems not fixed by Gnulib:
39 The function has never been in POSIX and was removed from the Single
40 UNIX Specification in SUSv3 (2001).
41 Although portable programs are supposed to use @code{sysconf (_SC_PAGESIZE)}
42 instead, in practice @code{getpagesize} can be a little faster.
45 On typical platforms this function's API limits page sizes to at most 1 GiB,
46 even though @code{sysconf (_SC_PAGESIZE)} does not have this limitation.
47 However, this has not been a practical problem yet,
48 and so many programs use @code{getpagesize} that it's unlikely that
49 new platforms would introduce larger page sizes any time soon.