OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // WARNING this file was generated by $script_name |
| 6 // Do not edit by hand. |
| 7 |
| 8 #include <errno.h> |
| 9 |
| 10 #include "mojo/public/c/system/core.h" |
| 11 #include "native_client/src/public/imc_syscalls.h" |
| 12 #include "native_client/src/public/imc_types.h" |
| 13 #include "native_client/src/untrusted/nacl/syscall_bindings_trampoline.h" |
| 14 |
| 15 #define NACL_MOJO_DESC 5 |
| 16 |
| 17 static void DoMojoCall(uint32_t params[], int numParams) { |
| 18 NaClAbiNaClImcMsgIoVec iov[1] = { |
| 19 {params, numParams} |
| 20 }; |
| 21 NaClAbiNaClImcMsgHdr msgh = {iov, 1, NULL, 0}; |
| 22 // Note: return value unchecked. We're relying on the result parameter being |
| 23 // unmodified - if the syscall fails, the Mojo function will return whatever |
| 24 // the result parameter was initialized to before this function was called. |
| 25 imc_sendmsg(NACL_MOJO_DESC, &msgh, 0); |
| 26 } |
| 27 |
| 28 $body |
OLD | NEW |