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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc

Issue 608913003: Added support for NaCl IO to use the IRT Extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reordered functions, routed mprotect to irt version. Created 6 years, 2 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "nacl_io/kernel_wrap.h" // IRT_EXT is turned on in this header.
6
5 // The Chromium build system defines __linux__ even for native client builds, 7 // The Chromium build system defines __linux__ even for native client builds,
6 // so guard against __native_client__ being defined as well. 8 // so guard against __native_client__ being defined as well.
7 #if defined(WIN32) || (defined(__linux__) && !defined(__native_client__)) 9 #if defined(WIN32) || (!defined(NACL_IO_IRT_EXT) && \
binji 2014/10/02 17:54:34 I don't think you want this one. This file will on
David Yen 2014/10/02 18:23:49 I'll revert this file, the !defined(__native_clien
David Yen 2014/10/02 18:26:15 Note that NACL_IO_IRT_EXT is meant to be able to r
10 defined(__linux__) && \
11 !defined(__native_client__))
8 12
9 #include <errno.h> 13 #include <errno.h>
10 14
11 #include "nacl_io/kernel_wrap.h"
12 #include "nacl_io/kernel_wrap_real.h" 15 #include "nacl_io/kernel_wrap_real.h"
13 16
14 // "real" functions, i.e. the unwrapped original functions. For Windows/Linux 17 // "real" functions, i.e. the unwrapped original functions. For Windows/Linux
15 // host builds we don't wrap, so the real functions aren't accessible. In most 18 // host builds we don't wrap, so the real functions aren't accessible. In most
16 // cases, we just fail. 19 // cases, we just fail.
17 20
18 int _real_close(int fd) { 21 int _real_close(int fd) {
19 return ENOSYS; 22 return ENOSYS;
20 } 23 }
21 24
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // so guard against __native_client__ being defined as well. 91 // so guard against __native_client__ being defined as well.
89 #if defined(__linux__) && !defined(__native_client__) 92 #if defined(__linux__) && !defined(__native_client__)
90 93
91 void kernel_wrap_init() { 94 void kernel_wrap_init() {
92 } 95 }
93 96
94 void kernel_wrap_uninit() { 97 void kernel_wrap_uninit() {
95 } 98 }
96 99
97 #endif 100 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698