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

Side by Side Diff: src/untrusted/irt/irt_core_resource.c

Issue 10834447: Scons: Drop the uses_ppapi argument from CommandSelLdrTestNacl() (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: initial Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7 #include <fcntl.h>
8
9 #include "native_client/src/untrusted/irt/irt.h"
10 #include "native_client/src/untrusted/nacl/syscall_bindings_trampoline.h"
11
12 static int nacl_irt_open_resource(const char *pathname, int *newfd) {
13 int rv = NACL_GC_WRAP_SYSCALL(NACL_SYSCALL(open)(pathname, O_RDONLY, 0));
14 if (rv < 0)
15 return -rv;
16 *newfd = rv;
17 return 0;
18 }
19
20 const struct nacl_irt_resource_open nacl_irt_resource_open = {
21 nacl_irt_open_resource,
22 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698