Back to index

glibc  2.9
Functions
getpagesize.c File Reference
#include <unistd.h>
#include <sys/param.h>

Go to the source code of this file.

Functions

int __getpagesize ()

Function Documentation

int __getpagesize ( void  )

Definition at line 24 of file getpagesize.c.

{
#ifdef EXEC_PAGESIZE
  return EXEC_PAGESIZE;
#else  /* No EXEC_PAGESIZE.  */
#ifdef NBPG
#ifndef       CLSIZE
#define       CLSIZE 1
#endif /* No CLSIZE.  */
  return NBPG * CLSIZE;
#else  /* No NBPG.  */
  return NBPC;
#endif /* NBPG.  */
#endif /* EXEC_PAGESIZE.  */
}