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

Unified Diff: src/untrusted/irt/irt_entry_ppapi.c

Issue 7605029: Extend IRT with nacl_irt_resource_open interface (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: fixed license Created 9 years, 4 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/irt/irt.h ('k') | src/untrusted/irt/irt_interfaces.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/irt/irt_entry_ppapi.c
===================================================================
--- src/untrusted/irt/irt_entry_ppapi.c (revision 0)
+++ src/untrusted/irt/irt_entry_ppapi.c (revision 0)
@@ -0,0 +1,16 @@
+/*
+ * Copyright (c) 2011 The Native Client Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "native_client/src/shared/ppapi_proxy/ppruntime.h"
+
+static __attribute__((constructor)) void CallIrtInit(void) {
+ if (IrtInit()) {
+ static const char fatal_msg[] =
+ "irt initialization (IRTInit) failed.\n";
+ write(2, fatal_msg, sizeof(fatal_msg) - 1);
+ _exit(-1);
+ }
+}
Property changes on: src/untrusted/irt/irt_entry_ppapi.c
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « src/untrusted/irt/irt.h ('k') | src/untrusted/irt/irt_interfaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698