commit | 4d39411f7d41e3c931f8be6b1455ba9627fa71b9 | [log] [tgz] |
---|---|---|
author | Andrew Hsieh <andrewhsieh@google.com> | Mon Aug 20 16:26:06 2012 -0700 |
committer | android code review <noreply-gerritcodereview@google.com> | Mon Aug 20 16:26:07 2012 -0700 |
tree | 5fdf0369bfe39fe92129ce73a484c2a1f46aae86 | |
parent | 90b4e80ee9193884a6e53410770f6022110bea3c [diff] | |
parent | f43f98223204f6be26c17572d299aca763c2b26b [diff] |
Merge "Support mprotect."
diff --git a/ndk/sources/android/libportable/arch-mips/mmap.c b/ndk/sources/android/libportable/arch-mips/mmap.c index 4f83bdb..d165e2b 100644 --- a/ndk/sources/android/libportable/arch-mips/mmap.c +++ b/ndk/sources/android/libportable/arch-mips/mmap.c
@@ -85,3 +85,9 @@ return ret; } + +extern int mprotect(const void *, size_t, int); +int mprotect_portable(const void *addr, size_t size, int prot) +{ + return mprotect(addr, size, mips_change_prot(prot)); +}