From 084ad875b3b515f8e782e5bf42ce40e316126e9e Mon Sep 17 00:00:00 2001 From: database64128 Date: Mon, 21 Jul 2025 15:34:35 +0800 Subject: [PATCH] unix: fix //sys decl after CL 548795 CL 548795 mistakenly changed one of the //sys declaration to "// sys" while resolving a merge conflict. For golang/go#64710 Change-Id: I029b461fd3ca7b76f3bd23b3343f7e63c4bb09f3 Reviewed-on: https://go-review.googlesource.com/c/sys/+/688857 Reviewed-by: Keith Randall Reviewed-by: Tobias Klauser Reviewed-by: Keith Randall Reviewed-by: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI --- unix/syscall_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/syscall_darwin.go b/unix/syscall_darwin.go index 798f61ad..1013b0ae 100644 --- a/unix/syscall_darwin.go +++ b/unix/syscall_darwin.go @@ -602,7 +602,6 @@ func Connectx(fd int, srcIf uint32, srcAddr, dstAddr Sockaddr, associd SaeAssocI return } -// sys connectx(fd int, endpoints *SaEndpoints, associd SaeAssocID, flags uint32, iov []Iovec, n *uintptr, connid *SaeConnID) (err error) const minIovec = 8 func Readv(fd int, iovs [][]byte) (n int, err error) { @@ -746,6 +745,7 @@ func darwinKernelVersionMin(maj, min, patch int) bool { return actualMaj > maj || actualMaj == maj && (actualMin > min || actualMin == min && actualPatch >= patch) } +//sys connectx(fd int, endpoints *SaEndpoints, associd SaeAssocID, flags uint32, iov []Iovec, n *uintptr, connid *SaeConnID) (err error) //sys sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) //sys shmat(id int, addr uintptr, flag int) (ret uintptr, err error)