Skip to content

Commit

Permalink
gnu: Handle basic file and time types for 32bit systems with time64
Browse files Browse the repository at this point in the history
  • Loading branch information
snogge committed Sep 11, 2023
1 parent f540c5f commit f5a958c
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions src/unix/linux_like/linux/gnu/b32/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,25 @@ cfg_if! {
pub type rlim_t = u64;
pub type blksize_t = i64;
} else {
pub type time_t = i64;
pub type suseconds_t = i32;
pub type ino_t = u64;
pub type off_t = i64;
pub type blkcnt_t = i64;
pub type fsblkcnt_t = u64;
pub type fsfilcnt_t = u64;
pub type rlim_t = u64;
if #[cfg(gnu_time64_abi)] {
pub type time_t = i64;
pub type ino_t = u64;
pub type off_t = i64;
pub type blkcnt_t = i64;
pub type fsblkcnt_t = u64;
pub type fsfilcnt_t = u64;
pub type rlim_t = u64;
} else {
pub type time_t = i32;
pub type ino_t = u32;
pub type off_t = i32;
pub type blkcnt_t = i32;
pub type fsblkcnt_t = ::c_ulong;
pub type fsfilcnt_t = ::c_ulong;
pub type rlim_t = c_ulong;
}
pub type blksize_t = i32;
pub type suseconds_t = i32;
}
}
cfg_if! {
Expand Down

0 comments on commit f5a958c

Please sign in to comment.