summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorcvs2git <rtems-devel@rtems.org>2007-02-21 18:10:51 +0000
committercvs2git <rtems-devel@rtems.org>2007-02-21 18:10:51 +0000
commiteb53864847988d11c87daacc34b5fa5e356d3f75 (patch)
tree9a63a87fc1d48b333d6540da1049a926e7b4799f /cpukit
parent2007-02-21 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-eb53864847988d11c87daacc34b5fa5e356d3f75.tar.bz2
This commit was manufactured by cvs2svn to create branch 'rtems-4-7-branch'.
Cherrypick from master 2007-02-21 18:10:50 UTC Ralf Corsepius <ralf.corsepius@rtems.org> 'Misc. hacks': Makefile.maint cpukit/libcsupport/src/getpagesize.c
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libcsupport/src/getpagesize.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/getpagesize.c b/cpukit/libcsupport/src/getpagesize.c
new file mode 100644
index 0000000000..43fef9d9ca
--- /dev/null
+++ b/cpukit/libcsupport/src/getpagesize.c
@@ -0,0 +1,24 @@
+/*
+ * $Id$
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <unistd.h>
+#include <sys/param.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 PAGE_SIZE;
+}