mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: correct various Go -> C function calls
Some things get converted.
Other things (too complex or too many C deps) get onM calls.
Other things (too simple) get #pragma textflag NOSPLIT.
After this CL, the offending function list is basically:
- panic.c
- netpoll.goc
- mem*.c
- race stuff
- readgstatus
- entersyscall/exitsyscall
LGTM=r, iant
R=golang-codereviews, r, iant
CC=dvyukov, golang-codereviews, khr
https://golang.org/cl/140930043
This commit is contained in:
parent
32ecf57d22
commit
e3edfea07f
21 changed files with 301 additions and 156 deletions
13
src/pkg/runtime/signal_unix.go
Normal file
13
src/pkg/runtime/signal_unix.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// Copyright 2012 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 darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||
|
||||
package runtime
|
||||
|
||||
func sigpipe()
|
||||
|
||||
func os_sigpipe() {
|
||||
onM(sigpipe)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue