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

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

Issue 565763002: Plumbing though mode parameter to open, since fusefs can make use of it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 6 years, 3 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 // The Chromium build system defines __linux__ even for native client builds, 5 // The Chromium build system defines __linux__ even for native client builds,
6 // so guard against __native_client__ being defined as well. 6 // so guard against __native_client__ being defined as well.
7 #if defined(WIN32) || (defined(__linux__) && !defined(__native_client__)) 7 #if defined(WIN32) || (defined(__linux__) && !defined(__native_client__))
8 8
9 #include <errno.h> 9 #include <errno.h>
10 10
(...skipping 30 matching lines...) Expand all
41 int flags, 41 int flags,
42 int fd, 42 int fd,
43 off_t offset) { 43 off_t offset) {
44 return ENOSYS; 44 return ENOSYS;
45 } 45 }
46 46
47 int _real_munmap(void* addr, size_t length) { 47 int _real_munmap(void* addr, size_t length) {
48 return ENOSYS; 48 return ENOSYS;
49 } 49 }
50 50
51 int _real_open(const char* pathname, int oflag, mode_t cmode, int* newfd) { 51 int _real_open(const char* pathname, int oflag, mode_t mode, int* newfd) {
52 return ENOSYS; 52 return ENOSYS;
53 } 53 }
54 54
55 int _real_open_resource(const char* file, int* fd) { 55 int _real_open_resource(const char* file, int* fd) {
56 return ENOSYS; 56 return ENOSYS;
57 } 57 }
58 58
59 int _real_read(int fd, void* buf, size_t count, size_t* nread) { 59 int _real_read(int fd, void* buf, size_t count, size_t* nread) {
60 *nread = count; 60 *nread = count;
61 return 0; 61 return 0;
(...skipping 26 matching lines...) Expand all
88 // so guard against __native_client__ being defined as well. 88 // so guard against __native_client__ being defined as well.
89 #if defined(__linux__) && !defined(__native_client__) 89 #if defined(__linux__) && !defined(__native_client__)
90 90
91 void kernel_wrap_init() { 91 void kernel_wrap_init() {
92 } 92 }
93 93
94 void kernel_wrap_uninit() { 94 void kernel_wrap_uninit() {
95 } 95 }
96 96
97 #endif 97 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698