1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:04:41 -07:00

syscall: make windows Errno implement net.Error (fix build)

TBR=brainman
CC=golang-dev
https://golang.org/cl/5371086
This commit is contained in:
Russ Cox 2011-11-14 01:21:38 -05:00
parent f19aef5393
commit 6677d2954e

View File

@ -15,6 +15,14 @@ func (e Errno) Error() string {
return errstr(e)
}
func (e Errno) Temporary() bool {
return e == EINTR || e == EMFILE || e.Timeout()
}
func (e Errno) Timeout() bool {
return e == EAGAIN || e == EWOULDBLOCK || e == ETIMEDOUT
}
// DLLError describes reasons for DLL load failures.
type DLLError struct {
Err error