OLD | NEW |
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 #include "native_client/src/include/nacl_defines.h" |
| 8 |
7 #if NACL_LINUX | 9 #if NACL_LINUX |
8 #include <errno.h> | 10 #include <errno.h> |
9 #include <sys/mman.h> | 11 #include <sys/mman.h> |
10 #endif | 12 #endif |
11 | 13 |
12 #include "native_client/src/include/nacl_platform.h" | 14 #include "native_client/src/include/nacl_platform.h" |
13 #include "native_client/src/shared/platform/nacl_check.h" | 15 #include "native_client/src/shared/platform/nacl_check.h" |
14 #include "native_client/src/trusted/service_runtime/include/sys/errno.h" | 16 #include "native_client/src/trusted/service_runtime/include/sys/errno.h" |
15 #include "native_client/src/trusted/service_runtime/sel_addrspace.h" | 17 #include "native_client/src/trusted/service_runtime/sel_addrspace.h" |
16 #include "native_client/src/trusted/service_runtime/sel_memory.h" | 18 #include "native_client/src/trusted/service_runtime/sel_memory.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 " failed\n", | 69 " failed\n", |
68 (uintptr_t) *mem); | 70 (uintptr_t) *mem); |
69 return LOAD_NO_MEMORY_FOR_ADDRESS_SPACE; | 71 return LOAD_NO_MEMORY_FOR_ADDRESS_SPACE; |
70 } | 72 } |
71 NaClLog(4, "NaClAllocateSpace: %"NACL_PRIxPTR", %"NACL_PRIxS"\n", | 73 NaClLog(4, "NaClAllocateSpace: %"NACL_PRIxPTR", %"NACL_PRIxS"\n", |
72 (uintptr_t) *mem, | 74 (uintptr_t) *mem, |
73 addrsp_size); | 75 addrsp_size); |
74 | 76 |
75 return LOAD_OK; | 77 return LOAD_OK; |
76 } | 78 } |
OLD | NEW |