OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2008 The Native Client Authors. All rights reserved. | |
3 * Use of this source code is governed by a BSD-style license that can | |
4 * be found in the LICENSE file. | |
5 */ | |
6 | |
7 /* TODO(mseaborn): Import this header file from outside rather than | |
8 keeping a copy in the glibc tree. */ | |
pasko-google - do not use
2012/04/16 11:32:26
this means there is a copy of this header in the n
vissi
2012/04/18 16:28:33
There's a copy of it in glibc. Copy of irt_syscall
| |
9 | |
10 #ifndef _NACL_STAT_H | |
11 #define _NACL_STAT_H | |
12 | |
13 | |
14 /* From service_runtime/include/machine/_types.h */ | |
15 | |
16 #include <stdint.h> | |
17 | |
18 #ifndef nacl_abi___dev_t_defined | |
19 #define nacl_abi___dev_t_defined | |
20 typedef int64_t nacl_abi___dev_t; | |
21 typedef nacl_abi___dev_t nacl_abi_dev_t; | |
22 #endif | |
23 | |
24 #ifndef nacl_abi___ino_t_defined | |
25 #define nacl_abi___ino_t_defined | |
26 typedef int64_t nacl_abi___ino_t; | |
27 typedef nacl_abi___ino_t nacl_abi_ino_t; | |
28 #endif | |
29 | |
30 #ifndef nacl_abi___mode_t_defined | |
31 #define nacl_abi___mode_t_defined | |
32 typedef uint32_t nacl_abi___mode_t; | |
33 typedef nacl_abi___mode_t nacl_abi_mode_t; | |
34 #endif | |
35 | |
36 #ifndef nacl_abi___nlink_t_defined | |
37 #define nacl_abi___nlink_t_defined | |
38 typedef unsigned int nacl_abi___nlink_t; | |
39 typedef nacl_abi___nlink_t nacl_abi_nlink_t; | |
40 #endif | |
41 | |
42 #ifndef nacl_abi___uid_t_defined | |
43 #define nacl_abi___uid_t_defined | |
44 typedef uint32_t nacl_abi___uid_t; | |
45 typedef nacl_abi___uid_t nacl_abi_uid_t; | |
46 #endif | |
47 | |
48 #ifndef nacl_abi___gid_t_defined | |
49 #define nacl_abi___gid_t_defined | |
50 typedef uint32_t nacl_abi___gid_t; | |
51 typedef nacl_abi___gid_t nacl_abi_gid_t; | |
52 #endif | |
53 | |
54 #ifndef nacl_abi___off_t_defined | |
55 #define nacl_abi___off_t_defined | |
56 typedef int64_t nacl_abi__off_t; | |
57 typedef nacl_abi__off_t nacl_abi_off_t; | |
58 #endif | |
59 | |
60 #ifndef nacl_abi___blksize_t_defined | |
61 #define nacl_abi___blksize_t_defined | |
62 typedef long int nacl_abi___blksize_t; | |
63 typedef nacl_abi___blksize_t nacl_abi_blksize_t; | |
64 #endif | |
65 | |
66 #ifndef nacl_abi___blkcnt_t_defined | |
67 #define nacl_abi___blkcnt_t_defined | |
68 typedef long int nacl_abi___blkcnt_t; | |
69 typedef nacl_abi___blkcnt_t nacl_abi_blkcnt_t; | |
70 #endif | |
71 | |
72 #ifndef nacl_abi___time_t_defined | |
73 #define nacl_abi___time_t_defined | |
74 typedef int64_t nacl_abi___time_t; | |
75 typedef nacl_abi___time_t nacl_abi_time_t; | |
76 #endif | |
77 | |
78 | |
79 /* From service_runtime/fs/fs.h */ | |
80 | |
81 struct nacl_abi_stat { /* must be renamed when ABI is exported */ | |
82 nacl_abi_dev_t nacl_abi_st_dev; /* not implemented */ | |
83 nacl_abi_ino_t nacl_abi_st_ino; /* not implemented */ | |
84 nacl_abi_mode_t nacl_abi_st_mode; /* partially implemented. */ | |
85 nacl_abi_nlink_t nacl_abi_st_nlink; /* link count */ | |
86 nacl_abi_uid_t nacl_abi_st_uid; /* not implemented */ | |
87 nacl_abi_gid_t nacl_abi_st_gid; /* not implemented */ | |
88 nacl_abi_dev_t nacl_abi_st_rdev; /* not implemented */ | |
89 nacl_abi_off_t nacl_abi_st_size; /* object size */ | |
90 nacl_abi_blksize_t nacl_abi_st_blksize; /* not implemented */ | |
91 nacl_abi_blkcnt_t nacl_abi_st_blocks; /* not implemented */ | |
92 nacl_abi_time_t nacl_abi_st_atime; /* access time */ | |
93 int64_t nacl_abi_st_atimensec; /* possibly just pad */ | |
94 nacl_abi_time_t nacl_abi_st_mtime; /* modification time */ | |
95 int64_t nacl_abi_st_mtimensec; /* possibly just pad */ | |
96 nacl_abi_time_t nacl_abi_st_ctime; /* inode change time */ | |
97 int64_t nacl_abi_st_ctimensec; /* possibly just pad */ | |
98 }; | |
99 | |
100 /* Converts struct nacl_abi_stat to struct stat. Implemented in fxstat.c */ | |
101 void __nacl_abi_stat_to_stat (struct nacl_abi_stat *nacl_st, | |
102 struct stat *st); | |
103 #endif | |
OLD | NEW |