| 1 | .\" Copyright (c) 1983, 1991 The Regents of the University of California. |
| 2 | .\" All rights reserved. |
| 3 | .\" |
| 4 | .\" %sccs.include.redist.man% |
| 5 | .\" |
| 6 | .\" @(#)getpagesize.3 6.4 (Berkeley) %G% |
| 7 | .\" |
| 8 | .Dd |
| 9 | .Dt GETPAGESIZE 2 |
| 10 | .Os BSD 4.2 |
| 11 | .Sh NAME |
| 12 | .Nm getpagesize |
| 13 | .Nd get system page size |
| 14 | .Sh SYNOPSIS |
| 15 | .Fd #include <unistd.h> |
| 16 | .Ft int |
| 17 | .Fn getpagesize void |
| 18 | .Sh DESCRIPTION |
| 19 | .Fn Getpagesize |
| 20 | returns the number of bytes in a page. |
| 21 | Page granularity is the granularity of many of the memory |
| 22 | management calls. |
| 23 | .Pp |
| 24 | The page size is a |
| 25 | .Xr system |
| 26 | page size and may not be the same as the underlying |
| 27 | hardware page size. |
| 28 | .Sh SEE ALSO |
| 29 | .Xr sbrk 2 , |
| 30 | .Xr pagesize 1 |
| 31 | .Sh HISTORY |
| 32 | The |
| 33 | .Nm |
| 34 | function call appeared in |
| 35 | .Bx 4.2 . |