#include <unistd.h>
|
int
getpagesize (void); |
The page size is a system page size and may not be the same as the underlying hardware page size.
#include<unistd.h> #include<stdio.h> int test_getpagesize() { int retVal = 0; retVal = getpagesize(); if( retVal >= 0) { printf("getpagesize passed"); printf("\n retVal = %d " retVal); return retVal; } else { printf("Failed"); return -1; } }
Output
getpagesize passed retVal = 4096
© 2005-2007 Nokia |