| 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 <errno.h> | 7 #include <errno.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include "native_client/src/include/portability.h" | 10 #include "native_client/src/include/portability.h" |
| 11 | 11 |
| 12 #include "native_client/src/shared/platform/nacl_check.h" | 12 #include "native_client/src/shared/platform/nacl_check.h" |
| 13 #include "native_client/src/shared/platform/nacl_log.h" | 13 #include "native_client/src/shared/platform/nacl_log.h" |
| 14 | 14 |
| 15 #include "native_client/src/trusted/gio/gio_shm.h" | 15 #include "native_client/src/trusted/gio/gio_shm.h" |
| 16 #include "native_client/src/trusted/service_runtime/include/sys/mman.h" | 16 #include "native_client/src/trusted/service_runtime/include/bits/mman.h" |
| 17 #include "native_client/src/trusted/service_runtime/include/sys/stat.h" | 17 #include "native_client/src/trusted/service_runtime/include/sys/stat.h" |
| 18 #include "native_client/src/trusted/service_runtime/nacl_config.h" | 18 #include "native_client/src/trusted/service_runtime/nacl_config.h" |
| 19 #include "native_client/src/trusted/service_runtime/sel_util.h" | 19 #include "native_client/src/trusted/service_runtime/sel_util.h" |
| 20 | 20 |
| 21 #include "native_client/src/trusted/desc/nacl_desc_base.h" | 21 #include "native_client/src/trusted/desc/nacl_desc_base.h" |
| 22 #include "native_client/src/trusted/desc/nacl_desc_effector_trusted_mem.h" | 22 #include "native_client/src/trusted/desc/nacl_desc_effector_trusted_mem.h" |
| 23 #include "native_client/src/trusted/desc/nacl_desc_imc_shm.h" | 23 #include "native_client/src/trusted/desc/nacl_desc_imc_shm.h" |
| 24 | 24 |
| 25 /* | 25 /* |
| 26 * This code maps in GIO_SHM_WINDOWSIZE bytes at a time for doing | 26 * This code maps in GIO_SHM_WINDOWSIZE bytes at a time for doing |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 } | 441 } |
| 442 | 442 |
| 443 rv = NaClGioShmCtorIntern(self, (struct NaClDesc *) shmp, shm_size); | 443 rv = NaClGioShmCtorIntern(self, (struct NaClDesc *) shmp, shm_size); |
| 444 | 444 |
| 445 if (!rv) { | 445 if (!rv) { |
| 446 NaClDescUnref((struct NaClDesc *) shmp); | 446 NaClDescUnref((struct NaClDesc *) shmp); |
| 447 free(shmp); | 447 free(shmp); |
| 448 } | 448 } |
| 449 return rv; | 449 return rv; |
| 450 } | 450 } |
| OLD | NEW |