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

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

Issue 474433005: [NaCl SDK] Remove syscalls wrappers for chmod and unlink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 return -1; 71 return -1;
72 72
73 *nwrote = rtn; 73 *nwrote = rtn;
74 return 0; 74 return 0;
75 } 75 }
76 76
77 void _real_exit(int status) { 77 void _real_exit(int status) {
78 exit(status); 78 exit(status);
79 } 79 }
80 80
81 int _real_getcwd(char* pathname, size_t len) {
82 return ENOSYS;
83 }
84
81 #endif 85 #endif
82 86
83 // The Chromium build system defines __linux__ even for native client builds, 87 // The Chromium build system defines __linux__ even for native client builds,
84 // so guard against __native_client__ being defined as well. 88 // so guard against __native_client__ being defined as well.
85 #if defined(__linux__) && !defined(__native_client__) 89 #if defined(__linux__) && !defined(__native_client__)
86 90
87 void kernel_wrap_init() { 91 void kernel_wrap_init() {
88 } 92 }
89 93
90 void kernel_wrap_uninit() { 94 void kernel_wrap_uninit() {
91 } 95 }
92 96
93 #endif 97 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698