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

Side by Side Diff: src/untrusted/irt/irt_interfaces.c

Issue 883393005: Add IRT interface for PNaCl's sandboxed linker to use to talk to Chromium (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Cleanup Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « src/untrusted/irt/irt_interfaces.h ('k') | src/untrusted/irt/irt_pnacl_translator.c » ('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 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "native_client/src/include/nacl_compiler_annotations.h" 9 #include "native_client/src/include/nacl_compiler_annotations.h"
10 #include "native_client/src/include/nacl_macros.h" 10 #include "native_client/src/include/nacl_macros.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 */ 117 */
118 { NACL_IRT_EXCEPTION_HANDLING_v0_1, &nacl_irt_exception_handling, 118 { NACL_IRT_EXCEPTION_HANDLING_v0_1, &nacl_irt_exception_handling,
119 sizeof(nacl_irt_exception_handling), non_pnacl_filter }, 119 sizeof(nacl_irt_exception_handling), non_pnacl_filter },
120 { NACL_IRT_DEV_LIST_MAPPINGS_v0_1, &nacl_irt_dev_list_mappings, 120 { NACL_IRT_DEV_LIST_MAPPINGS_v0_1, &nacl_irt_dev_list_mappings,
121 sizeof(nacl_irt_dev_list_mappings), list_mappings_filter }, 121 sizeof(nacl_irt_dev_list_mappings), list_mappings_filter },
122 /* 122 /*
123 * "irt-code-data-alloc" is not supported under PNaCl. 123 * "irt-code-data-alloc" is not supported under PNaCl.
124 */ 124 */
125 { NACL_IRT_CODE_DATA_ALLOC_v0_1, &nacl_irt_code_data_alloc, 125 { NACL_IRT_CODE_DATA_ALLOC_v0_1, &nacl_irt_code_data_alloc,
126 sizeof(nacl_irt_code_data_alloc), non_pnacl_filter }, 126 sizeof(nacl_irt_code_data_alloc), non_pnacl_filter },
127 /*
128 * TODO(mseaborn): Ideally this interface should be hidden in processes
129 * that aren't PNaCl sandboxed translator processes. However, we haven't
130 * yet plumbed though a flag to indicate when a NaCl process is a PNaCl
131 * translator process. The risk of an app accidentally depending on the
132 * presence of this interface is much lower than for other non-stable IRT
133 * interfaces, because this interface is not useful to apps.
134 */
135 { NACL_IRT_PRIVATE_PNACL_TRANSLATOR_LINK_v0_1,
136 &nacl_irt_private_pnacl_translator_link,
137 sizeof(nacl_irt_private_pnacl_translator_link), NULL },
127 }; 138 };
128 139
129 size_t nacl_irt_query_core(const char *interface_ident, 140 size_t nacl_irt_query_core(const char *interface_ident,
130 void *table, size_t tablesize) { 141 void *table, size_t tablesize) {
131 return nacl_irt_query_list(interface_ident, table, tablesize, 142 return nacl_irt_query_list(interface_ident, table, tablesize,
132 irt_interfaces, sizeof(irt_interfaces)); 143 irt_interfaces, sizeof(irt_interfaces));
133 } 144 }
OLDNEW
« no previous file with comments | « src/untrusted/irt/irt_interfaces.h ('k') | src/untrusted/irt/irt_pnacl_translator.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698