OLD | NEW |
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 Loading... |
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) |
OLD | NEW |