mirror of
https://github.com/apple/swift-system
synced 2026-11-23 04:34:26 +00:00
Use String(unsafeUninitializedCapacity:initializingUTF8With:), through the existing backwards-compatible helper, so the message is written straight into the string's storage instead of a stack buffer that is then copied. Also update the copyright year range of Errno.swift. musl's message for an unknown error number doesn't include the number, so skip that check when building against Musl, as on WASI.