| ... | @@ -60,7 +60,7 @@ pub const MAX_NAME_BYTES = switch (builtin.os.tag) { | ... | @@ -60,7 +60,7 @@ pub const MAX_NAME_BYTES = switch (builtin.os.tag) { |
| 60 | // pair in the UTF-16LE, and we (over)account 3 bytes for it that way. | 60 | // pair in the UTF-16LE, and we (over)account 3 bytes for it that way. |
| 61 | .windows => os.windows.NAME_MAX * 3, | 61 | .windows => os.windows.NAME_MAX * 3, |
| 62 | // TODO work out what a reasonable value we should use here | 62 | // TODO work out what a reasonable value we should use here |
| 63 | .wasi => 1024, | 63 | .wasi => 255, |
| 64 | else => if (@hasDecl(root, "os") and @hasDecl(root.os, "NAME_MAX")) | 64 | else => if (@hasDecl(root, "os") and @hasDecl(root.os, "NAME_MAX")) |
| 65 | root.os.NAME_MAX | 65 | root.os.NAME_MAX |
| 66 | else | 66 | else |