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

Unified Diff: sysdeps/nacl/sysdep.h

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/nacl_syscalls.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sysdeps/nacl/sysdep.h
diff --git a/sysdeps/nacl/sysdep.h b/sysdeps/nacl/sysdep.h
index e5ba778812fe882970cfcd82b71d25aeec26dbb5..6947f8f24bf74cfbada9e93284f51774c871c179 100644
--- a/sysdeps/nacl/sysdep.h
+++ b/sysdeps/nacl/sysdep.h
@@ -972,9 +972,9 @@ INTERNAL_SYSCALL_modify_ldt_3 (int *err, int func, void *ptr,
}
__extern_always_inline int
-INTERNAL_SYSCALL_mprotect_3 (int *err, const void *addr, size_t len, int prot)
+INTERNAL_SYSCALL_mprotect_3 (int *err, void *addr, size_t len, int prot)
{
- *err = (38 /* ENOSYS */);
+ *err = __nacl_irt_mprotect (addr, len, prot);
return 0;
}
« no previous file with comments | « sysdeps/nacl/nacl_syscalls.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698