]> Cypherpunks repositories - gostls13.git/commitdiff
net, internal/poll, net/internal/socktest: use accept4 and SOCK_{CLOEXEC,NONBLOCK...
authorMikio Hara <mikioh.mikioh@gmail.com>
Mon, 17 Apr 2017 20:08:35 +0000 (05:08 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Tue, 18 Apr 2017 03:56:16 +0000 (03:56 +0000)
Fixes #14222

Change-Id: I026fc9499fdefc33b8bb58b5963e2290adacbf63
Reviewed-on: https://go-review.googlesource.com/40895
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/internal/poll/hook_cloexec.go
src/internal/poll/sock_cloexec.go
src/internal/poll/sys_cloexec.go
src/net/internal/socktest/sys_cloexec.go
src/net/main_cloexec_test.go
src/net/sock_cloexec.go
src/net/sys_cloexec.go

index 062c343abaf36ec04977423a08ec09a607c54e9f..73df6ed6beb737d150e064c4e4b12fb63b33b2b4 100644 (file)
@@ -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
 
index 705f2c8f795ce8435a2a20a30ac153ca87bc200f..0d5c8bdabf7ae5f1476aaeb7e279fad929ed99cf 100644 (file)
@@ -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
 
index d0012459e7d05946d61f44e5961d6cd6552f0e73..9ed35bdaf41e76eedfd995038cb70b9fcbf6141f 100644 (file)
@@ -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
 
index 340ff071e7ec610d0a0c82501286b854f79cc98e..007710c486a5cbda53212f773f92d2d2807948b9 100644 (file)
@@ -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
 
index ade71a94906dd2acbcd8f06d56f19906cf124f76..fa1ed0205723b2f9a570dad0bc5b761a817bfe4c 100644 (file)
@@ -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
 
index 3f5be2d62c60a856f0222150af418d75bc6c8edc..06ff10d834a50f33724297c22d9f6b7474e2e790 100644 (file)
@@ -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
 
index b7a842501ece696050990480ffa95dab22e7fff2..c4dc6c75ee5e82979a2c6a8157bd332abcca75a5 100644 (file)
@@ -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