summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/sysconf.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-09-13 13:23:37 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-09-13 13:23:37 +0000
commitbc51d7e98fa57916241751341364d0de3c05e850 (patch)
treef1864d1a492aeb58dd628c39fffa752e4644942d /cpukit/posix/src/sysconf.c
parent986e1113578784101cad6169e0a0f5e26e3efd67 (diff)
downloadrtems-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 '')
-rw-r--r--cpukit/posix/src/sysconf.c7
1 files changed, 6 insertions, 1 deletions
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;
}