Copyright (C) 2000-2012 |
Manpages GETPAGESIZESection: Linux Programmer's Manual (2)Updated: 1993-07-23 Index Return to Main Contents NAMEgetpagesize - get system page sizeSYNOPSIS#include <unistd.h>DESCRIPTIONReturn the number of bytes in a page. This is the system's page size, which is not necessarily the same as the hardware page size.NOTESgetpagesize is implemented as a library function in DLL 4.4.1. Depending on what is defined when the library is compiled, this function returns EXEC_PAGESIZE (set to 4096 in Linux 0.99.11), NBPG (set to 4096 in Linux 0.99.11), or NBPC (not defined in Linux 0.99.11 or DLL 4.4.1 libraries).BUGSDepending on architecture and library version, this library call may do a system call or not. It may return a value different from that of the system call. For example, on a sun4 with libc5 this routine returns EXEC_PAGESIZE, which is 8192, and not PAGE_SIZE, which is 4096, or the result of the system call, which also is 4096.CONFORMING TOSVr4, 4.4BSD (this call first appeared in 4.2BSD).SEE ALSOsbrk(2)
IndexThis document was created by man2html, using the manual pages. Time: 19:58:35 GMT, April 25, 2024 |