From f98dd1a338867a408f7c72d73fbad7fe7fc93e3a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 3 Feb 2016 21:58:02 +0000 Subject: libgo: Update to go1.6rc1. Reviewed-on: https://go-review.googlesource.com/19200 From-SVN: r233110 --- libgo/go/runtime/write_err.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 libgo/go/runtime/write_err.go (limited to 'libgo/go/runtime/write_err.go') diff --git a/libgo/go/runtime/write_err.go b/libgo/go/runtime/write_err.go new file mode 100644 index 0000000..6b1467b --- /dev/null +++ b/libgo/go/runtime/write_err.go @@ -0,0 +1,13 @@ +// Copyright 2009 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. + +// +build !android + +package runtime + +import "unsafe" + +func writeErr(b []byte) { + write(2, unsafe.Pointer(&b[0]), int32(len(b))) +} -- cgit v1.1