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.
11 //sysnb strerror_r(errnum int, b []byte) (errstr *byte)
12 //strerror_r(errnum int, b *byte, len Size_t) *byte
14 func Errstr(errnum int) string {
15 a := make([]byte, 128)
16 p := strerror_r(errnum, a)
17 b := (*[1000]byte)(unsafe.Pointer(p))