summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/mprotect.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/mprotect.c')
-rw-r--r--cpukit/posix/src/mprotect.c23
1 files changed, 23 insertions, 0 deletions
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 <unistd.h>
+
+/*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;
+}