| 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 /* | 7 /* |
| 8 * NaCl Service Runtime. Semaphore Descriptor / Handle abstraction. | 8 * NaCl Service Runtime. Semaphore Descriptor / Handle abstraction. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include "native_client/src/include/portability.h" | 11 #include "native_client/src/include/portability.h" |
| 12 | 12 |
| 13 #include <stdlib.h> | 13 #include <stdlib.h> |
| 14 #include <string.h> | 14 #include <string.h> |
| 15 | 15 |
| 16 #include "native_client/src/shared/imc/nacl_imc_c.h" | 16 #include "native_client/src/shared/imc/nacl_imc_c.h" |
| 17 | 17 |
| 18 #include "native_client/src/shared/platform/nacl_host_desc.h" | 18 #include "native_client/src/shared/platform/nacl_host_desc.h" |
| 19 #include "native_client/src/shared/platform/nacl_log.h" | 19 #include "native_client/src/shared/platform/nacl_log.h" |
| 20 #include "native_client/src/shared/platform/nacl_semaphore.h" | 20 #include "native_client/src/shared/platform/nacl_semaphore.h" |
| 21 | 21 |
| 22 #include "native_client/src/trusted/desc/nacl_desc_base.h" | 22 #include "native_client/src/trusted/desc/nacl_desc_base.h" |
| 23 #include "native_client/src/trusted/desc/nacl_desc_semaphore.h" | 23 #include "native_client/src/trusted/desc/nacl_desc_semaphore.h" |
| 24 | 24 |
| 25 #include "native_client/src/trusted/service_runtime/internal_errno.h" | 25 #include "native_client/src/trusted/service_runtime/internal_errno.h" |
| 26 #include "native_client/src/trusted/service_runtime/nacl_config.h" | 26 #include "native_client/src/trusted/service_runtime/nacl_config.h" |
| 27 #include "native_client/src/trusted/service_runtime/include/bits/mman.h" |
| 27 #include "native_client/src/trusted/service_runtime/include/sys/errno.h" | 28 #include "native_client/src/trusted/service_runtime/include/sys/errno.h" |
| 28 #include "native_client/src/trusted/service_runtime/include/sys/fcntl.h" | 29 #include "native_client/src/trusted/service_runtime/include/sys/fcntl.h" |
| 29 #include "native_client/src/trusted/service_runtime/include/sys/mman.h" | |
| 30 #include "native_client/src/trusted/service_runtime/include/sys/stat.h" | 30 #include "native_client/src/trusted/service_runtime/include/sys/stat.h" |
| 31 | 31 |
| 32 | 32 |
| 33 /* | 33 /* |
| 34 * This file contains the implementation for the NaClDescSemaphore subclass | 34 * This file contains the implementation for the NaClDescSemaphore subclass |
| 35 * of NaClDesc. | 35 * of NaClDesc. |
| 36 * | 36 * |
| 37 * NaClDescSemaphore is the subclass that wraps host-OS semaphore abstractions | 37 * NaClDescSemaphore is the subclass that wraps host-OS semaphore abstractions |
| 38 */ | 38 */ |
| 39 | 39 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 NaClDescSendMsgNotImplemented, | 130 NaClDescSendMsgNotImplemented, |
| 131 NaClDescRecvMsgNotImplemented, | 131 NaClDescRecvMsgNotImplemented, |
| 132 NaClDescLowLevelSendMsgNotImplemented, | 132 NaClDescLowLevelSendMsgNotImplemented, |
| 133 NaClDescLowLevelRecvMsgNotImplemented, | 133 NaClDescLowLevelRecvMsgNotImplemented, |
| 134 NaClDescConnectAddrNotImplemented, | 134 NaClDescConnectAddrNotImplemented, |
| 135 NaClDescAcceptConnNotImplemented, | 135 NaClDescAcceptConnNotImplemented, |
| 136 NaClDescSemaphorePost, | 136 NaClDescSemaphorePost, |
| 137 NaClDescSemaphoreSemWait, | 137 NaClDescSemaphoreSemWait, |
| 138 NaClDescSemaphoreGetValue, | 138 NaClDescSemaphoreGetValue, |
| 139 }; | 139 }; |
| OLD | NEW |