diff options
author | Andrey Mirtchovski <mirtchovski@gmail.com> | 2011-04-03 08:52:43 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2011-04-03 08:52:43 -0700 |
commit | 69819c2ea303d105ccdf294dbf4e5b6804670627 (patch) | |
tree | 84d4eff386a1629a55677fd615b04eac52d86891 | |
parent | 60cfb63bd41eaffeb34146f96ab348e1a668b374 (diff) | |
download | go-69819c2ea303d105ccdf294dbf4e5b6804670627.tar.gz go-69819c2ea303d105ccdf294dbf4e5b6804670627.zip |
os: add a few missing plan9 errors
these were needed by packages in crypto/ and by io/ioutil
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4350047
-rw-r--r-- | src/pkg/os/error_plan9.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pkg/os/error_plan9.go b/src/pkg/os/error_plan9.go index 0f34f04a4d..d6575864e8 100644 --- a/src/pkg/os/error_plan9.go +++ b/src/pkg/os/error_plan9.go @@ -35,10 +35,14 @@ var ( Ebadarg = NewError("bad arg in system call") Enotdir = NewError("not a directory") Enonexist = NewError("file does not exist") + Eexist = NewError("file already exists") + Eio = NewError("i/o error") EINVAL = Ebadarg ENOTDIR = Enotdir ENOENT = Enonexist + EEXIST = Eexist + EIO = Eio ENAMETOOLONG = NewError("file name too long") ERANGE = NewError("math result not representable") |