mirror of
https://github.com/golang/go.git
synced 2024-09-21 10:28:27 +00:00
9dea791a7a
It's unused since CL 524055. Change-Id: I767eac6a66379e67337e24051e5f79aa027e9fad Reviewed-on: https://go-review.googlesource.com/c/go/+/524715 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org>
23 lines
437 B
Go
23 lines
437 B
Go
// Copyright 2015 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package net
|
|
|
|
import "syscall"
|
|
|
|
var (
|
|
errOpNotSupported = syscall.EPLAN9
|
|
|
|
abortedConnRequestErrors []error
|
|
)
|
|
|
|
func isPlatformError(err error) bool {
|
|
_, ok := err.(syscall.ErrorString)
|
|
return ok
|
|
}
|
|
|
|
func isENOBUFS(err error) bool {
|
|
return false // ENOBUFS is Unix-specific
|
|
}
|