Add COPYRIGHT since at least one port references it
[dports.git] / lang / rust / files / extra-patch-ino64
1 --- ./src/liblibc/src/unix/bsd/freebsdlike/freebsd/aarch64.rs.orig      2017-04-24 18:56:45.000000000 +0000
2 +++ ./src/liblibc/src/unix/bsd/freebsdlike/freebsd/aarch64.rs   2017-05-30 07:55:40.703709000 +0000
3 @@ -7,10 +7,12 @@
4      pub struct stat {
5          pub st_dev: ::dev_t,
6          pub st_ino: ::ino_t,
7 -        pub st_mode: ::mode_t,
8          pub st_nlink: ::nlink_t,
9 +        pub st_mode: ::mode_t,
10 +        pub st_pad0: ::uint16_t,
11          pub st_uid: ::uid_t,
12          pub st_gid: ::gid_t,
13 +        pub st_pad1: ::uint32_t,
14          pub st_rdev: ::dev_t,
15          pub st_atime: ::time_t,
16          pub st_atime_nsec: ::c_long,
17 @@ -18,13 +20,13 @@
18          pub st_mtime_nsec: ::c_long,
19          pub st_ctime: ::time_t,
20          pub st_ctime_nsec: ::c_long,
21 +        pub st_birthtime: ::time_t,
22 +        pub st_birthtime_nsec: ::c_long,
23          pub st_size: ::off_t,
24          pub st_blocks: ::blkcnt_t,
25          pub st_blksize: ::blksize_t,
26          pub st_flags: ::fflags_t,
27 -        pub st_gen: ::uint32_t,
28 -        pub st_lspare: ::int32_t,
29 -        pub st_birthtime: ::time_t,
30 -        pub st_birthtime_nsec: ::c_long,
31 +        pub st_gen: ::uint64_t,
32 +        pub st_spare: [::uint64_t; 10],
33      }
34  }
35 --- ./src/liblibc/src/unix/bsd/freebsdlike/freebsd/mod.rs.orig  2017-04-24 18:56:45.000000000 +0000
36 +++ ./src/liblibc/src/unix/bsd/freebsdlike/freebsd/mod.rs       2017-05-25 16:28:37.280076000 +0000
37 @@ -1,8 +1,8 @@
38  pub type fflags_t = u32;
39  pub type clock_t = i32;
40 -pub type ino_t = u32;
41 +pub type ino_t = u64;
42  pub type lwpid_t = i32;
43 -pub type nlink_t = u16;
44 +pub type nlink_t = u64;
45  pub type blksize_t = u32;
46  pub type clockid_t = ::c_int;
47  pub type sem_t = _sem;
48 @@ -40,10 +40,13 @@
49      }
50  
51      pub struct dirent {
52 -        pub d_fileno: u32,
53 +        pub d_fileno: u64,
54 +        pub d_off: u64,
55          pub d_reclen: u16,
56          pub d_type: u8,
57 -        pub d_namlen: u8,
58 +        pub d_pad0: u8,
59 +        pub d_namlen: u16,
60 +        pub d_pad1: u16,
61          pub d_name: [::c_char; 256],
62      }
63  
64 --- ./src/liblibc/src/unix/bsd/freebsdlike/freebsd/x86.rs.orig  2017-04-24 18:56:45.000000000 +0000
65 +++ ./src/liblibc/src/unix/bsd/freebsdlike/freebsd/x86.rs       2017-05-25 16:25:42.303616000 +0000
66 @@ -7,25 +7,30 @@
67      pub struct stat {
68          pub st_dev: ::dev_t,
69          pub st_ino: ::ino_t,
70 -        pub st_mode: ::mode_t,
71          pub st_nlink: ::nlink_t,
72 +        pub st_mode: ::mode_t,
73 +        pub st_pad0: ::uint16_t,
74          pub st_uid: ::uid_t,
75          pub st_gid: ::gid_t,
76 +        pub st_pad1: ::uint32_t,
77          pub st_rdev: ::dev_t,
78 +        pub st_atime_ext: ::int32_t,
79          pub st_atime: ::time_t,
80          pub st_atime_nsec: ::c_long,
81 +        pub st_mtime_ext: ::int32_t,
82          pub st_mtime: ::time_t,
83          pub st_mtime_nsec: ::c_long,
84 +        pub st_ctime_ext: ::int32_t,
85          pub st_ctime: ::time_t,
86          pub st_ctime_nsec: ::c_long,
87 +        pub st_birthtime_ext: ::int32_t,
88 +        pub st_birthtime: ::time_t,
89 +        pub st_birthtime_nsec: ::c_long,
90          pub st_size: ::off_t,
91          pub st_blocks: ::blkcnt_t,
92          pub st_blksize: ::blksize_t,
93          pub st_flags: ::fflags_t,
94 -        pub st_gen: ::uint32_t,
95 -        pub st_lspare: ::int32_t,
96 -        pub st_birthtime: ::time_t,
97 -        pub st_birthtime_nsec: ::c_long,
98 -        __unused: [u8; 8],
99 +        pub st_gen: ::uint64_t,
100 +        pub st_spare: [::uint64_t; 10],
101      }
102  }
103 --- ./src/liblibc/src/unix/bsd/freebsdlike/freebsd/x86_64.rs.orig       2017-04-24 18:56:45.000000000 +0000
104 +++ ./src/liblibc/src/unix/bsd/freebsdlike/freebsd/x86_64.rs    2017-05-25 16:25:42.303910000 +0000
105 @@ -7,10 +7,12 @@
106      pub struct stat {
107          pub st_dev: ::dev_t,
108          pub st_ino: ::ino_t,
109 -        pub st_mode: ::mode_t,
110          pub st_nlink: ::nlink_t,
111 +        pub st_mode: ::mode_t,
112 +        pub st_pad0: ::uint16_t,
113          pub st_uid: ::uid_t,
114          pub st_gid: ::gid_t,
115 +        pub st_pad1: ::uint32_t,
116          pub st_rdev: ::dev_t,
117          pub st_atime: ::time_t,
118          pub st_atime_nsec: ::c_long,
119 @@ -18,13 +20,13 @@
120          pub st_mtime_nsec: ::c_long,
121          pub st_ctime: ::time_t,
122          pub st_ctime_nsec: ::c_long,
123 +        pub st_birthtime: ::time_t,
124 +        pub st_birthtime_nsec: ::c_long,
125          pub st_size: ::off_t,
126          pub st_blocks: ::blkcnt_t,
127          pub st_blksize: ::blksize_t,
128          pub st_flags: ::fflags_t,
129 -        pub st_gen: ::uint32_t,
130 -        pub st_lspare: ::int32_t,
131 -        pub st_birthtime: ::time_t,
132 -        pub st_birthtime_nsec: ::c_long,
133 +        pub st_gen: ::uint64_t,
134 +        pub st_spare: [::uint64_t; 10],
135      }
136  }
137 --- ./src/liblibc/src/unix/bsd/freebsdlike/mod.rs.orig  2017-04-24 18:56:45.000000000 +0000
138 +++ ./src/liblibc/src/unix/bsd/freebsdlike/mod.rs       2017-05-25 16:25:42.304391000 +0000
139 @@ -1,4 +1,4 @@
140 -pub type dev_t = u32;
141 +pub type dev_t = u64;
142  pub type mode_t = u16;
143  pub type pthread_attr_t = *mut ::c_void;
144  pub type rlim_t = i64;
145 --- ./src/libstd/os/freebsd/raw.rs.orig 2017-04-24 18:53:46.000000000 +0000
146 +++ ./src/libstd/os/freebsd/raw.rs      2017-05-25 16:25:42.304715000 +0000
147 @@ -38,32 +38,52 @@
148  #[stable(feature = "raw_ext", since = "1.1.0")]
149  pub struct stat {
150      #[stable(feature = "raw_ext", since = "1.1.0")]
151 -    pub st_dev: u32,
152 +    pub st_dev: u64,
153      #[stable(feature = "raw_ext", since = "1.1.0")]
154 -    pub st_ino: u32,
155 +    pub st_ino: u64,
156      #[stable(feature = "raw_ext", since = "1.1.0")]
157 +    pub st_nlink: u64,
158 +    #[stable(feature = "raw_ext", since = "1.1.0")]
159      pub st_mode: u16,
160      #[stable(feature = "raw_ext", since = "1.1.0")]
161 -    pub st_nlink: u16,
162 +    pub st_pad0: u16,
163      #[stable(feature = "raw_ext", since = "1.1.0")]
164      pub st_uid: u32,
165      #[stable(feature = "raw_ext", since = "1.1.0")]
166      pub st_gid: u32,
167      #[stable(feature = "raw_ext", since = "1.1.0")]
168 -    pub st_rdev: u32,
169 +    pub st_pad1: u32,
170      #[stable(feature = "raw_ext", since = "1.1.0")]
171 +    pub st_rdev: u64,
172 +    #[cfg(target_arch = "x86")]
173 +    #[stable(feature = "raw_ext", since = "1.1.0")]
174 +    pub st_atime_ext: c_long,
175 +    #[stable(feature = "raw_ext", since = "1.1.0")]
176      pub st_atime: c_long,
177      #[stable(feature = "raw_ext", since = "1.1.0")]
178      pub st_atime_nsec: c_long,
179 +    #[cfg(target_arch = "x86")]
180      #[stable(feature = "raw_ext", since = "1.1.0")]
181 +    pub st_mtime_ext: c_long,
182 +    #[stable(feature = "raw_ext", since = "1.1.0")]
183      pub st_mtime: c_long,
184      #[stable(feature = "raw_ext", since = "1.1.0")]
185      pub st_mtime_nsec: c_long,
186 +    #[cfg(target_arch = "x86")]
187      #[stable(feature = "raw_ext", since = "1.1.0")]
188 +    pub st_ctime_ext: c_long,
189 +    #[stable(feature = "raw_ext", since = "1.1.0")]
190      pub st_ctime: c_long,
191      #[stable(feature = "raw_ext", since = "1.1.0")]
192      pub st_ctime_nsec: c_long,
193 +    #[cfg(target_arch = "x86")]
194      #[stable(feature = "raw_ext", since = "1.1.0")]
195 +    pub st_birthtime_ext: c_long,
196 +    #[stable(feature = "raw_ext", since = "1.1.0")]
197 +    pub st_birthtime: c_long,
198 +    #[stable(feature = "raw_ext", since = "1.1.0")]
199 +    pub st_birthtime_nsec: c_long,
200 +    #[stable(feature = "raw_ext", since = "1.1.0")]
201      pub st_size: i64,
202      #[stable(feature = "raw_ext", since = "1.1.0")]
203      pub st_blocks: i64,
204 @@ -72,14 +92,7 @@
205      #[stable(feature = "raw_ext", since = "1.1.0")]
206      pub st_flags: u32,
207      #[stable(feature = "raw_ext", since = "1.1.0")]
208 -    pub st_gen: u32,
209 +    pub st_gen: u64,
210      #[stable(feature = "raw_ext", since = "1.1.0")]
211 -    pub st_lspare: i32,
212 -    #[stable(feature = "raw_ext", since = "1.1.0")]
213 -    pub st_birthtime: c_long,
214 -    #[stable(feature = "raw_ext", since = "1.1.0")]
215 -    pub st_birthtime_nsec: c_long,
216 -    #[cfg(target_arch = "x86")]
217 -    #[stable(feature = "raw_ext", since = "1.1.0")]
218 -    pub __unused: [u8; 8],
219 +    pub st_spare: [u64; 10],
220  }
221 --- ./src/libstd/os/freebsd/fs.rs.orig  2017-04-24 18:53:46.000000000 +0000
222 +++ ./src/libstd/os/freebsd/fs.rs       2017-05-25 16:25:42.304989000 +0000
223 @@ -74,8 +74,6 @@
224      fn st_flags(&self) -> u32;
225      #[stable(feature = "metadata_ext2", since = "1.8.0")]
226      fn st_gen(&self) -> u32;
227 -    #[stable(feature = "metadata_ext2", since = "1.8.0")]
228 -    fn st_lspare(&self) -> u32;
229  }
230  
231  #[stable(feature = "metadata_ext", since = "1.1.0")]
232 @@ -146,9 +144,6 @@
233      }
234      fn st_flags(&self) -> u32 {
235          self.as_inner().as_inner().st_flags as u32
236 -    }
237 -    fn st_lspare(&self) -> u32 {
238 -        self.as_inner().as_inner().st_lspare as u32
239      }
240  }
241  
242 --- ./src/vendor/libc/src/unix/bsd/freebsdlike/freebsd/aarch64.rs.orig  2017-04-24 20:20:26.000000000 +0000
243 +++ ./src/vendor/libc/src/unix/bsd/freebsdlike/freebsd/aarch64.rs       2017-05-30 07:57:19.874957000 +0000
244 @@ -7,10 +7,12 @@
245      pub struct stat {
246          pub st_dev: ::dev_t,
247          pub st_ino: ::ino_t,
248 -        pub st_mode: ::mode_t,
249          pub st_nlink: ::nlink_t,
250 +        pub st_mode: ::mode_t,
251 +        pub st_pad0: ::uint16_t,
252          pub st_uid: ::uid_t,
253          pub st_gid: ::gid_t,
254 +        pub st_pad1: ::uint32_t,
255          pub st_rdev: ::dev_t,
256          pub st_atime: ::time_t,
257          pub st_atime_nsec: ::c_long,
258 @@ -18,13 +20,13 @@
259          pub st_mtime_nsec: ::c_long,
260          pub st_ctime: ::time_t,
261          pub st_ctime_nsec: ::c_long,
262 +        pub st_birthtime: ::time_t,
263 +        pub st_birthtime_nsec: ::c_long,
264          pub st_size: ::off_t,
265          pub st_blocks: ::blkcnt_t,
266          pub st_blksize: ::blksize_t,
267          pub st_flags: ::fflags_t,
268 -        pub st_gen: ::uint32_t,
269 -        pub st_lspare: ::int32_t,
270 -        pub st_birthtime: ::time_t,
271 -        pub st_birthtime_nsec: ::c_long,
272 +        pub st_gen: ::uint64_t,
273 +        pub st_spare: [::uint64_t; 10],
274      }
275  }
276 --- ./src/vendor/libc/src/unix/bsd/freebsdlike/freebsd/x86_64.rs.orig   2017-04-24 20:20:26.000000000 +0000
277 +++ ./src/vendor/libc/src/unix/bsd/freebsdlike/freebsd/x86_64.rs        2017-05-25 16:25:42.305261000 +0000
278 @@ -7,10 +7,12 @@
279      pub struct stat {
280          pub st_dev: ::dev_t,
281          pub st_ino: ::ino_t,
282 -        pub st_mode: ::mode_t,
283          pub st_nlink: ::nlink_t,
284 +        pub st_mode: ::mode_t,
285 +        pub st_pad0: ::uint16_t,
286          pub st_uid: ::uid_t,
287          pub st_gid: ::gid_t,
288 +        pub st_pad1: ::uint32_t,
289          pub st_rdev: ::dev_t,
290          pub st_atime: ::time_t,
291          pub st_atime_nsec: ::c_long,
292 @@ -18,13 +20,13 @@
293          pub st_mtime_nsec: ::c_long,
294          pub st_ctime: ::time_t,
295          pub st_ctime_nsec: ::c_long,
296 +        pub st_birthtime: ::time_t,
297 +        pub st_birthtime_nsec: ::c_long,
298          pub st_size: ::off_t,
299          pub st_blocks: ::blkcnt_t,
300          pub st_blksize: ::blksize_t,
301          pub st_flags: ::fflags_t,
302 -        pub st_gen: ::uint32_t,
303 -        pub st_lspare: ::int32_t,
304 -        pub st_birthtime: ::time_t,
305 -        pub st_birthtime_nsec: ::c_long,
306 +        pub st_gen: ::uint64_t,
307 +        pub st_spare: [::uint64_t; 10],
308      }
309  }
310 --- ./src/vendor/libc/src/unix/bsd/freebsdlike/freebsd/mod.rs.orig      2017-04-24 20:20:26.000000000 +0000
311 +++ ./src/vendor/libc/src/unix/bsd/freebsdlike/freebsd/mod.rs   2017-05-25 16:28:29.708287000 +0000
312 @@ -1,8 +1,8 @@
313  pub type fflags_t = u32;
314  pub type clock_t = i32;
315 -pub type ino_t = u32;
316 +pub type ino_t = u64;
317  pub type lwpid_t = i32;
318 -pub type nlink_t = u16;
319 +pub type nlink_t = u64;
320  pub type blksize_t = u32;
321  pub type clockid_t = ::c_int;
322  pub type sem_t = _sem;
323 @@ -40,10 +40,13 @@
324      }
325  
326      pub struct dirent {
327 -        pub d_fileno: u32,
328 +        pub d_fileno: u64,
329 +        pub d_off: u64,
330          pub d_reclen: u16,
331          pub d_type: u8,
332 -        pub d_namlen: u8,
333 +        pub d_pad0: u8,
334 +        pub d_namlen: u16,
335 +        pub d_pad1: u16,
336          pub d_name: [::c_char; 256],
337      }
338  
339 --- ./src/vendor/libc/src/unix/bsd/freebsdlike/freebsd/x86.rs.orig      2017-04-24 20:20:26.000000000 +0000
340 +++ ./src/vendor/libc/src/unix/bsd/freebsdlike/freebsd/x86.rs   2017-05-25 16:25:42.305967000 +0000
341 @@ -7,25 +7,30 @@
342      pub struct stat {
343          pub st_dev: ::dev_t,
344          pub st_ino: ::ino_t,
345 -        pub st_mode: ::mode_t,
346          pub st_nlink: ::nlink_t,
347 +        pub st_mode: ::mode_t,
348 +        pub st_pad0: ::uint16_t,
349          pub st_uid: ::uid_t,
350          pub st_gid: ::gid_t,
351 +        pub st_pad1: ::uint32_t,
352          pub st_rdev: ::dev_t,
353 +        pub st_atime_ext: ::int32_t,
354          pub st_atime: ::time_t,
355          pub st_atime_nsec: ::c_long,
356 +        pub st_mtime_ext: i32,
357          pub st_mtime: ::time_t,
358          pub st_mtime_nsec: ::c_long,
359 +        pub st_ctime_ext: ::int32_t,
360          pub st_ctime: ::time_t,
361          pub st_ctime_nsec: ::c_long,
362 +        pub st_birthtime_ext: ::int32_t,
363 +        pub st_birthtime: ::time_t,
364 +        pub st_birthtime_nsec: ::c_long,
365          pub st_size: ::off_t,
366          pub st_blocks: ::blkcnt_t,
367          pub st_blksize: ::blksize_t,
368          pub st_flags: ::fflags_t,
369 -        pub st_gen: ::uint32_t,
370 -        pub st_lspare: ::int32_t,
371 -        pub st_birthtime: ::time_t,
372 -        pub st_birthtime_nsec: ::c_long,
373 -        __unused: [u8; 8],
374 +        pub st_gen: ::uint64_t,
375 +        pub st_spare: [::uint64_t; 10],
376      }
377  }
378 --- ./src/vendor/libc/src/unix/bsd/freebsdlike/mod.rs.orig      2017-04-24 20:20:26.000000000 +0000
379 +++ ./src/vendor/libc/src/unix/bsd/freebsdlike/mod.rs   2017-05-25 16:25:42.306480000 +0000
380 @@ -1,4 +1,4 @@
381 -pub type dev_t = u32;
382 +pub type dev_t = u64;
383  pub type mode_t = u16;
384  pub type pthread_attr_t = *mut ::c_void;
385  pub type rlim_t = i64;