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

Side by Side Diff: mojo/monacl/gen/libmojo.cc.template

Issue 385983008: Mojo + NaCl prototype. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better diff Created 6 years, 5 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698