From: Marco Schlumpp Date: Tue, 18 Apr 2023 12:55:07 +0000 (+0200) Subject: Remove mprotect stub X-Git-Tag: RELEASE-0.13.0~9 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=bf8235826d12214c6d44fe9c63bf947a88db00be;p=unikraft%2Flibs%2Fmusl.git Remove mprotect stub The real one provided in `mprotect.c` works with the `mprotect` system call introduced with the posix-mmap library. Signed-off-by: Marco Schlumpp Reviewed-by: Eduard Vintilă Reviewed-by: Sergiu Moga Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #41 --- diff --git a/mem.c b/mem.c index 8c6db64..d05aa3d 100644 --- a/mem.c +++ b/mem.c @@ -33,6 +33,7 @@ #include #include #include +#include /* Forward to libucallocator calls */ void *malloc(size_t size) @@ -90,8 +91,3 @@ void __libc_free(void *ptr) { return uk_free(uk_alloc_get_default(), ptr); } - -int mprotect(void *addr __unused, size_t len __unused, int prot __unused) -{ - return 0; -}