mirror of
https://github.com/golang/go.git
synced 2026-06-27 03:11:23 +00:00
syscall: add export linknames for socketcall on S390X
CL 749981 added export linknames to assembly symbols accessed externally. socketcall and rawsocketcall on S390X were missed. Add them. Fixes #79605. Change-Id: I8497916e31bdc80a3f7b0084b3267cee9ce525b1 Reviewed-on: https://go-review.googlesource.com/c/go/+/781920 LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Cherry Mui <cherryyz@google.com>
This commit is contained in:
parent
cc623858f6
commit
fc245b6427
2 changed files with 6 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ const (
|
|||
_SENDMMSG = 20
|
||||
)
|
||||
|
||||
// socketcall and rawsocketcall are accessed via assembly in x/sys/unix.
|
||||
// socketcall and rawsocketcall are accessed via assembly in x/sys/unix and x/net.
|
||||
//
|
||||
//go:linkname socketcall
|
||||
func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err Errno)
|
||||
|
|
|
|||
|
|
@ -111,7 +111,12 @@ const (
|
|||
_SENDMMSG = 20
|
||||
)
|
||||
|
||||
// socketcall and rawsocketcall are accessed via assembly in x/net.
|
||||
//
|
||||
//go:linkname socketcall
|
||||
func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err Errno)
|
||||
|
||||
//go:linkname rawsocketcall
|
||||
func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err Errno)
|
||||
|
||||
func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue