Skip to content

Commit

Permalink
gnu: Handle basic file types for 32bit with _FILE_OFFSET_BITS=64
Browse files Browse the repository at this point in the history
Set the basic types correctly for
glibc_file_offset_bits64 (_FILE_OFFSET_BITS=64).
  • Loading branch information
snogge committed Dec 16, 2024
1 parent 7e632e1 commit 38ae5bb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/unix/linux_like/linux/gnu/b32/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ cfg_if! {
pub type fsfilcnt_t = u64;
pub type rlim_t = u64;
pub type blksize_t = i64;
} else if #[cfg(glibc_file_offset_bits64)] {
pub type time_t = i32;
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;
pub type blksize_t = i32;
} else {
pub type time_t = i32;
pub type suseconds_t = i32;
Expand Down

0 comments on commit 38ae5bb

Please sign in to comment.