*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> getpagesize (2)              



NAME    [Toc]    [Back]

       getpagesize - get system page size

SYNOPSIS    [Toc]    [Back]

       #include <unistd.h>

       size_t getpagesize(void);

DESCRIPTION    [Toc]    [Back]

       Return  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.

NOTES    [Toc]    [Back]

       getpagesize 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

BUGS    [Toc]    [Back]

       Depending 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 TO    [Toc]    [Back]

       SVr4, 4.4BSD (this call first appeared in 4.2BSD).

SEE ALSO    [Toc]    [Back]


Linux 0.99.11			  1993-07-23			GETPAGESIZE(2)
[ Back ]
 Similar pages
Name OS Title
getpagesize Tru64 Get the system page size
vm_set_page_size FreeBSD initialize the system page size
pagesize FreeBSD print system page size
pagesize OpenBSD print system page size
pagesize Tru64 Displays system memory page size
vps_ceiling HP-UX maximum (in kilobytes) of system-selectable page size
vps_pagesize HP-UX minimum (in kilobytes) of system-selected page size
getpagesize HP-UX get the current page size
page_size Tru64 Global Variable: Is the virtual page size
vps_chatr_ceiling HP-UX maximum (in kilobytes) of user selectable page size
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service