Line 0
Link Here
|
|
|
1 |
--- ./src/liblibc/src/unix/bsd/freebsdlike/freebsd/mod.rs.orig 2017-03-10 22:56:40.000000000 +0000 |
2 |
+++ ./src/liblibc/src/unix/bsd/freebsdlike/freebsd/mod.rs 2017-05-05 10:03:39.644990000 +0000 |
3 |
@@ -1,8 +1,8 @@ |
4 |
pub type fflags_t = u32; |
5 |
pub type clock_t = i32; |
6 |
-pub type ino_t = u32; |
7 |
+pub type ino_t = u64; |
8 |
pub type lwpid_t = i32; |
9 |
-pub type nlink_t = u16; |
10 |
+pub type nlink_t = u64; |
11 |
pub type blksize_t = u32; |
12 |
pub type clockid_t = ::c_int; |
13 |
pub type sem_t = _sem; |
14 |
@@ -39,10 +39,12 @@ |
15 |
} |
16 |
|
17 |
pub struct dirent { |
18 |
- pub d_fileno: u32, |
19 |
+ pub d_fileno: u64, |
20 |
+ pub d_off: u64, |
21 |
pub d_reclen: u16, |
22 |
pub d_type: u8, |
23 |
pub d_namlen: u8, |
24 |
+ pub d_pad0: u32, |
25 |
pub d_name: [::c_char; 256], |
26 |
} |
27 |
|
28 |
--- ./src/liblibc/src/unix/bsd/freebsdlike/freebsd/x86.rs.orig 2017-03-10 22:56:40.000000000 +0000 |
29 |
+++ ./src/liblibc/src/unix/bsd/freebsdlike/freebsd/x86.rs 2017-05-05 10:13:49.091702000 +0000 |
30 |
@@ -7,25 +7,30 @@ |
31 |
pub struct stat { |
32 |
pub st_dev: ::dev_t, |
33 |
pub st_ino: ::ino_t, |
34 |
- pub st_mode: ::mode_t, |
35 |
pub st_nlink: ::nlink_t, |
36 |
+ pub st_mode: ::mode_t, |
37 |
+ pub st_pad0: ::uint16_t, |
38 |
pub st_uid: ::uid_t, |
39 |
pub st_gid: ::gid_t, |
40 |
+ pub st_pad1: ::uint32_t, |
41 |
pub st_rdev: ::dev_t, |
42 |
+ pub st_atime_ext ::i32, |
43 |
pub st_atime: ::time_t, |
44 |
pub st_atime_nsec: ::c_long, |
45 |
+ pub st_mtime_ext ::i32, |
46 |
pub st_mtime: ::time_t, |
47 |
pub st_mtime_nsec: ::c_long, |
48 |
+ pub st_ctime_ext ::i32, |
49 |
pub st_ctime: ::time_t, |
50 |
pub st_ctime_nsec: ::c_long, |
51 |
+ pub st_birthtime_ext ::i32, |
52 |
+ pub st_birthtime: ::time_t, |
53 |
+ pub st_birthtime_nsec: ::c_long, |
54 |
pub st_size: ::off_t, |
55 |
pub st_blocks: ::blkcnt_t, |
56 |
pub st_blksize: ::blksize_t, |
57 |
pub st_flags: ::fflags_t, |
58 |
- pub st_gen: ::uint32_t, |
59 |
- pub st_lspare: ::int32_t, |
60 |
- pub st_birthtime: ::time_t, |
61 |
- pub st_birthtime_nsec: ::c_long, |
62 |
- __unused: [u8; 8], |
63 |
+ pub st_gen: ::uint64_t, |
64 |
+ pub st_lspare: [::uint64_t; 10], |
65 |
} |
66 |
} |
67 |
--- ./src/liblibc/src/unix/bsd/freebsdlike/freebsd/x86_64.rs.orig 2017-03-10 22:56:40.000000000 +0000 |
68 |
+++ ./src/liblibc/src/unix/bsd/freebsdlike/freebsd/x86_64.rs 2017-05-05 10:03:39.645576000 +0000 |
69 |
@@ -7,10 +7,12 @@ |
70 |
pub struct stat { |
71 |
pub st_dev: ::dev_t, |
72 |
pub st_ino: ::ino_t, |
73 |
- pub st_mode: ::mode_t, |
74 |
pub st_nlink: ::nlink_t, |
75 |
+ pub st_mode: ::mode_t, |
76 |
+ pub st_pad0: ::uint16_t, |
77 |
pub st_uid: ::uid_t, |
78 |
pub st_gid: ::gid_t, |
79 |
+ pub st_pad1: ::uint32_t, |
80 |
pub st_rdev: ::dev_t, |
81 |
pub st_atime: ::time_t, |
82 |
pub st_atime_nsec: ::c_long, |
83 |
@@ -18,13 +20,13 @@ |
84 |
pub st_mtime_nsec: ::c_long, |
85 |
pub st_ctime: ::time_t, |
86 |
pub st_ctime_nsec: ::c_long, |
87 |
+ pub st_birthtime: ::time_t, |
88 |
+ pub st_birthtime_nsec: ::c_long, |
89 |
pub st_size: ::off_t, |
90 |
pub st_blocks: ::blkcnt_t, |
91 |
pub st_blksize: ::blksize_t, |
92 |
pub st_flags: ::fflags_t, |
93 |
- pub st_gen: ::uint32_t, |
94 |
- pub st_lspare: ::int32_t, |
95 |
- pub st_birthtime: ::time_t, |
96 |
- pub st_birthtime_nsec: ::c_long, |
97 |
+ pub st_gen: ::uint64_t, |
98 |
+ pub st_spare: [::int64_t; 10], |
99 |
} |
100 |
} |
101 |
--- ./src/liblibc/src/unix/bsd/freebsdlike/mod.rs.orig 2017-03-10 22:56:40.000000000 +0000 |
102 |
+++ ./src/liblibc/src/unix/bsd/freebsdlike/mod.rs 2017-05-05 10:03:39.646020000 +0000 |
103 |
@@ -1,4 +1,4 @@ |
104 |
-pub type dev_t = u32; |
105 |
+pub type dev_t = u64; |
106 |
pub type mode_t = u16; |
107 |
pub type pthread_attr_t = *mut ::c_void; |
108 |
pub type rlim_t = i64; |
109 |
--- ./src/vendor/libc/src/unix/bsd/freebsdlike/freebsd/x86_64.rs.orig 2017-03-10 22:55:22.000000000 +0000 |
110 |
+++ ./src/vendor/libc/src/unix/bsd/freebsdlike/freebsd/x86_64.rs 2017-05-05 10:03:39.646330000 +0000 |
111 |
@@ -7,10 +7,12 @@ |
112 |
pub struct stat { |
113 |
pub st_dev: ::dev_t, |
114 |
pub st_ino: ::ino_t, |
115 |
- pub st_mode: ::mode_t, |
116 |
pub st_nlink: ::nlink_t, |
117 |
+ pub st_mode: ::mode_t, |
118 |
+ pub st_pad0: u16, |
119 |
pub st_uid: ::uid_t, |
120 |
pub st_gid: ::gid_t, |
121 |
+ pub st_pad1: ::u32, |
122 |
pub st_rdev: ::dev_t, |
123 |
pub st_atime: ::time_t, |
124 |
pub st_atime_nsec: ::c_long, |
125 |
@@ -18,13 +20,13 @@ |
126 |
pub st_mtime_nsec: ::c_long, |
127 |
pub st_ctime: ::time_t, |
128 |
pub st_ctime_nsec: ::c_long, |
129 |
+ pub st_birthtime: ::time_t, |
130 |
+ pub st_birthtime_nsec: ::c_long, |
131 |
pub st_size: ::off_t, |
132 |
pub st_blocks: ::blkcnt_t, |
133 |
pub st_blksize: ::blksize_t, |
134 |
pub st_flags: ::fflags_t, |
135 |
- pub st_gen: ::uint32_t, |
136 |
- pub st_lspare: ::int32_t, |
137 |
- pub st_birthtime: ::time_t, |
138 |
- pub st_birthtime_nsec: ::c_long, |
139 |
+ pub st_gen: ::uint64_t, |
140 |
+ pub st_spare: [u64; 10], |
141 |
} |
142 |
} |
143 |
--- ./src/vendor/libc/src/unix/bsd/freebsdlike/freebsd/mod.rs.orig 2017-03-10 22:55:22.000000000 +0000 |
144 |
+++ ./src/vendor/libc/src/unix/bsd/freebsdlike/freebsd/mod.rs 2017-05-05 10:03:39.646697000 +0000 |
145 |
@@ -1,7 +1,7 @@ |
146 |
pub type fflags_t = u32; |
147 |
pub type clock_t = i32; |
148 |
-pub type ino_t = u32; |
149 |
-pub type nlink_t = u16; |
150 |
+pub type ino_t = u64; |
151 |
+pub type nlink_t = u64; |
152 |
pub type blksize_t = u32; |
153 |
pub type clockid_t = ::c_int; |
154 |
|
155 |
@@ -10,10 +10,12 @@ |
156 |
|
157 |
s! { |
158 |
pub struct dirent { |
159 |
- pub d_fileno: u32, |
160 |
+ pub d_fileno: u64, |
161 |
+ pub d_off: u64, |
162 |
pub d_reclen: u16, |
163 |
pub d_type: u8, |
164 |
pub d_namlen: u8, |
165 |
+ pub d_pad0: u32, |
166 |
pub d_name: [::c_char; 256], |
167 |
} |
168 |
|
169 |
--- ./src/vendor/libc/src/unix/bsd/freebsdlike/freebsd/x86.rs.orig 2017-03-10 22:55:22.000000000 +0000 |
170 |
+++ ./src/vendor/libc/src/unix/bsd/freebsdlike/freebsd/x86.rs 2017-05-05 10:13:34.699604000 +0000 |
171 |
@@ -7,25 +7,30 @@ |
172 |
pub struct stat { |
173 |
pub st_dev: ::dev_t, |
174 |
pub st_ino: ::ino_t, |
175 |
- pub st_mode: ::mode_t, |
176 |
pub st_nlink: ::nlink_t, |
177 |
+ pub st_mode: ::mode_t, |
178 |
+ pub st_pad0: u16, |
179 |
pub st_uid: ::uid_t, |
180 |
pub st_gid: ::gid_t, |
181 |
+ pub st_pad1: u32, |
182 |
pub st_rdev: ::dev_t, |
183 |
+ pub st_atime_ext: ::i32, |
184 |
pub st_atime: ::time_t, |
185 |
pub st_atime_nsec: ::c_long, |
186 |
+ pub st_mtime_ext: ::i32, |
187 |
pub st_mtime: ::time_t, |
188 |
pub st_mtime_nsec: ::c_long, |
189 |
+ pub st_ctime_ext: ::i32, |
190 |
pub st_ctime: ::time_t, |
191 |
pub st_ctime_nsec: ::c_long, |
192 |
+ pub st_birthtime_ext: ::i32, |
193 |
+ pub st_birthtime: ::time_t, |
194 |
+ pub st_birthtime_nsec: ::c_long, |
195 |
pub st_size: ::off_t, |
196 |
pub st_blocks: ::blkcnt_t, |
197 |
pub st_blksize: ::blksize_t, |
198 |
pub st_flags: ::fflags_t, |
199 |
- pub st_gen: ::uint32_t, |
200 |
- pub st_lspare: ::int32_t, |
201 |
- pub st_birthtime: ::time_t, |
202 |
- pub st_birthtime_nsec: ::c_long, |
203 |
- __unused: [u8; 8], |
204 |
+ pub st_gen: ::uint64_t, |
205 |
+ pub st_spare: [u64; 10], |
206 |
} |
207 |
} |
208 |
--- ./src/vendor/libc/src/unix/bsd/freebsdlike/mod.rs.orig 2017-03-10 22:55:22.000000000 +0000 |
209 |
+++ ./src/vendor/libc/src/unix/bsd/freebsdlike/mod.rs 2017-05-05 10:03:39.647404000 +0000 |
210 |
@@ -1,4 +1,4 @@ |
211 |
-pub type dev_t = u32; |
212 |
+pub type dev_t = u64; |
213 |
pub type mode_t = u16; |
214 |
pub type pthread_attr_t = *mut ::c_void; |
215 |
pub type rlim_t = i64; |
216 |
--- ./src/libstd/os/freebsd/raw.rs.orig 2017-03-10 22:55:21.000000000 +0000 |
217 |
+++ ./src/libstd/os/freebsd/raw.rs 2017-05-05 10:24:00.391639000 +0000 |
218 |
@@ -38,32 +38,48 @@ |
219 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
220 |
pub struct stat { |
221 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
222 |
- pub st_dev: u32, |
223 |
+ pub st_dev: u64, |
224 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
225 |
- pub st_ino: u32, |
226 |
+ pub st_ino: u64, |
227 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
228 |
+ pub st_nlink: u64, |
229 |
+ #[stable(feature = "raw_ext", since = "1.1.0")] |
230 |
pub st_mode: u16, |
231 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
232 |
- pub st_nlink: u16, |
233 |
+ pub st_pad0: u16, |
234 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
235 |
pub st_uid: u32, |
236 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
237 |
pub st_gid: u32, |
238 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
239 |
- pub st_rdev: u32, |
240 |
+ pub st_pad1: u32, |
241 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
242 |
+ pub st_rdev: u64, |
243 |
+ #[cfg(target_arch = "x86")] |
244 |
+ pub st_atime_ext: c_long, |
245 |
+ #[stable(feature = "raw_ext", since = "1.1.0")] |
246 |
pub st_atime: c_long, |
247 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
248 |
pub st_atime_nsec: c_long, |
249 |
+ #[cfg(target_arch = "x86")] |
250 |
+ pub st_mtime_ext: c_long, |
251 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
252 |
pub st_mtime: c_long, |
253 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
254 |
pub st_mtime_nsec: c_long, |
255 |
+ #[cfg(target_arch = "x86")] |
256 |
+ pub st_ctime_ext: c_long, |
257 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
258 |
pub st_ctime: c_long, |
259 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
260 |
pub st_ctime_nsec: c_long, |
261 |
+ #[cfg(target_arch = "x86")] |
262 |
+ pub st_birthtime_ext: c_long, |
263 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
264 |
+ pub st_birthtime: c_long, |
265 |
+ #[stable(feature = "raw_ext", since = "1.1.0")] |
266 |
+ pub st_birthtime_nsec: c_long, |
267 |
+ #[stable(feature = "raw_ext", since = "1.1.0")] |
268 |
pub st_size: i64, |
269 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
270 |
pub st_blocks: i64, |
271 |
@@ -72,14 +88,7 @@ |
272 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
273 |
pub st_flags: u32, |
274 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
275 |
- pub st_gen: u32, |
276 |
+ pub st_gen: u64, |
277 |
#[stable(feature = "raw_ext", since = "1.1.0")] |
278 |
- pub st_lspare: i32, |
279 |
- #[stable(feature = "raw_ext", since = "1.1.0")] |
280 |
- pub st_birthtime: c_long, |
281 |
- #[stable(feature = "raw_ext", since = "1.1.0")] |
282 |
- pub st_birthtime_nsec: c_long, |
283 |
- #[cfg(target_arch = "x86")] |
284 |
- #[stable(feature = "raw_ext", since = "1.1.0")] |
285 |
- pub __unused: [u8; 8], |
286 |
+ pub st_spare: [u64; 10], |
287 |
} |
288 |
--- ./src/libstd/os/freebsd/fs.rs.orig 2017-03-10 22:55:21.000000000 +0000 |
289 |
+++ ./src/libstd/os/freebsd/fs.rs 2017-05-05 10:03:39.647976000 +0000 |
290 |
@@ -74,8 +74,6 @@ |
291 |
fn st_flags(&self) -> u32; |
292 |
#[stable(feature = "metadata_ext2", since = "1.8.0")] |
293 |
fn st_gen(&self) -> u32; |
294 |
- #[stable(feature = "metadata_ext2", since = "1.8.0")] |
295 |
- fn st_lspare(&self) -> u32; |
296 |
} |
297 |
|
298 |
#[stable(feature = "metadata_ext", since = "1.1.0")] |
299 |
@@ -146,9 +144,6 @@ |
300 |
} |
301 |
fn st_flags(&self) -> u32 { |
302 |
self.as_inner().as_inner().st_flags as u32 |
303 |
- } |
304 |
- fn st_lspare(&self) -> u32 { |
305 |
- self.as_inner().as_inner().st_lspare as u32 |
306 |
} |
307 |
} |
308 |
|