1 // Copyright 2017 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
10 errERROR_IO_PENDING error = syscall.ERROR_IO_PENDING
11 errEINVAL error = syscall.EINVAL
14 // errnoErr returns common boxed Errno values, to prevent allocations
16 func errnoErr(errno syscall.Errno) error {
20 case syscall.ERROR_IO_PENDING:
21 return errERROR_IO_PENDING