From 1ffc9ca97f231b72ff32fbfcec68bc8ed0f46c73 Mon Sep 17 00:00:00 2001 From: "Guillermo J. Rozas" Date: Sat, 11 Apr 1987 14:44:10 +0000 Subject: [PATCH] *** empty log message *** --- v7/src/microcode/pagesize.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 v7/src/microcode/pagesize.h diff --git a/v7/src/microcode/pagesize.h b/v7/src/microcode/pagesize.h new file mode 100644 index 000000000..32adae61e --- /dev/null +++ b/v7/src/microcode/pagesize.h @@ -0,0 +1,25 @@ +#ifdef BSD +#ifndef BSD4_1 +#define HAVE_GETPAGESIZE +#endif +#endif + +#ifndef HAVE_GETPAGESIZE + +#include + +#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 */ +#define getpagesize() NBPC +#endif /* no NBPG */ +#endif /* no EXEC_PAGESIZE */ + +#endif /* not HAVE_GETPAGESIZE */ + -- 2.25.1