From b9d85eda18470a306d6574f21ed898a59487531f Mon Sep 17 00:00:00 2001 From: dybucc <149513579+dybucc@users.noreply.github.com> Date: Mon, 1 Jun 2026 12:15:47 +0200 Subject: [PATCH] refactor: adjust definition of `off_t` in wasi The definition for the analogous `time_t` was using the exact same C type as that declared in the "bottom half" of the WASI upstream C library implementation. On the other hand, the `off_t` type was explicitly declaring the type as a signed 64-bit integer, which is equivalent in the case of WASI to the upstream definition as a `c_longlong`. Still, this patch attempts to reflect a mirrored definition, rather than an equivalent definition. --- src/wasi/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wasi/mod.rs b/src/wasi/mod.rs index 2e4a6bded49d2..8fd1b2bed8c99 100644 --- a/src/wasi/mod.rs +++ b/src/wasi/mod.rs @@ -14,7 +14,7 @@ pub type ssize_t = isize; pub type ptrdiff_t = isize; pub type intptr_t = isize; pub type uintptr_t = usize; -pub type off_t = i64; +pub type off_t = c_longlong; pub type pid_t = i32; pub type clock_t = c_longlong; pub type time_t = c_longlong;