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

Unified Diff: src/untrusted/nacl/sys_private.c

Issue 11141016: mprotect system call exposed to the untrusted code. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Removed leftover code. Created 8 years, 2 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 | « src/untrusted/irt/nacl.scons ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/nacl/sys_private.c
diff --git a/src/untrusted/nacl/sys_private.c b/src/untrusted/nacl/sys_private.c
index 204ab5f480253b8188bacf80060b2a001c5ef814..e9a3ba67cdb2e53c43148cffcaeb1ca027e5d0a3 100644
--- a/src/untrusted/nacl/sys_private.c
+++ b/src/untrusted/nacl/sys_private.c
@@ -106,6 +106,10 @@ int munmap(void *start, size_t length) {
return errno_call(NACL_SYSCALL(munmap)(start, length));
}
+int mprotect(void *start, size_t length, int prot) {
+ return errno_call(NACL_SYSCALL(mprotect)(start, length, prot));
+}
+
int open(char const *pathname, int oflag, ...) {
mode_t cmode;
va_list ap;
« no previous file with comments | « src/untrusted/irt/nacl.scons ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698