1 // errstr_rtems.go -- RTEMS specific error strings.
3 // Copyright 2010 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+1)
13 // The newlib strerror_r always returns the string in buffer.
14 libc_strerror_r(errno, &b[0], len)