| 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 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_SYS_DIRENT_H | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_SYS_DIRENT_H |
| 8 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_SYS_DIRENT_H | 8 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_SYS_DIRENT_H |
| 9 | 9 |
| 10 #if defined(NACL_IN_TOOLCHAIN_HEADERS) | 10 #if defined(NACL_IN_TOOLCHAIN_HEADERS) |
| 11 #include <sys/types.h> | 11 #include <sys/types.h> |
| 12 #include <stdint.h> |
| 12 #else | 13 #else |
| 13 #include "native_client/src/trusted/service_runtime/include/machine/_types.h" | 14 #include "native_client/src/trusted/service_runtime/include/machine/_types.h" |
| 14 #endif | 15 #endif |
| 15 | 16 |
| 16 #if defined(NACL_IN_TOOLCHAIN_HEADERS) | 17 #if defined(NACL_IN_TOOLCHAIN_HEADERS) |
| 17 /* check the compiler toolchain */ | 18 /* check the compiler toolchain */ |
| 18 # ifdef NACL_ABI_MAXNAMLEN | 19 # ifdef NACL_ABI_MAXNAMLEN |
| 19 # if NACL_ABI_MAXNAMLEN != 255 | 20 # if NACL_ABI_MAXNAMLEN != 255 |
| 20 # error "MAXNAMLEN inconsistent" | 21 # error "MAXNAMLEN inconsistent" |
| 21 # endif | 22 # endif |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 extern nacl_abi_DIR *nacl_abi_opendir(const char *dirpath); | 60 extern nacl_abi_DIR *nacl_abi_opendir(const char *dirpath); |
| 60 extern struct nacl_abi_dirent *nacl_abi_readdir(nacl_abi_DIR *direntry); | 61 extern struct nacl_abi_dirent *nacl_abi_readdir(nacl_abi_DIR *direntry); |
| 61 extern int nacl_abi_closedir(nacl_abi_DIR *direntry); | 62 extern int nacl_abi_closedir(nacl_abi_DIR *direntry); |
| 62 extern void nacl_abi_rewinddir(nacl_abi_DIR *direntry); | 63 extern void nacl_abi_rewinddir(nacl_abi_DIR *direntry); |
| 63 extern int nacl_abi_readdir_r(nacl_abi_DIR *direntry, | 64 extern int nacl_abi_readdir_r(nacl_abi_DIR *direntry, |
| 64 struct nacl_abi_dirent *entry, | 65 struct nacl_abi_dirent *entry, |
| 65 struct nacl_abi_dirent **res); | 66 struct nacl_abi_dirent **res); |
| 66 extern nacl_abi_DIR *nacl_abi_fdopendir(int fd); | 67 extern nacl_abi_DIR *nacl_abi_fdopendir(int fd); |
| 67 | 68 |
| 68 #endif | 69 #endif |
| OLD | NEW |