We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc60ca8 commit e4c79c6Copy full SHA for e4c79c6
lib/std/fs.zig
@@ -57,7 +57,7 @@ pub const MAX_NAME_BYTES = switch (builtin.os.tag) {
57
.linux, .macos, .ios, .freebsd, .dragonfly => os.NAME_MAX,
58
// Haiku's NAME_MAX includes the null terminator, so subtract one.
59
.haiku => os.NAME_MAX - 1,
60
- .netbsd, .openbsd, .solaris => os.MAXNAMLEN,
+ .netbsd, .openbsd, .solaris => os.system.MAXNAMLEN,
61
// Each UTF-16LE character may be expanded to 3 UTF-8 bytes.
62
// If it would require 4 UTF-8 bytes, then there would be a surrogate
63
// pair in the UTF-16LE, and we (over)account 3 bytes for it that way.
0 commit comments