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

Side by Side Diff: native_client_sdk/src/libraries/nacl_mounts/kernel_wrap_win.cc

Issue 11744010: [NaCl SDK] Change the kernel_wrap OS #ifdefs in nacl_mounts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 5
6 // The entire file is wrapped in this #if. We do this so this .cc file can be
7 // compiled, even on a non-Windows build.
8 #if defined(WIN32)
9
6 #include "nacl_mounts/kernel_wrap.h" 10 #include "nacl_mounts/kernel_wrap.h"
7 #include <errno.h> 11 #include <errno.h>
8 #include <fcntl.h> 12 #include <fcntl.h>
9 #include <stdarg.h> 13 #include <stdarg.h>
10 #include <string.h> 14 #include <string.h>
11 #include <sys/types.h> // This must be included before <sys/stat.h>. 15 #include <sys/types.h> // This must be included before <sys/stat.h>.
12 #include <sys/stat.h> 16 #include <sys/stat.h>
13 #include "nacl_mounts/kernel_intercept.h" 17 #include "nacl_mounts/kernel_intercept.h"
14 18
15 namespace { 19 namespace {
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 213
210 int _unlink(const char* path) { 214 int _unlink(const char* path) {
211 return ki_unlink(path); 215 return ki_unlink(path);
212 } 216 }
213 217
214 int _write(int fd, const void* buf, size_t nbyte) { 218 int _write(int fd, const void* buf, size_t nbyte) {
215 return ki_write(fd, buf, nbyte); 219 return ki_write(fd, buf, nbyte);
216 } 220 }
217 221
218 EXTERN_C_END 222 EXTERN_C_END
223
224 #endif // defined(WIN32)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698