]> Cypherpunks repositories - gostls13.git/commitdiff
internal/poll, net: fix comments regarding accept and sysSocket
authorTobias Klauser <tklauser@distanz.ch>
Tue, 20 Apr 2021 10:58:53 +0000 (12:58 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Tue, 20 Apr 2021 21:00:32 +0000 (21:00 +0000)
The implementation of accept was moved from package net to internal/poll
in CL 36799.

Change-Id: I6e5964e0ee22e9c84bc444860cdd497817451fec
Reviewed-on: https://go-review.googlesource.com/c/go/+/311571
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/internal/poll/sock_cloexec.go
src/internal/poll/sys_cloexec.go
src/net/sock_cloexec.go
src/net/sys_cloexec.go

index 52191d85c671bb3c9ff61f32808c8da09b0f170c..b3038290b9216853c227fad6c0acc93079d81fad 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.
 
-// This file implements sysSocket and accept for platforms that
-// provide a fast path for setting SetNonblock and CloseOnExec.
+// This file implements accept for platforms that provide a fast path for
+// setting SetNonblock and CloseOnExec.
 
 //go:build dragonfly || freebsd || illumos || linux || netbsd || openbsd
 // +build dragonfly freebsd illumos linux netbsd openbsd
index 69207a4b89707935b17aea30aec4fe1c41585906..7e6d422d621cda8bf433e593d3e22f19a0f89d47 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.
 
-// This file implements sysSocket and accept for platforms that do not
-// provide a fast path for setting SetNonblock and CloseOnExec.
+// This file implements accept for platforms that do not provide a fast path for
+// setting SetNonblock and CloseOnExec.
 
 //go:build aix || darwin || (js && wasm) || (solaris && !illumos)
 // +build aix darwin js,wasm solaris,!illumos
index efc91fdb53022aa1b0746004ce529c1b7455b052..6861c4bf635dcfb3fda8b7b1cc6a1cd8cf25e81f 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.
 
-// This file implements sysSocket and accept for platforms that
-// provide a fast path for setting SetNonblock and CloseOnExec.
+// This file implements sysSocket for platforms that provide a fast path for
+// setting SetNonblock and CloseOnExec.
 
 //go:build dragonfly || freebsd || illumos || linux || netbsd || openbsd
 // +build dragonfly freebsd illumos linux netbsd openbsd
index 4d7112051ff25cf5bfd4075d83b2885e3f5c04e6..a32483e2df94e4101948501042aba46ef7790394 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.
 
-// This file implements sysSocket and accept for platforms that do not
-// provide a fast path for setting SetNonblock and CloseOnExec.
+// This file implements sysSocket for platforms that do not provide a fast path
+// for setting SetNonblock and CloseOnExec.
 
 //go:build aix || darwin || (solaris && !illumos)
 // +build aix darwin solaris,!illumos