Skip to content

Commit 1a9bdc4

Browse files
dybucctgross35
authored andcommitted
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.
1 parent e34c8b6 commit 1a9bdc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wasi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub type ssize_t = isize;
1414
pub type ptrdiff_t = isize;
1515
pub type intptr_t = isize;
1616
pub type uintptr_t = usize;
17-
pub type off_t = i64;
17+
pub type off_t = c_longlong;
1818
pub type pid_t = i32;
1919
pub type clock_t = c_longlong;
2020
pub type time_t = c_longlong;

0 commit comments

Comments
 (0)