OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2008 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2008 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 API. | 8 * NaCl Service Runtime API. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_BITS_STAT_H_ | 11 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_BITS_STAT_H_ |
12 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_BITS_STAT_H_ | 12 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_BITS_STAT_H_ |
13 | 13 |
14 #if defined(NACL_IN_TOOLCHAIN_HEADERS) | 14 #if defined(NACL_IN_TOOLCHAIN_HEADERS) |
15 #include <sys/types.h> | 15 #include <sys/types.h> |
| 16 #include <stdint.h> |
16 #else | 17 #else |
17 #include "native_client/src/trusted/service_runtime/include/machine/_types.h" | 18 #include "native_client/src/trusted/service_runtime/include/machine/_types.h" |
18 #endif | 19 #endif |
19 | 20 |
20 /* | 21 /* |
21 * nacl_abi_mode_t is uint32_t, so we have more bits to play with: | 22 * nacl_abi_mode_t is uint32_t, so we have more bits to play with: |
22 * | 23 * |
23 * 3 b/octal digit, 30 bits: 1234567890 | 24 * 3 b/octal digit, 30 bits: 1234567890 |
24 */ | 25 */ |
25 #define NACL_ABI_S_IFMT 0000370000 /* for now */ | 26 #define NACL_ABI_S_IFMT 0000370000 /* for now */ |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 nacl_abi_blkcnt_t nacl_abi_st_blocks; /* not implemented */ | 118 nacl_abi_blkcnt_t nacl_abi_st_blocks; /* not implemented */ |
118 nacl_abi_time_t nacl_abi_st_atime; /* access time */ | 119 nacl_abi_time_t nacl_abi_st_atime; /* access time */ |
119 int64_t nacl_abi_st_atimensec; /* possibly just pad */ | 120 int64_t nacl_abi_st_atimensec; /* possibly just pad */ |
120 nacl_abi_time_t nacl_abi_st_mtime; /* modification time */ | 121 nacl_abi_time_t nacl_abi_st_mtime; /* modification time */ |
121 int64_t nacl_abi_st_mtimensec; /* possibly just pad */ | 122 int64_t nacl_abi_st_mtimensec; /* possibly just pad */ |
122 nacl_abi_time_t nacl_abi_st_ctime; /* inode change time */ | 123 nacl_abi_time_t nacl_abi_st_ctime; /* inode change time */ |
123 int64_t nacl_abi_st_ctimensec; /* possibly just pad */ | 124 int64_t nacl_abi_st_ctimensec; /* possibly just pad */ |
124 }; | 125 }; |
125 | 126 |
126 #endif | 127 #endif |
OLD | NEW |