aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/libgo/syscalls/errstr_decl_rtems.go
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.6/libgo/syscalls/errstr_decl_rtems.go')
-rw-r--r--gcc-4.6/libgo/syscalls/errstr_decl_rtems.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.6/libgo/syscalls/errstr_decl_rtems.go b/gcc-4.6/libgo/syscalls/errstr_decl_rtems.go
new file mode 100644
index 000000000..b83eedc8e
--- /dev/null
+++ b/gcc-4.6/libgo/syscalls/errstr_decl_rtems.go
@@ -0,0 +1,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")