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

Unified Diff: sysdeps/nacl/nacl_syscalls.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/mprotect.c ('k') | sysdeps/nacl/sysdep.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sysdeps/nacl/nacl_syscalls.h
diff --git a/sysdeps/nacl/nacl_syscalls.h b/sysdeps/nacl/nacl_syscalls.h
index d754849ca28d7cd42ce653b2884a109225284898..d25fa9ac242fb137073967e5f7bddb2c64d12a40 100644
--- a/sysdeps/nacl/nacl_syscalls.h
+++ b/sysdeps/nacl/nacl_syscalls.h
@@ -50,6 +50,8 @@
#define NACL_sys_getdents 23
+#define NACL_sys_mprotect 24
+
#define NACL_sys_exit 30
#define NACL_sys_getpid 31
#define NACL_sys_sched_yield 32
@@ -144,6 +146,8 @@ typedef void *(*TYPE_nacl_mmap) (void *start, size_t length,
typedef int (*TYPE_nacl_munmap) (void *start, size_t length);
+typedef int (*TYPE_nacl_mprotect) (void *addr, size_t length, int prot);
+
typedef void (*TYPE_nacl_thread_exit) (int32_t *stack_flag);
typedef int (*TYPE_nacl_thread_create) (void *start_user_address,
void *stack,
« no previous file with comments | « sysdeps/nacl/mprotect.c ('k') | sysdeps/nacl/sysdep.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698