From: Andrey Mirtchovski Date: Sun, 3 Apr 2011 15:52:43 +0000 (-0700) Subject: os: add a few missing plan9 errors X-Git-Tag: weekly.2011-04-04~19 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=69819c2ea303d105ccdf294dbf4e5b6804670627;p=gostls13.git 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 --- 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")