getpgsiz.h

pennmush/hdrs/getpgsiz.h · 607 B

From the archive pennmush-1.7.2p10.tar.gz

Download the archive   « Back to the archive contents

#ifndef __GETPGSIZ_H
#define __GETPGSIZ_H

#ifndef HAS_GETPAGESIZE
#ifndef WIN32
#include <sys/param.h>
#endif
#ifdef I_SYS_PAGE
#include <sys/page.h>
#endif

#ifdef EXEC_PAGESIZE
#define getpagesize() EXEC_PAGESIZE
#else
#ifdef NBPG
#define getpagesize() NBPG * CLSIZE
#ifndef CLSIZE
#define CLSIZE 1
#endif				/* no CLSIZE */
#else				/* no NBPG */
#ifdef NBPC
#define getpagesize() NBPC
#else				/* no NBPC either? Bummer */
#define getpagesize() PAGESIZE
#endif				/* no NBPC */
#endif				/* no NBPG */
#endif				/* no EXEC_PAGESIZE */

#endif				/* not HAS_GETPAGESIZE */

#endif				/* __GETPGSIZ_H */

Site Stats

Snippets: 1791
Codebases: 571