zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 7f7318700427875d5b0ec2f8601c12e5bc21cebe (tree)
parent ed48e2eb7599d93b6d3248391da7a7c7f1f92acf
Author: Elaine Gibson <ypsvlq@gmail.com>
Date:   Wed,  4 Jun 2025 23:15:35 +0100

std.fs.Dir: haiku fixes

Diffstat:
Mlib/std/fs/Dir.zig | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/std/fs/Dir.zig b/lib/std/fs/Dir.zig @@ -13,6 +13,7 @@ pub const Entry = struct { const IteratorError = error{ AccessDenied, + PermissionDenied, SystemResources, /// WASI-only. The path of an entry could not be encoded as valid UTF-8. /// WASI is unable to handle paths that cannot be encoded as well-formed UTF-8. @@ -287,7 +288,7 @@ pub const Iterator = switch (native_os) { name, false, &stat_info, - 0, + @sizeOf(posix.Stat), )))) { .SUCCESS => {}, .INVAL => unreachable,