From 287843f14c2ed7bd3c02f837ac1d70d6a2659e22 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 6 Nov 2014 16:16:56 -0600 Subject: sys/mman.h: New file. Clean up and add supporting stubs * Makefile.am updated and preinstall.am regenerated. * mprotect.c had a prototype removed now that we have mman.h * mmap.c, munmap.c: New stub files. --- cpukit/posix/src/mprotect.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'cpukit/posix/src/mprotect.c') diff --git a/cpukit/posix/src/mprotect.c b/cpukit/posix/src/mprotect.c index 51b565ea54..94bd316ffb 100644 --- a/cpukit/posix/src/mprotect.c +++ b/cpukit/posix/src/mprotect.c @@ -28,16 +28,10 @@ #endif #include - -/* - * RTEMS does not have so we need a prototype here to - * avoid warnings. - */ - -int mprotect( const void *, size_t, int ); +#include int mprotect( - const void *addr __attribute__((unused)), + void *addr __attribute__((unused)), size_t len __attribute__((unused)), int prot __attribute__((unused)) ) { -- cgit v1.2.3