| 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 | 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 Loading... |
| 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 } |
| OLD | NEW |