]> Cypherpunks repositories - gostls13.git/commitdiff
os: add a few missing plan9 errors
authorAndrey Mirtchovski <mirtchovski@gmail.com>
Sun, 3 Apr 2011 15:52:43 +0000 (08:52 -0700)
committerRob Pike <r@golang.org>
Sun, 3 Apr 2011 15:52:43 +0000 (08:52 -0700)
these were needed by packages in crypto/ and by io/ioutil

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4350047

src/pkg/os/error_plan9.go

index 0f34f04a4de00ca070d4bf93ae75f46efe30a3f0..d6575864e843d4e1f33ab0518a6a003d03970f04 100644 (file)
@@ -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")