| author | |
| committer | |
| log | c5d23161fcadf06089656b1f1d0fb725d7217b74 |
| tree | e5666926a3c54b67ef8d4a95ba7d05a61d00a027 |
| parent | dd0962d5ea62742de50c62065856580d340e6cab |
This is a slightly weird situation, because the 'real' value may depend on the host platform that the WASI is being executed on.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/fs.zig+1-1| ... | ... | @@ -60,7 +60,7 @@ pub const MAX_NAME_BYTES = switch (builtin.os.tag) { |
| 60 | 60 | // pair in the UTF-16LE, and we (over)account 3 bytes for it that way. |
| 61 | 61 | .windows => os.windows.NAME_MAX * 3, |
| 62 | 62 | // TODO work out what a reasonable value we should use here |
| 63 | .wasi => 1024, | |
| 63 | .wasi => 255, | |
| 64 | 64 | else => if (@hasDecl(root, "os") and @hasDecl(root.os, "NAME_MAX")) |
| 65 | 65 | root.os.NAME_MAX |
| 66 | 66 | else |