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 ERROR_SHARING_VIOLATION = 32
13 const errFileNotFound = syscall.ERROR_FILE_NOT_FOUND
15 // isEphemeralError returns true if err may be resolved by waiting.
16 func isEphemeralError(err error) bool {
17 var errno syscall.Errno
18 if errors.As(err, &errno) {
20 case syscall.ERROR_ACCESS_DENIED,
21 syscall.ERROR_FILE_NOT_FOUND,
22 ERROR_SHARING_VIOLATION: