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

Side by Side Diff: src/untrusted/nacl/nacl_irt_fdio.c

Issue 24908002: Provide IRT process interface Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/untrusted/nacl/nacl_irt.c ('k') | src/untrusted/nacl/nacl_irt_process.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) 2013 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2013 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 "native_client/src/untrusted/nacl/nacl_irt.h" 7 #include "native_client/src/untrusted/nacl/nacl_irt.h"
8 8
9 void __libnacl_irt_dev_fdio_init(void) { 9 void __libnacl_irt_dev_fdio_init(void) {
10 /* Attempt to load the 'dev-fdio' interface */ 10 /* Attempt to load the 'dev-fdio' interface */
11 if (!__libnacl_irt_query(NACL_IRT_DEV_FDIO_v0_2, 11 if (!__libnacl_irt_query(NACL_IRT_DEV_FDIO_v0_3,
12 &__libnacl_irt_dev_fdio, 12 &__libnacl_irt_dev_fdio,
13 sizeof(__libnacl_irt_dev_fdio))) { 13 sizeof(__libnacl_irt_dev_fdio))) {
14 /* 14 if (!__libnacl_irt_query(NACL_IRT_DEV_FDIO_v0_2,
15 * Fall back to old 'fdio' interface if the dev interface is 15 &__libnacl_irt_dev_fdio,
16 * not found. 16 sizeof(struct nacl_irt_fdio_v0_2))) {
17 */ 17 /*
18 if (!__libnacl_irt_query(NACL_IRT_FDIO_v0_1, 18 * Fall back to old 'fdio' interface if the dev interface is
19 &__libnacl_irt_dev_fdio, 19 * not found.
20 sizeof(struct nacl_irt_fdio))) { 20 */
21 __libnacl_irt_query(NACL_IRT_DEV_FDIO_v0_1, 21 if (!__libnacl_irt_query(NACL_IRT_FDIO_v0_1,
22 &__libnacl_irt_dev_fdio, 22 &__libnacl_irt_dev_fdio,
23 sizeof(struct nacl_irt_fdio)); 23 sizeof(struct nacl_irt_fdio))) {
24 __libnacl_irt_query(NACL_IRT_DEV_FDIO_v0_1,
25 &__libnacl_irt_dev_fdio,
26 sizeof(struct nacl_irt_fdio));
27 }
24 } 28 }
25 } 29 }
26 } 30 }
OLDNEW
« no previous file with comments | « src/untrusted/nacl/nacl_irt.c ('k') | src/untrusted/nacl/nacl_irt_process.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698