| ... | ... | @@ -59,10 +59,9 @@ pub const MAX_PATH_BYTES = switch (builtin.os.tag) { |
| 59 | 59 | /// (depending on the platform) this assumption may not hold for every configuration. |
| 60 | 60 | /// The byte count does not include a null sentinel byte. |
| 61 | 61 | pub const MAX_NAME_BYTES = switch (builtin.os.tag) { |
| 62 | | .linux, .macos, .ios, .freebsd, .openbsd, .netbsd, .dragonfly => os.NAME_MAX, |
| 62 | .linux, .macos, .ios, .freebsd, .openbsd, .netbsd, .dragonfly, .solaris => os.NAME_MAX, |
| 63 | 63 | // Haiku's NAME_MAX includes the null terminator, so subtract one. |
| 64 | 64 | .haiku => os.NAME_MAX - 1, |
| 65 | | .solaris => os.system.MAXNAMLEN, |
| 66 | 65 | // Each UTF-16LE character may be expanded to 3 UTF-8 bytes. |
| 67 | 66 | // If it would require 4 UTF-8 bytes, then there would be a surrogate |
| 68 | 67 | // pair in the UTF-16LE, and we (over)account 3 bytes for it that way. |