Rev | Author | # | Line |
---|---|---|---|
2 | PerryLorier | 1 | |
1 | perry | 2 | !!NAME |
3 | |||
4 | |||
5 | getpagesize - get system page size | ||
6 | !!SYNOPSIS | ||
7 | |||
8 | |||
2 | PerryLorier | 9 | __#include <unistd.h>__ |
1 | perry | 10 | |
11 | |||
2 | PerryLorier | 12 | __size_t getpagesize(void);__ |
1 | perry | 13 | !!DESCRIPTION |
2 | PerryLorier | 14 | 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. |
1 | perry | 15 | |
16 | !!NOTES | ||
2 | PerryLorier | 17 | 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). |
1 | perry | 18 | |
19 | !!BUGS | ||
2 | PerryLorier | 20 | 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. |
1 | perry | 21 | |
22 | !!CONFORMING TO | ||
2 | PerryLorier | 23 | SVr4, 4.4BSD (this call first appeared in 4.2BSD). |
1 | perry | 24 | |
25 | !!SEE ALSO | ||
2 | PerryLorier | 26 | sbrk(2), mmap(2) |
lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 4 times)