1 // errstr.go -- Error strings.
3 // Copyright 2009 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.
9 func Errstr(errno
int) string {
10 for len := Size_t(128); ; len *= 2 {
11 b
:= make([]byte, len)
12 r
:= libc_strerror_r(errno
, &b
[0], len)
20 if GetErrno() != ERANGE
{
21 return "Errstr failure"