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

Unified 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, 3 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/nacl/nacl_irt_fdio.c
diff --git a/src/untrusted/nacl/nacl_irt_fdio.c b/src/untrusted/nacl/nacl_irt_fdio.c
index 03b3d60dd616c67ee686cea87ce8d2eab6365f37..e4c64d5fa2e0225ca16261c4e2c694eaa2eaaaa9 100644
--- a/src/untrusted/nacl/nacl_irt_fdio.c
+++ b/src/untrusted/nacl/nacl_irt_fdio.c
@@ -8,19 +8,23 @@
void __libnacl_irt_dev_fdio_init(void) {
/* Attempt to load the 'dev-fdio' interface */
- if (!__libnacl_irt_query(NACL_IRT_DEV_FDIO_v0_2,
+ if (!__libnacl_irt_query(NACL_IRT_DEV_FDIO_v0_3,
&__libnacl_irt_dev_fdio,
sizeof(__libnacl_irt_dev_fdio))) {
- /*
- * Fall back to old 'fdio' interface if the dev interface is
- * not found.
- */
- if (!__libnacl_irt_query(NACL_IRT_FDIO_v0_1,
- &__libnacl_irt_dev_fdio,
- sizeof(struct nacl_irt_fdio))) {
- __libnacl_irt_query(NACL_IRT_DEV_FDIO_v0_1,
- &__libnacl_irt_dev_fdio,
- sizeof(struct nacl_irt_fdio));
+ if (!__libnacl_irt_query(NACL_IRT_DEV_FDIO_v0_2,
+ &__libnacl_irt_dev_fdio,
+ sizeof(struct nacl_irt_fdio_v0_2))) {
+ /*
+ * Fall back to old 'fdio' interface if the dev interface is
+ * not found.
+ */
+ if (!__libnacl_irt_query(NACL_IRT_FDIO_v0_1,
+ &__libnacl_irt_dev_fdio,
+ sizeof(struct nacl_irt_fdio))) {
+ __libnacl_irt_query(NACL_IRT_DEV_FDIO_v0_1,
+ &__libnacl_irt_dev_fdio,
+ sizeof(struct nacl_irt_fdio));
+ }
}
}
}
« 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