Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1260)

Unified Diff: sysdeps/nacl/mprotect.c

Issue 12382030: Provide mprotect syscall (Closed) Base URL: http://git.chromium.org/native_client/nacl-glibc.git@master
Patch Set: Addressed CR comments Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sysdeps/nacl/irt_syscalls.c ('k') | sysdeps/nacl/nacl_syscalls.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sysdeps/nacl/mprotect.c
diff --git a/sysdeps/nacl/munmap.c b/sysdeps/nacl/mprotect.c
similarity index 51%
copy from sysdeps/nacl/munmap.c
copy to sysdeps/nacl/mprotect.c
index 619d5a779fd054b185370dcc87a6df18715c8698..68cbe6c5b453607c6afbfbaf21eab8d72ee33c69 100644
--- a/sysdeps/nacl/munmap.c
+++ b/sysdeps/nacl/mprotect.c
@@ -5,13 +5,13 @@
#include <irt_syscalls.h>
-int __munmap (void *start, size_t length)
+int __mprotect (void *addr, size_t len, int prot)
{
- int result = __nacl_irt_munmap (start, length);
+ int result = __nacl_irt_mprotect (addr, len, prot);
if (result != 0) {
errno = result;
return -1;
}
return 0;
}
-weak_alias (__munmap, munmap)
+weak_alias (__mprotect, mprotect)
« no previous file with comments | « sysdeps/nacl/irt_syscalls.c ('k') | sysdeps/nacl/nacl_syscalls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698