Penguin
Diff: getpagesize(2)
EditPageHistoryDiffInfoLikePages

Differences between current version and previous revision of getpagesize(2).

Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History

Newer page: version 2 Last edited on Monday, December 30, 2002 4:20:56 am by PerryLorier
Older page: version 1 Last edited on Tuesday, June 4, 2002 12:23:41 am by perry Revert
@@ -1,55 +1,26 @@
-GETPAGESIZE  
-!!!GETPAGESIZE  
-NAME  
-SYNOPSIS  
-DESCRIPTION  
-NOTES  
-BUGS  
-CONFORMING TO  
-SEE ALSO  
-----  
+  
 !!NAME 
  
  
 getpagesize - get system page size 
 !!SYNOPSIS 
  
  
-__#include __ 
+ __#include <unistd.h> __ 
  
  
-__size_t getpagesize(void);__ 
+ __size_t getpagesize(void);__ 
 !!DESCRIPTION 
+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.  
  
-  
-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 
+getpagesize(2) 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).  
  
-  
-__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 libraries).  
 !!BUGS 
+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.  
  
-  
-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 
+SVr4, 4.4BSD (this call first appeared in 4.2BSD).  
  
-  
-SVr4, 4.4BSD (this call first appeared in  
-4.2BSD).  
 !!SEE ALSO 
-  
-  
- sbrk(2)  
-----  
+sbrk(2), mmap(2)  
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.