summaryrefslogtreecommitdiff
path: root/libgo/go/syscall/syscall_unix.go
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-15 07:12:03 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-15 07:12:03 +0000
commit7dc5d28ee6bb7c1e9a6748c8d454d91816a6364c (patch)
treecebf094bde6c4579d2f09949de23183734783c41 /libgo/go/syscall/syscall_unix.go
parentdd120a9705b6c48fdb519e837ad47e41d155f50b (diff)
syscall: Move Errno into its own file, for RTEMS.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182356 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go/syscall/syscall_unix.go')
-rw-r--r--libgo/go/syscall/syscall_unix.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/libgo/go/syscall/syscall_unix.go b/libgo/go/syscall/syscall_unix.go
index 899a65ca9b44..07d3af3a622a 100644
--- a/libgo/go/syscall/syscall_unix.go
+++ b/libgo/go/syscall/syscall_unix.go
@@ -157,25 +157,3 @@ func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, e
func Munmap(b []byte) (err error) {
return mapper.Munmap(b)
}
-
-
-// An Errno is an unsigned number describing an error condition.
-// It implements the error interface. The zero Errno is by convention
-// a non-error, so code to convert from Errno to error should use:
-// err = nil
-// if errno != 0 {
-// err = errno
-// }
-type Errno uintptr
-
-func (e Errno) Error() string {
- return Errstr(int(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
-}