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/sysconf.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cpukit/posix/src/sysconf.c') diff --git a/cpukit/posix/src/sysconf.c b/cpukit/posix/src/sysconf.c index ac7a4104c5..534689892b 100644 --- a/cpukit/posix/src/sysconf.c +++ b/cpukit/posix/src/sysconf.c @@ -26,11 +26,16 @@ long sysconf( case _SC_CLK_TCK: return _TOD_Ticks_per_second; - case _SC_OPEN_MAX: { +o case _SC_OPEN_MAX: { extern unsigned32 rtems_libio_number_iops; return rtems_libio_number_iops; } +#if defined(__sparc__) + case 515: /* Solaris _SC_STACK_PROT */ + return 0; +#endif + default: break; } -- cgit v1.2.3