summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/getpagesize.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-20 17:04:31 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-20 17:04:31 +0000
commit0e2caa4c18056cba8250b8af64f3755174f44cbe (patch)
tree6f9698294d55c7aa7e04c582af89fb61653fbe32 /cpukit/posix/src/getpagesize.c
parent2009-09-20 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-0e2caa4c18056cba8250b8af64f3755174f44cbe.tar.bz2
2009-09-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/Makefile.am: Add getpagesize(). Now required by GNU Ada. * posix/src/getpagesize.c: New file.
Diffstat (limited to 'cpukit/posix/src/getpagesize.c')
-rw-r--r--cpukit/posix/src/getpagesize.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/cpukit/posix/src/getpagesize.c b/cpukit/posix/src/getpagesize.c
new file mode 100644
index 0000000000..9bcc2930fd
--- /dev/null
+++ b/cpukit/posix/src/getpagesize.c
@@ -0,0 +1,22 @@
+/*
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <unistd.h>
+#include <sys/param.h>
+
+size_t getpagesize(void)
+{
+ return PAGE_SIZE;
+}