]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: consolidate some low-level error reporting
authorIan Lance Taylor <iant@golang.org>
Tue, 1 Nov 2022 19:33:59 +0000 (12:33 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 10 Nov 2022 18:51:20 +0000 (18:51 +0000)
commit79d9b395adf90f186617ee37800a18af0a7095ef
tree457be28ddf6ac4a92402a0fef146313bdebd83c8
parentfbf763fd1d6be3c162ea5ff3c8843171ef937c3a
runtime: consolidate some low-level error reporting

Use a single writeErrStr function. Avoid using global variables.
Use a single version of some error messages rather than duplicating
the messages in OS-specific files.

Change-Id: If259fbe78faf797f0a21337d14472160ca03efa0
Reviewed-on: https://go-review.googlesource.com/c/go/+/447055
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/os_aix.go
src/runtime/os_darwin.go
src/runtime/os_freebsd.go
src/runtime/os_linux.go
src/runtime/os_openbsd_libc.go
src/runtime/proc.go
src/runtime/runtime.go
src/runtime/signal_unix.go
src/runtime/stubs.go