1getpagesize(3C) Standard C Library Functions getpagesize(3C)
2
3
4
6 getpagesize - get system page size
7
9 #include <unistd.h>
10
11 int getpagesize(void);
12
13
15 The getpagesize() function returns the number of bytes in a page. Page
16 granularity is the granularity of many of the memory management calls.
17
18
19 The page size is a system page size and need not be the same as the
20 underlying hardware page size.
21
22
23 The getpagesize() function is equivalent to sysconf(_SC_PAGE_SIZE) and
24 sysconf(_SC_PAGESIZE). See sysconf(3C).
25
27 The getpagesize() function returns the current page size.
28
30 No errors are defined.
31
33 The value returned by getpagesize() need not be the minimum value that
34 malloc(3C) can allocate. Moreover, the application cannot assume that
35 an object of this size can be allocated with malloc().
36
38 See attributes(5) for descriptions of the following attributes:
39
40
41
42
43 ┌─────────────────────────────┬─────────────────────────────┐
44 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
45 ├─────────────────────────────┼─────────────────────────────┤
46 │MT-Level │MT-Safe │
47 └─────────────────────────────┴─────────────────────────────┘
48
50 pagesize(1), brk(2), getrlimit(2), mmap(2), mprotect(2), munmap(2),
51 malloc(3C), msync(3C), sysconf(3C), attributes(5)
52
53
54
55SunOS 5.11 27 Jun 2000 getpagesize(3C)