Skip to content

Commit d6fbe9b

Browse files
committed
Make statx's padding fields private
Padding and reserved fields should not be publicly accessible, because they may be replaced by new (functional) fields at any time. Searching for these padding fields on github or Google reveals no users, so making them private should not break any existing users. It is possible that there are projects outside of github that access these fields, but if so, they should have been warned by the fact that these fields are prefixed by double underscores. Signed-off-by: Max Reitz <[email protected]>
1 parent 2a2196d commit d6fbe9b

File tree

1 file changed

+2
-2
lines changed
  • src/unix/linux_like/linux/gnu

1 file changed

+2
-2
lines changed

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ s! {
1313
pub stx_uid: u32,
1414
pub stx_gid: u32,
1515
pub stx_mode: u16,
16-
pub __statx_pad1: [u16; 1],
16+
__statx_pad1: [u16; 1],
1717
pub stx_ino: u64,
1818
pub stx_size: u64,
1919
pub stx_blocks: u64,
@@ -26,7 +26,7 @@ s! {
2626
pub stx_rdev_minor: u32,
2727
pub stx_dev_major: u32,
2828
pub stx_dev_minor: u32,
29-
pub __statx_pad2: [u64; 14],
29+
__statx_pad2: [u64; 14],
3030
}
3131

3232
pub struct statx_timestamp {

0 commit comments

Comments
 (0)