]> Cypherpunks repositories - gostls13.git/commitdiff
internal/poll,net: support poll.Sendfile for darwin
authorKoichi Shiraishi <zchee.io@gmail.com>
Mon, 11 Oct 2021 15:33:43 +0000 (00:33 +0900)
committerAlexander Rakoczy <alex@golang.org>
Wed, 13 Oct 2021 16:41:20 +0000 (16:41 +0000)
darwin already supports syscall.Sendfile.

Change-Id: Id3db06591ffad0550b4173bacddeb0acfe355f9e
Reviewed-on: https://go-review.googlesource.com/c/go/+/355109
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Alexander Rakoczy <alex@golang.org>

src/internal/poll/sendfile_bsd.go
src/net/sendfile_stub.go
src/net/sendfile_unix_alt.go

index 3ba30a2154cd545c8616138ba6998a52359f00bb..5531e533c5cab9cf0def01a4e221ee1fe9904cbc 100644 (file)
@@ -2,8 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build dragonfly || freebsd
-// +build dragonfly freebsd
+//go:build darwin || dragonfly || freebsd
+// +build darwin dragonfly freebsd
 
 package poll
 
index 5753bc02898742181c55fd7979f17ef6ed2422d5..c079064262d8345ffdbcb73f8f07d4b78374a2c2 100644 (file)
@@ -2,8 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build aix || darwin || (js && wasm) || netbsd || openbsd
-// +build aix darwin js,wasm netbsd openbsd
+//go:build aix || (js && wasm) || netbsd || openbsd
+// +build aix js,wasm netbsd openbsd
 
 package net
 
index 54667d672f87b405e2c599999664ce193fe575ff..cd63dcc32cef35416ca8b84f164edd5a86073e07 100644 (file)
@@ -2,8 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build dragonfly || freebsd || solaris
-// +build dragonfly freebsd solaris
+//go:build darwin || dragonfly || freebsd || solaris
+// +build darwin dragonfly freebsd solaris
 
 package net