diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-09-13 13:23:37 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-09-13 13:23:37 +0000 |
commit | bc51d7e98fa57916241751341364d0de3c05e850 (patch) | |
tree | f1864d1a492aeb58dd628c39fffa752e4644942d /c/src/exec/posix/src/getpagesize.c | |
parent | 2001-09-13 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-bc51d7e98fa57916241751341364d0de3c05e850.tar.bz2 |
2001-09-13 Joel Sherrill <joel@OARcorp.com>
* src/mprotect.c: New file. Stub required by some gcc's to pass tests.
In particular, about 350 ACATS tests fail if this is not present.
* src/getpagesize.c: Ditto.
* src/sysconf.c: Addition of Solaris value for _SC_STACK_PROT required
to pass about 350 ACATS test cases.
* src/Makefile.am: Added new files.
Diffstat (limited to 'c/src/exec/posix/src/getpagesize.c')
-rw-r--r-- | c/src/exec/posix/src/getpagesize.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/c/src/exec/posix/src/getpagesize.c b/c/src/exec/posix/src/getpagesize.c new file mode 100644 index 0000000000..806c500a9b --- /dev/null +++ b/c/src/exec/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; +} |