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

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

Issue 1235633004: DON'T USE THIS -- Providing some missing POSIX File syscalls. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 5 years, 5 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_filename.c ('k') | src/untrusted/nacl/syscall_bindings_trampoline.h » ('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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 /* 46 /*
47 * "irt-fdio" is disabled under PNaCl because file descriptors in 47 * "irt-fdio" is disabled under PNaCl because file descriptors in
48 * general are not exposed in PNaCl's in-browser ABI (since 48 * general are not exposed in PNaCl's in-browser ABI (since
49 * open_resource() is also disabled under PNaCl). "irt-fdio" is 49 * open_resource() is also disabled under PNaCl). "irt-fdio" is
50 * only exposed under PNaCl via the "dev" query string since writing 50 * only exposed under PNaCl via the "dev" query string since writing
51 * to stdout/stderr is useful for debugging. 51 * to stdout/stderr is useful for debugging.
52 */ 52 */
53 { NACL_IRT_FDIO_v0_1, &nacl_irt_fdio, sizeof(nacl_irt_fdio), 53 { NACL_IRT_FDIO_v0_1, &nacl_irt_fdio, sizeof(nacl_irt_fdio),
54 non_pnacl_filter }, 54 non_pnacl_filter },
55 { NACL_IRT_DEV_FDIO_v0_1, &nacl_irt_fdio, sizeof(nacl_irt_fdio), NULL }, 55 { NACL_IRT_DEV_FDIO_v0_1, &nacl_irt_fdio, sizeof(nacl_irt_fdio), NULL },
56 { NACL_IRT_DEV_FDIO_v0_2, &nacl_irt_dev_fdio, sizeof(nacl_irt_dev_fdio),
57 NULL },
56 { NACL_IRT_DEV_FDIO_v0_3, &nacl_irt_dev_fdio, sizeof(nacl_irt_dev_fdio), 58 { NACL_IRT_DEV_FDIO_v0_3, &nacl_irt_dev_fdio, sizeof(nacl_irt_dev_fdio),
57 file_access_filter }, 59 file_access_filter },
58 /* 60 /*
59 * "irt-filename" is made available to non-PNaCl NaCl apps only for 61 * "irt-filename" is made available to non-PNaCl NaCl apps only for
60 * compatibility, because existing nexes abort on startup if 62 * compatibility, because existing nexes abort on startup if
61 * "irt-filename" is not available. 63 * "irt-filename" is not available.
62 */ 64 */
63 { NACL_IRT_FILENAME_v0_1, &nacl_irt_filename, sizeof(nacl_irt_filename), 65 { NACL_IRT_FILENAME_v0_1, &nacl_irt_filename, sizeof(nacl_irt_filename),
64 non_pnacl_filter }, 66 non_pnacl_filter },
65 { NACL_IRT_DEV_FILENAME_v0_2, &nacl_irt_dev_filename_v0_2, 67 { NACL_IRT_DEV_FILENAME_v0_2, &nacl_irt_dev_filename_v0_2,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 { NACL_IRT_PRIVATE_PNACL_TRANSLATOR_COMPILE_v0_1, 144 { NACL_IRT_PRIVATE_PNACL_TRANSLATOR_COMPILE_v0_1,
143 &nacl_irt_private_pnacl_translator_compile, 145 &nacl_irt_private_pnacl_translator_compile,
144 sizeof(nacl_irt_private_pnacl_translator_compile), NULL }, 146 sizeof(nacl_irt_private_pnacl_translator_compile), NULL },
145 }; 147 };
146 148
147 size_t nacl_irt_query_core(const char *interface_ident, 149 size_t nacl_irt_query_core(const char *interface_ident,
148 void *table, size_t tablesize) { 150 void *table, size_t tablesize) {
149 return nacl_irt_query_list(interface_ident, table, tablesize, 151 return nacl_irt_query_list(interface_ident, table, tablesize,
150 irt_interfaces, sizeof(irt_interfaces)); 152 irt_interfaces, sizeof(irt_interfaces));
151 } 153 }
OLDNEW
« no previous file with comments | « src/untrusted/irt/irt_filename.c ('k') | src/untrusted/nacl/syscall_bindings_trampoline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698