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

Side by Side Diff: src/untrusted/irt/irt.h

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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/untrusted/irt/irt.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 */
OLDNEW
« no previous file with comments | « no previous file | src/untrusted/irt/irt.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698