|
3 | 3 | //! This covers *-apple-* triples currently |
4 | 4 |
|
5 | 5 | use crate::prelude::*; |
6 | | -use crate::{ |
7 | | - cmsghdr, |
8 | | - off_t, |
9 | | -}; |
| 6 | +use crate::{cmsghdr, off_t}; |
10 | 7 |
|
11 | 8 | pub type wchar_t = i32; |
12 | 9 | pub type clock_t = c_ulong; |
@@ -333,10 +330,10 @@ s! { |
333 | 330 | } |
334 | 331 |
|
335 | 332 | pub struct fpunchhole_t { |
336 | | - pub fp_flags: c_uint, /* unused */ |
337 | | - pub reserved: c_uint, /* (to maintain 8-byte alignment) */ |
338 | | - pub fp_offset: off_t, /* IN: start of the region */ |
339 | | - pub fp_length: off_t, /* IN: size of the region */ |
| 333 | + pub fp_flags: c_uint, /* unused */ |
| 334 | + reserved: Padding<c_uint>, /* (to maintain 8-byte alignment) */ |
| 335 | + pub fp_offset: off_t, /* IN: start of the region */ |
| 336 | + pub fp_length: off_t, /* IN: size of the region */ |
340 | 337 | } |
341 | 338 |
|
342 | 339 | pub struct ftrimactivefile_t { |
|
346 | 343 |
|
347 | 344 | pub struct fspecread_t { |
348 | 345 | pub fsr_flags: c_uint, |
349 | | - pub reserved: c_uint, |
| 346 | + reserved: Padding<c_uint>, |
350 | 347 | pub fsr_offset: off_t, |
351 | 348 | pub fsr_length: off_t, |
352 | 349 | } |
|
485 | 482 | pub rtm_addrs: c_int, |
486 | 483 | pub rtm_refcnt: i32, |
487 | 484 | pub rtm_parentflags: c_int, |
488 | | - pub rtm_reserved: c_int, |
| 485 | + rtm_reserved: Padding<c_int>, |
489 | 486 | pub rtm_use: c_int, |
490 | 487 | pub rtm_inits: u32, |
491 | 488 | pub rtm_rmx: rt_metrics, |
|
669 | 666 | pub ss_sysaddr: u16, |
670 | 667 | pub sc_id: u32, |
671 | 668 | pub sc_unit: u32, |
672 | | - pub sc_reserved: [u32; 5], |
| 669 | + sc_reserved: Padding<[u32; 5]>, |
673 | 670 | } |
674 | 671 |
|
675 | 672 | pub struct in_pktinfo { |
@@ -1015,7 +1012,7 @@ s! { |
1015 | 1012 |
|
1016 | 1013 | pub struct attrlist { |
1017 | 1014 | pub bitmapcount: c_ushort, |
1018 | | - pub reserved: u16, |
| 1015 | + reserved: Padding<u16>, |
1019 | 1016 | pub commonattr: attrgroup_t, |
1020 | 1017 | pub volattr: attrgroup_t, |
1021 | 1018 | pub dirattr: attrgroup_t, |
@@ -1285,7 +1282,7 @@ s! { |
1285 | 1282 | pub f_mntonname: [c_char; 1024], |
1286 | 1283 | pub f_mntfromname: [c_char; 1024], |
1287 | 1284 | pub f_flags_ext: u32, |
1288 | | - pub f_reserved: [u32; 7], |
| 1285 | + f_reserved: Padding<[u32; 7]>, |
1289 | 1286 | } |
1290 | 1287 |
|
1291 | 1288 | pub struct dirent { |
@@ -1484,7 +1481,7 @@ s! { |
1484 | 1481 | pub struct sockaddr_vm { |
1485 | 1482 | pub svm_len: c_uchar, |
1486 | 1483 | pub svm_family: crate::sa_family_t, |
1487 | | - pub svm_reserved1: c_ushort, |
| 1484 | + svm_reserved1: Padding<c_ushort>, |
1488 | 1485 | pub svm_port: c_uint, |
1489 | 1486 | pub svm_cid: c_uint, |
1490 | 1487 | } |
|
0 commit comments