Index: src/untrusted/irt/irt.h |
diff --git a/src/untrusted/irt/irt.h b/src/untrusted/irt/irt.h |
index d417be8fe41ad4f9427beed790f6564a9f19bab8..5b1e0b892702c4579249a8a40bec290d8685676a 100644 |
--- a/src/untrusted/irt/irt.h |
+++ b/src/untrusted/irt/irt.h |
@@ -91,6 +91,7 @@ struct nacl_irt_memory { |
int (*sysbrk)(void **newbrk); |
int (*mmap)(void **addr, size_t len, int prot, int flags, int fd, off_t off); |
int (*munmap)(void *addr, size_t len); |
+ int (*mprotect)(void *addr, size_t len, int prot); |
Mark Seaborn
2012/10/25 17:05:36
Don't add mprotect() to this interface. I assume
Petr Hosek
2012/10/25 18:46:57
Yes, sorry I have completely forgotten to remove m
|
}; |
#define NACL_IRT_DYNCODE_v0_1 "nacl-irt-dyncode-0.1" |
@@ -193,6 +194,15 @@ struct nacl_irt_dev_exception_handling { |
int (*exception_clear_flag)(void); |
}; |
+/* |
+ * NOTE: This is a 'dev' interface which is NOT stable. |
+ * In the future, requests for this interface will fail. |
+ */ |
+#define NACL_IRT_DEV_MPROTECT_v0_1 "nacl-irt-dev-mprotect-0.1" |
+struct nacl_irt_dev_mprotect { |
+ int (*mprotect)(void *addr, size_t len, int prot); |
+}; |
+ |
#if defined(__cplusplus) |
} |
#endif |