Index: mojo/monacl/gen/libmojo.cc.template |
diff --git a/mojo/monacl/gen/libmojo.cc.template b/mojo/monacl/gen/libmojo.cc.template |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7af3f30d9a76b1a3225079b05c40687a64270667 |
--- /dev/null |
+++ b/mojo/monacl/gen/libmojo.cc.template |
@@ -0,0 +1,24 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// WARNING this file was generated by $script_name |
+// Do not edit by hand. |
+ |
+#include <errno.h> |
+ |
+#include "mojo/public/c/system/core.h" |
+#include "native_client/src/public/imc_types.h" |
+#include "native_client/src/untrusted/nacl/syscall_bindings_trampoline.h" |
+ |
+int imc_sendmsg(int desc, struct NaClAbiNaClImcMsgHdr const *nmhp, int flags) { |
Mark Seaborn
2014/07/21 16:31:39
Please use the existing wrapper from src/untrusted
Nick Bray (chromium)
2014/07/21 22:38:36
Done, although it dirtys up GYP a little.
|
+ int retval = NACL_SYSCALL(imc_sendmsg)(desc, nmhp, flags); |
+ if (retval < 0) { |
+ errno = -retval; |
+ } |
+ return retval; |
+} |
+ |
+#define NACL_MOJO_DESC 5 |
+ |
+$body |