| 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. Directory descriptor abstraction. | 8 * NaCl Service Runtime. Directory descriptor 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/trusted/desc/nacl_desc_base.h" | 18 #include "native_client/src/trusted/desc/nacl_desc_base.h" |
| 19 #include "native_client/src/trusted/desc/nacl_desc_dir.h" | 19 #include "native_client/src/trusted/desc/nacl_desc_dir.h" |
| 20 | 20 |
| 21 #include "native_client/src/shared/platform/nacl_host_dir.h" | 21 #include "native_client/src/shared/platform/nacl_host_dir.h" |
| 22 #include "native_client/src/shared/platform/nacl_log.h" | 22 #include "native_client/src/shared/platform/nacl_log.h" |
| 23 | 23 |
| 24 #include "native_client/src/trusted/service_runtime/internal_errno.h" | 24 #include "native_client/src/trusted/service_runtime/internal_errno.h" |
| 25 #include "native_client/src/trusted/service_runtime/nacl_config.h" | 25 #include "native_client/src/trusted/service_runtime/nacl_config.h" |
| 26 | 26 |
| 27 #include "native_client/src/trusted/service_runtime/include/bits/mman.h" |
| 27 #include "native_client/src/trusted/service_runtime/include/sys/dirent.h" | 28 #include "native_client/src/trusted/service_runtime/include/sys/dirent.h" |
| 28 #include "native_client/src/trusted/service_runtime/include/sys/errno.h" | 29 #include "native_client/src/trusted/service_runtime/include/sys/errno.h" |
| 29 #include "native_client/src/trusted/service_runtime/include/sys/fcntl.h" | 30 #include "native_client/src/trusted/service_runtime/include/sys/fcntl.h" |
| 30 #include "native_client/src/trusted/service_runtime/include/sys/mman.h" | |
| 31 #include "native_client/src/trusted/service_runtime/include/sys/stat.h" | 31 #include "native_client/src/trusted/service_runtime/include/sys/stat.h" |
| 32 | 32 |
| 33 | 33 |
| 34 /* | 34 /* |
| 35 * This file contains the implementation for the NaClDirDesc subclass | 35 * This file contains the implementation for the NaClDirDesc subclass |
| 36 * of NaClDesc. | 36 * of NaClDesc. |
| 37 * | 37 * |
| 38 * NaClDescDirDesc is the subclass that wraps host-OS directory information. | 38 * NaClDescDirDesc is the subclass that wraps host-OS directory information. |
| 39 */ | 39 */ |
| 40 | 40 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 int NaClDescDirInternalize(struct NaClDesc **out_desc, | 190 int NaClDescDirInternalize(struct NaClDesc **out_desc, |
| 191 struct NaClDescXferState *xfer, | 191 struct NaClDescXferState *xfer, |
| 192 struct NaClDescQuotaInterface *quota_interface) { | 192 struct NaClDescQuotaInterface *quota_interface) { |
| 193 UNREFERENCED_PARAMETER(out_desc); | 193 UNREFERENCED_PARAMETER(out_desc); |
| 194 UNREFERENCED_PARAMETER(xfer); | 194 UNREFERENCED_PARAMETER(xfer); |
| 195 UNREFERENCED_PARAMETER(quota_interface); | 195 UNREFERENCED_PARAMETER(quota_interface); |
| 196 | 196 |
| 197 NaClLog(LOG_ERROR, "NaClDescDirDescInternalize: not implemented for dir\n"); | 197 NaClLog(LOG_ERROR, "NaClDescDirDescInternalize: not implemented for dir\n"); |
| 198 return -NACL_ABI_EINVAL; | 198 return -NACL_ABI_EINVAL; |
| 199 } | 199 } |
| OLD | NEW |