From 3f8e64878a93a1b005e1ff0f2a939bab826b8b9f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 20 Apr 2021 12:58:53 +0200 Subject: [PATCH] internal/poll, net: fix comments regarding accept and sysSocket 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 Run-TryBot: Tobias Klauser TryBot-Result: Go Bot Reviewed-by: Ian Lance Taylor --- src/internal/poll/sock_cloexec.go | 4 ++-- src/internal/poll/sys_cloexec.go | 4 ++-- src/net/sock_cloexec.go | 4 ++-- src/net/sys_cloexec.go | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/internal/poll/sock_cloexec.go b/src/internal/poll/sock_cloexec.go index 52191d85c67..b3038290b92 100644 --- a/src/internal/poll/sock_cloexec.go +++ b/src/internal/poll/sock_cloexec.go @@ -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 diff --git a/src/internal/poll/sys_cloexec.go b/src/internal/poll/sys_cloexec.go index 69207a4b897..7e6d422d621 100644 --- a/src/internal/poll/sys_cloexec.go +++ b/src/internal/poll/sys_cloexec.go @@ -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 diff --git a/src/net/sock_cloexec.go b/src/net/sock_cloexec.go index efc91fdb530..6861c4bf635 100644 --- a/src/net/sock_cloexec.go +++ b/src/net/sock_cloexec.go @@ -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 diff --git a/src/net/sys_cloexec.go b/src/net/sys_cloexec.go index 4d7112051ff..a32483e2df9 100644 --- a/src/net/sys_cloexec.go +++ b/src/net/sys_cloexec.go @@ -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