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

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

Issue 12194030: Rename mount (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix whitespace Created 7 years, 10 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 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. 7 // compiled, even on a non-Windows build.
8 #if defined(WIN32) 8 #if defined(WIN32)
9 9
10 #include "nacl_mounts/kernel_wrap.h" 10 #include "nacl_io/kernel_wrap.h"
11 #include <errno.h> 11 #include <errno.h>
12 #include <fcntl.h> 12 #include <fcntl.h>
13 #include <stdarg.h> 13 #include <stdarg.h>
14 #include <string.h> 14 #include <string.h>
15 #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>.
16 #include <sys/stat.h> 16 #include <sys/stat.h>
17 #include "nacl_mounts/kernel_intercept.h" 17 #include "nacl_io/kernel_intercept.h"
18 18
19 namespace { 19 namespace {
20 20
21 template <typename SrcStat, typename DstStat> 21 template <typename SrcStat, typename DstStat>
22 void CopyStat(const SrcStat* src, DstStat* dst) { 22 void CopyStat(const SrcStat* src, DstStat* dst) {
23 memset(dst, 0, sizeof(DstStat)); 23 memset(dst, 0, sizeof(DstStat));
24 dst->st_dev = src->st_dev; 24 dst->st_dev = src->st_dev;
25 dst->st_ino = src->st_ino; 25 dst->st_ino = src->st_ino;
26 dst->st_mode = src->st_mode; 26 dst->st_mode = src->st_mode;
27 dst->st_nlink = src->st_nlink; 27 dst->st_nlink = src->st_nlink;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 return ki_write(fd, buf, nbyte); 229 return ki_write(fd, buf, nbyte);
230 } 230 }
231 231
232 // Do nothing for Windows, we replace the library at link time. 232 // Do nothing for Windows, we replace the library at link time.
233 void kernel_wrap_init() { 233 void kernel_wrap_init() {
234 } 234 }
235 EXTERN_C_END 235 EXTERN_C_END
236 236
237 #endif // defined(WIN32) 237 #endif // defined(WIN32)
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc ('k') | native_client_sdk/src/libraries/nacl_io/library.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698