diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-02-06 14:36:02 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-02-06 14:36:02 +0000 |
commit | 70261d10b83368bc6a3bc57e0a6a4273d3507ee7 (patch) | |
tree | 295b17d91b6cebb5acbf63cb847d613eddc754e7 /cpukit/posix | |
parent | 2007-02-06 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-70261d10b83368bc6a3bc57e0a6a4273d3507ee7.tar.bz2 |
2007-02-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/src/sysconf.c: Add support for _SC_PAGESIZE (PR 1215).
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/src/sysconf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/posix/src/sysconf.c b/cpukit/posix/src/sysconf.c index 4a8add9e35..60a890d896 100644 --- a/cpukit/posix/src/sysconf.c +++ b/cpukit/posix/src/sysconf.c @@ -13,6 +13,8 @@ #include <rtems/system.h> #include <rtems/score/tod.h> +#include <sys/param.h> + /*PAGE * * 4.8.1 Get Configurable System Variables, P1003.1b-1993, p. 95 @@ -34,6 +36,9 @@ long sysconf( case _SC_GETPW_R_SIZE_MAX: return 1024; + + case _SC_PAGESIZE: + return PAGE_SIZE; #if defined(__sparc__) case 515: /* Solaris _SC_STACK_PROT */ |