summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/getpagesize.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/getpagesize.c')
-rw-r--r--cpukit/posix/src/getpagesize.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/cpukit/posix/src/getpagesize.c b/cpukit/posix/src/getpagesize.c
new file mode 100644
index 0000000000..806c500a9b
--- /dev/null
+++ b/cpukit/posix/src/getpagesize.c
@@ -0,0 +1,23 @@
+/*
+ * $Id$
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <unistd.h>
+
+/*PAGE
+ *
+ * Get System Page Size (from SVR4 and 4.2+ BSD)
+ *
+ * This is not a functional version but the SPARC backend for at least
+ * gcc 2.8.1 plus gnat 3.13p and gcc 3.0.1 require it to be there and
+ * return a reasonable value.
+ */
+
+size_t getpagesize(void)
+{
+ return 4096;
+}