Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1684)

Side by Side Diff: src/trusted/service_runtime/include/sys/dirent.h

Issue 1163893003: Don't include <stdint.h> from within <machine/_types.h> (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/include/machine/_types.h ('k') | src/trusted/service_runtime/include/sys/unistd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698