From 69819c2ea303d105ccdf294dbf4e5b6804670627 Mon Sep 17 00:00:00 2001 From: Andrey Mirtchovski Date: Sun, 3 Apr 2011 08:52:43 -0700 Subject: [PATCH] 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 --- src/pkg/os/error_plan9.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pkg/os/error_plan9.go b/src/pkg/os/error_plan9.go index 0f34f04a4de..d6575864e84 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")