1 // Copyright 2019 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.
5 //go:build unix || wasip1
11 // Do the interface allocations only once for common
14 errEAGAIN error = syscall.EAGAIN
15 errEINVAL error = syscall.EINVAL
16 errENOENT error = syscall.ENOENT
19 // errnoErr returns common boxed Errno values, to prevent
20 // allocations at runtime.
21 func errnoErr(e syscall.Errno) error {