[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT/MUSL PATCH V2 07/28] Add stub for mprotect in mem.c



Reviewed-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>

On 29.01.20 22:18, Gaulthier Gain wrote:
Signed-off-by: Gaulthier Gain <gaulthier.gain@xxxxxxxxx>
---
  mem.c | 6 ++++++
  1 file changed, 6 insertions(+)

diff --git a/mem.c b/mem.c
index 3eb4db7..5870bcf 100644
--- a/mem.c
+++ b/mem.c
@@ -34,6 +34,7 @@
#include <sys/types.h>
  #include <uk/alloc.h>
+#include <sys/mman.h>
/* Forward to libucallocator calls */
  void *malloc(size_t size)
@@ -66,3 +67,8 @@ void 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;
+}


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.