Back to index

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

Go to the source code of this file.

Functions

int __getpagesize ()

Function Documentation

int __getpagesize ( void  )

Definition at line 27 of file getpagesize.c.

{
  if (GLRO(dl_pagesize) != 0)
    return GLRO(dl_pagesize);

#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.  */
}