Skip to content

Commit

Permalink
fixup! Adapt stat for gnu_time64_abi
Browse files Browse the repository at this point in the history
  • Loading branch information
snogge committed Feb 7, 2025
1 parent 715e2b4 commit c8a69b3
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/unix/linux_like/linux/gnu/b32/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,30 +71,36 @@ s! {
#[cfg(any(target_arch = "mips", target_arch = "mips32r6"))]
st_pad1: [c_long; 3],

#[cfg(not(gnu_file_offset_bits64))]
#[cfg(not(any(target_arch = "mips", target_arch = "mips32r6")))]
pub st_ino: crate::ino_t,
#[cfg(gnu_file_offset_bits64)]
#[cfg(any(target_arch = "mips", target_arch = "mips32r6"))]
__st_ino: crate::ino_t,

pub st_mode: crate::mode_t,
pub st_nlink: crate::nlink_t,
pub st_uid: crate::uid_t,
pub st_gid: crate::gid_t,

#[cfg(not(any(target_arch = "mips", target_arch = "mips32r6")))]
pub st_rdev: crate::dev_t,
#[cfg(any(target_arch = "mips", target_arch = "mips32r6"))]
pub st_rdev: c_ulong,

#[cfg(not(any(target_arch = "mips", target_arch = "mips32r6")))]
__pad2: c_short,
#[cfg(any(target_arch = "mips", target_arch = "mips32r6"))]
st_pad2: [c_long; 2],

pub st_size: off_t,

#[cfg(any(target_arch = "mips", target_arch = "mips32r6"))]
st_pad3: c_long,

#[cfg(not(any(target_arch = "mips", target_arch = "mips32r6")))]
pub st_blksize: crate::blksize_t,
#[cfg(not(any(target_arch = "mips", target_arch = "mips32r6")))]
pub st_blocks: crate::blkcnt_t,

pub st_atime: crate::time_t,
pub st_atime_nsec: c_long,
pub st_mtime: crate::time_t,
Expand All @@ -112,11 +118,11 @@ s! {
any(target_arch = "mips", target_arch = "mips32r6")
)))]
__unused5: c_long,
#[cfg(all(
gnu_file_offset_bits64,
not(any(target_arch = "mips", target_arch = "mips32r6"))
))]
pub st_ino: crate::ino64_t,
// #[cfg(all(
// gnu_file_offset_bits64,
// not(any(target_arch = "mips", target_arch = "mips32r6"))
// ))]
// pub st_ino: crate::ino64_t,

#[cfg(any(target_arch = "mips", target_arch = "mips32r6"))]
pub st_blksize: crate::blksize_t,
Expand Down

0 comments on commit c8a69b3

Please sign in to comment.