OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 #ifndef NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H_ | 6 #ifndef NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H_ |
7 #define NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H_ | 7 #define NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H_ |
8 | 8 |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 #include <sys/types.h> | 10 #include <sys/types.h> |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 #define NACL_IRT_DEV_EXCEPTION_HANDLING_v0_1 \ | 186 #define NACL_IRT_DEV_EXCEPTION_HANDLING_v0_1 \ |
187 "nacl-irt-dev-exception-handling-0.1" | 187 "nacl-irt-dev-exception-handling-0.1" |
188 typedef void (*NaClExceptionHandler)(struct NaClExceptionContext *context); | 188 typedef void (*NaClExceptionHandler)(struct NaClExceptionContext *context); |
189 struct nacl_irt_dev_exception_handling { | 189 struct nacl_irt_dev_exception_handling { |
190 int (*exception_handler)(NaClExceptionHandler handler, | 190 int (*exception_handler)(NaClExceptionHandler handler, |
191 NaClExceptionHandler *old_handler); | 191 NaClExceptionHandler *old_handler); |
192 int (*exception_stack)(void *stack, size_t size); | 192 int (*exception_stack)(void *stack, size_t size); |
193 int (*exception_clear_flag)(void); | 193 int (*exception_clear_flag)(void); |
194 }; | 194 }; |
195 | 195 |
| 196 /* |
| 197 * NOTE: This is a 'dev' interface which is NOT stable. |
| 198 * In the future, requests for this interface will fail. |
| 199 */ |
| 200 #define NACL_IRT_DEV_MPROTECT_v0_1 "nacl-irt-dev-mprotect-0.1" |
| 201 struct nacl_irt_dev_mprotect { |
| 202 int (*mprotect)(void *addr, size_t len, int prot); |
| 203 }; |
| 204 |
196 #if defined(__cplusplus) | 205 #if defined(__cplusplus) |
197 } | 206 } |
198 #endif | 207 #endif |
199 | 208 |
200 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H */ | 209 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H */ |
OLD | NEW |