Skip to content

Commit f44fdc1

Browse files
snoggetgross35
authored andcommitted
gnu: Handle basic file types for 32bit with _FILE_OFFSET_BITS=64
Set the basic types correctly for gnu_file_offset_bits64 (_FILE_OFFSET_BITS=64).
1 parent 874e399 commit f44fdc1

File tree

1 file changed

+10
-0
lines changed
  • src/unix/linux_like/linux/gnu/b32

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ cfg_if! {
2727
pub type fsfilcnt_t = u64;
2828
pub type rlim_t = u64;
2929
pub type blksize_t = i64;
30+
} else if #[cfg(gnu_file_offset_bits64)] {
31+
pub type time_t = i32;
32+
pub type suseconds_t = i32;
33+
pub type ino_t = u64;
34+
pub type off_t = i64;
35+
pub type blkcnt_t = i64;
36+
pub type fsblkcnt_t = u64;
37+
pub type fsfilcnt_t = u64;
38+
pub type rlim_t = u64;
39+
pub type blksize_t = i32;
3040
} else {
3141
pub type time_t = i32;
3242
pub type suseconds_t = i32;

0 commit comments

Comments
 (0)