*** empty log message ***
authorGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Sat, 11 Apr 1987 14:44:10 +0000 (14:44 +0000)
committerGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Sat, 11 Apr 1987 14:44:10 +0000 (14:44 +0000)
v7/src/microcode/pagesize.h [new file with mode: 0644]

diff --git a/v7/src/microcode/pagesize.h b/v7/src/microcode/pagesize.h
new file mode 100644 (file)
index 0000000..32adae6
--- /dev/null
@@ -0,0 +1,25 @@
+#ifdef BSD
+#ifndef BSD4_1
+#define HAVE_GETPAGESIZE
+#endif
+#endif
+
+#ifndef HAVE_GETPAGESIZE
+
+#include <sys/param.h>
+
+#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 */
+