1 // errstr.go -- Error strings when there is no strerror_r.
3 // Copyright 2011 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
14 //sysnb strerror(errnum int) *byte
15 //strerror(errnum int) *byte
17 var errstr_lock sync.Mutex
19 func Errstr(errno int) string {
22 bp := libc_strerror(errno)
23 b := (*[1000]byte)(unsafe.Pointer(bp))