Get the memory page size (Legacy Unix)
#include <unistd.h> int getpagesize(void);
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The getpagesize() function gets the size in bytes of a page. It's equivalent to:
sysconf(_SC_PAGESIZE)
The page size in bytes.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |