getpagesize()

Get the current page size (Legacy Unix)

Synopsis:

#include <unistd.h>

int getpagesize(void);

Since:

BlackBerry 10.0.0

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The getpagesize() function gets the current page size. It's equivalent to:

sysconf(_SC_PAGESIZE)

The value that getpagesize() returns might not be the minimum value that malloc() can allocate, and you shouldn't assume you can actually allocate an object of this size.

Because getpagesize() returns an int, it might not represent large values correctly. You should use sysconf() instead.

Returns:

The current page size.

Classification:

Legacy Unix

Safety:  
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus