diff options
| author | Aaron Jacobs <jacobsa@google.com> | 2015-10-21 09:38:27 +1100 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2015-10-20 23:03:06 +0000 |
| commit | ef986fa3fc9b8035151e10658de66873bb25bba5 (patch) | |
| tree | 08af88caca021635833520e0470621734b3a66d3 /src/runtime/write_err.go | |
| parent | 460568b6fd66b756f9bf111e1ce86bbf50334548 (diff) | |
| download | go-ef986fa3fc9b8035151e10658de66873bb25bba5.tar.xz | |
runtime: change odd 'print1_write' file names
The '1' part is left over from the C conversion, but no longer makes
sense given that print1.go no longer exists.
Change-Id: Iec171251370d740f234afdbd6fb1a4009fde6696
Reviewed-on: https://go-review.googlesource.com/16036
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/write_err.go')
| -rw-r--r-- | src/runtime/write_err.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/runtime/write_err.go b/src/runtime/write_err.go new file mode 100644 index 0000000000..6b1467b1c4 --- /dev/null +++ b/src/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))) +} |
