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

Side by Side Diff: src/shared/imc/win/nacl_shm.cc

Issue 10981077: change native_client/.../sys/mman.h to native_client/.../bits/mman.h (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 2 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
« no previous file with comments | « no previous file | src/shared/platform/linux/nacl_host_dir.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 7
8 // NaCl inter-module communication primitives. 8 // NaCl inter-module communication primitives.
9 9
10 #include <windows.h> 10 #include <windows.h>
11 11
12 #include "native_client/src/shared/imc/nacl_imc.h" 12 #include "native_client/src/shared/imc/nacl_imc.h"
13 #include "native_client/src/shared/imc/nacl_imc_c.h" 13 #include "native_client/src/shared/imc/nacl_imc_c.h"
14 #include "native_client/src/shared/platform/nacl_check.h" 14 #include "native_client/src/shared/platform/nacl_check.h"
15 #include "native_client/src/shared/platform/nacl_log.h" 15 #include "native_client/src/shared/platform/nacl_log.h"
16 #include "native_client/src/trusted/desc/nacl_desc_effector.h" 16 #include "native_client/src/trusted/desc/nacl_desc_effector.h"
17 #include "native_client/src/trusted/service_runtime/include/sys/mman.h" 17 #include "native_client/src/trusted/service_runtime/include/bits/mman.h"
18 #include "native_client/src/trusted/service_runtime/nacl_config.h" 18 #include "native_client/src/trusted/service_runtime/nacl_config.h"
19 19
20 // This function is a no-op on Windows because there is no need to 20 // This function is a no-op on Windows because there is no need to
21 // override the Windows definition of NaClCreateMemoryObject(): it 21 // override the Windows definition of NaClCreateMemoryObject(): it
22 // already works inside the outer sandbox. 22 // already works inside the outer sandbox.
23 void NaClSetCreateMemoryObjectFunc(NaClCreateMemoryObjectFunc func) { 23 void NaClSetCreateMemoryObjectFunc(NaClCreateMemoryObjectFunc func) {
24 } 24 }
25 25
26 namespace nacl { 26 namespace nacl {
27 27
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 return start; 96 return start;
97 } 97 }
98 98
99 int Unmap(void* start, size_t length) { 99 int Unmap(void* start, size_t length) {
100 // TODO(shiki): Try from start to start + length 100 // TODO(shiki): Try from start to start + length
101 UnmapViewOfFile(start); 101 UnmapViewOfFile(start);
102 return 0; 102 return 0;
103 } 103 }
104 104
105 } // namespace nacl 105 } // namespace nacl
OLDNEW
« no previous file with comments | « no previous file | src/shared/platform/linux/nacl_host_dir.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698