Commit | Line | Data |
---|---|---|
931b8415 | 1 | .\" Copyright (c) 1983, 1991 The Regents of the University of California. |
88b3ccf2 | 2 | .\" All rights reserved. |
38ff2b5a | 3 | .\" |
91cff1e1 | 4 | .\" %sccs.include.redist.man% |
88b3ccf2 | 5 | .\" |
931b8415 | 6 | .\" @(#)getpagesize.3 6.4 (Berkeley) %G% |
38ff2b5a | 7 | .\" |
931b8415 CL |
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 | |
38ff2b5a KM |
20 | returns the number of bytes in a page. |
21 | Page granularity is the granularity of many of the memory | |
22 | management calls. | |
931b8415 | 23 | .Pp |
38ff2b5a | 24 | The page size is a |
931b8415 | 25 | .Xr system |
38ff2b5a KM |
26 | page size and may not be the same as the underlying |
27 | hardware page size. | |
931b8415 CL |
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 . |