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.
12 const errFileNotFound = syscall.ERROR_FILE_NOT_FOUND
14 // isEphemeralError returns true if err may be resolved by waiting.
15 func isEphemeralError(err error) bool {
16 switch werr := err.(type) {
21 case *os.SyscallError:
24 if errno, ok := err.(syscall.Errno); ok {
26 case syscall.ERROR_ACCESS_DENIED,
27 syscall.ERROR_FILE_NOT_FOUND,
28 ERROR_SHARING_VIOLATION: