Skip to content

Commit b3f9cd8

Browse files
committed
Fix struct statx to match C
1 parent b1c877a commit b3f9cd8

File tree

1 file changed

+4
-1
lines changed
  • src/unix/notbsd/linux/other

1 file changed

+4
-1
lines changed

src/unix/notbsd/linux/other/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ s! {
251251
pub stx_uid: ::uint32_t,
252252
pub stx_gid: ::uint32_t,
253253
pub stx_mode: ::uint16_t,
254+
pub __statx_pad1: [::uint16_t; 1],
254255
pub stx_ino: ::uint64_t,
255256
pub stx_size: ::uint64_t,
256257
pub stx_blocks: ::uint64_t,
@@ -263,11 +264,13 @@ s! {
263264
pub stx_rdev_minor: ::uint32_t,
264265
pub stx_dev_major: ::uint32_t,
265266
pub stx_dev_minor: ::uint32_t,
267+
pub __statx_pad2: [::uint64_t; 14],
266268
}
267269

268270
pub struct statx_timestamp {
269271
pub tv_sec: ::int64_t,
270-
pub tv_nsec: ::__u32,
272+
pub tv_nsec: ::uint32_t,
273+
pub __statx_timestamp_pad1: [::int32_t; 1],
271274
}
272275
}
273276

0 commit comments

Comments
 (0)