summaryrefslogtreecommitdiff
path: root/libgo/syscalls/errstr_decl_rtems.go
blob: b83eedc8e1cfd30cb861c537ccf25de3e6c7393f (plain)
1
2
3
4
5
6
7
8
9
10
// errstr.go -- Declare strerror_r for RTEMS.

// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package syscall

// RTEMS uses strerror_r in newlib, which is a GNU extension returning a char *.
func libc_strerror_r(int, *byte, Size_t) *byte __asm__ ("strerror_r")