From 6fb68a50b4f44e2235051b92a3a6bea723cc6505 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 6 Feb 2007 14:44:34 +0000 Subject: New (moved from posix/src). --- cpukit/libcsupport/src/getpagesize.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 cpukit/libcsupport/src/getpagesize.c 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 +#include + +/*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; +} -- cgit v1.2.3