From bc51d7e98fa57916241751341364d0de3c05e850 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 13 Sep 2001 13:23:37 +0000 Subject: 2001-09-13 Joel Sherrill * 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. --- cpukit/posix/src/mprotect.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 cpukit/posix/src/mprotect.c (limited to 'cpukit/posix/src/mprotect.c') diff --git a/cpukit/posix/src/mprotect.c b/cpukit/posix/src/mprotect.c new file mode 100644 index 0000000000..60740615b5 --- /dev/null +++ b/cpukit/posix/src/mprotect.c @@ -0,0 +1,23 @@ +/* + * $Id$ + */ + +#if HAVE_CONFIG_H +#include "config.h" +#endif + +#include + +/*PAGE + * + * 12.2.3 Change Memory Protection, P1003.1b-1996, p. 277. + * + * 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 0. + */ + +int mprotect(const void *addr, size_t len, int prot) +{ + return 0; +} -- cgit v1.2.3