1 // +build linux,386 linux,amd64 linux,arm64
2 // see golang's sources src/syscall/ztypes_linux_*.go that use int8
6 // Convert the OS/ARCH-specific utsname.Machine to string
7 // given as an array of signed int8
8 func charsToString(ca [65]int8) string {
9 s := make([]byte, len(ca))
11 for ; lens < len(ca); lens++ {
15 s[lens] = uint8(ca[lens])
17 return string(s[0:lens])