Skip to content

Commit 13175a8

Browse files
committed
Update Emscripten system types
These changes bring the types up to parity with recent Emscripten versions using the upstream LLVM wasm backend. These changes should be coordinated with the upgrade of rustc's Emscripten support. See https://internals.rust-lang.org/t/upgrading-rust-s-emscripten-support/10684
1 parent 4bd0c00 commit 13175a8

File tree

1 file changed

+4
-4
lines changed
  • src/unix/linux_like/emscripten

1 file changed

+4
-4
lines changed

src/unix/linux_like/emscripten/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ pub type dev_t = u32;
55
pub type socklen_t = u32;
66
pub type pthread_t = c_ulong;
77
pub type mode_t = u32;
8-
pub type ino64_t = u32;
9-
pub type off64_t = i32;
8+
pub type ino64_t = u64;
9+
pub type off64_t = i64;
1010
pub type blkcnt64_t = i32;
1111
pub type rlim64_t = u64;
1212
pub type shmatt_t = ::c_ulong;
@@ -16,14 +16,14 @@ pub type msglen_t = ::c_ulong;
1616
pub type nfds_t = ::c_ulong;
1717
pub type nl_item = ::c_int;
1818
pub type idtype_t = ::c_uint;
19-
pub type loff_t = i32;
19+
pub type loff_t = i64;
2020
pub type pthread_key_t = ::c_uint;
2121

2222
pub type clock_t = c_long;
2323
pub type time_t = c_long;
2424
pub type suseconds_t = c_long;
2525
pub type ino_t = u32;
26-
pub type off_t = i32;
26+
pub type off_t = i64;
2727
pub type blkcnt_t = i32;
2828

2929
pub type blksize_t = c_long;

0 commit comments

Comments
 (0)