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