1 // Copyright 2009 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.
7 // An Errno is an unsigned number describing an error condition.
8 // It implements the error interface. The zero Errno is by convention
9 // a non-error, so code to convert from Errno to error should use:
16 func (e Errno) Error() string {
20 func (e Errno) Temporary() bool {
21 return e == EINTR || e == EMFILE || e.Timeout()
24 func (e Errno) Timeout() bool {
25 return e == EAGAIN || e == EWOULDBLOCK || e == ETIMEDOUT