mirror of
https://github.com/golang/go
synced 2024-11-19 05:54:44 -07:00
net, internal/poll, net/internal/socktest: use accept4 and SOCK_{CLOEXEC,NONBLOCK} on dragonfly
Fixes #14222 Change-Id: I026fc9499fdefc33b8bb58b5963e2290adacbf63 Reviewed-on: https://go-review.googlesource.com/40895 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
7b5e0b7688
commit
33c3477039
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build freebsd linux
|
||||
// +build dragonfly freebsd linux
|
||||
|
||||
package poll
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
// This file implements sysSocket and accept for platforms that
|
||||
// provide a fast path for setting SetNonblock and CloseOnExec.
|
||||
|
||||
// +build freebsd linux
|
||||
// +build dragonfly freebsd linux
|
||||
|
||||
package poll
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
// This file implements sysSocket and accept for platforms that do not
|
||||
// provide a fast path for setting SetNonblock and CloseOnExec.
|
||||
|
||||
// +build darwin dragonfly nacl netbsd openbsd solaris
|
||||
// +build darwin nacl netbsd openbsd solaris
|
||||
|
||||
package poll
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build freebsd linux
|
||||
// +build dragonfly freebsd linux
|
||||
|
||||
package socktest
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build freebsd linux
|
||||
// +build dragonfly freebsd linux
|
||||
|
||||
package net
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
// This file implements sysSocket and accept for platforms that
|
||||
// provide a fast path for setting SetNonblock and CloseOnExec.
|
||||
|
||||
// +build freebsd linux
|
||||
// +build dragonfly freebsd linux
|
||||
|
||||
package net
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
// This file implements sysSocket and accept for platforms that do not
|
||||
// provide a fast path for setting SetNonblock and CloseOnExec.
|
||||
|
||||
// +build darwin dragonfly nacl netbsd openbsd solaris
|
||||
// +build darwin nacl netbsd openbsd solaris
|
||||
|
||||
package net
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user