 Chromium Code Reviews
 Chromium Code Reviews Issue 385983008:
  Mojo + NaCl prototype.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 385983008:
  Mojo + NaCl prototype.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| 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_types.h" | |
| 12 #include "native_client/src/untrusted/nacl/syscall_bindings_trampoline.h" | |
| 13 | |
| 14 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.
 | |
| 15 int retval = NACL_SYSCALL(imc_sendmsg)(desc, nmhp, flags); | |
| 16 if (retval < 0) { | |
| 17 errno = -retval; | |
| 18 } | |
| 19 return retval; | |
| 20 } | |
| 21 | |
| 22 #define NACL_MOJO_DESC 5 | |
| 23 | |
| 24 $body | |
| OLD | NEW |