1
0
mirror of https://github.com/golang/go synced 2024-11-25 06:47:56 -07:00

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
This commit is contained in:
Andrey Mirtchovski 2011-04-03 08:52:43 -07:00 committed by Rob Pike
parent 60cfb63bd4
commit 69819c2ea3

View File

@ -35,10 +35,14 @@ var (
Ebadarg = NewError("bad arg in system call") Ebadarg = NewError("bad arg in system call")
Enotdir = NewError("not a directory") Enotdir = NewError("not a directory")
Enonexist = NewError("file does not exist") Enonexist = NewError("file does not exist")
Eexist = NewError("file already exists")
Eio = NewError("i/o error")
EINVAL = Ebadarg EINVAL = Ebadarg
ENOTDIR = Enotdir ENOTDIR = Enotdir
ENOENT = Enonexist ENOENT = Enonexist
EEXIST = Eexist
EIO = Eio
ENAMETOOLONG = NewError("file name too long") ENAMETOOLONG = NewError("file name too long")
ERANGE = NewError("math result not representable") ERANGE = NewError("math result not representable")