// Copyright 2017 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.packagesocketimport"syscall"var(errERROR_IO_PENDINGerror=syscall.ERROR_IO_PENDINGerrEINVALerror=syscall.EINVAL)// errnoErr returns common boxed Errno values, to prevent allocations// at runtime.funcerrnoErr(errnosyscall.Errno)error{switcherrno{case0:returnnilcasesyscall.ERROR_IO_PENDING:returnerrERROR_IO_PENDINGcasesyscall.EINVAL:returnerrEINVAL}returnerrno}