1
// Copyright 2011 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
9
// Invented values to support what package os expects.
29
EINVAL = NewError("bad arg in system call")
30
ENOTDIR = NewError("not a directory")
31
EISDIR = NewError("file is a directory")
32
ENOENT = NewError("file does not exist")
33
EEXIST = NewError("file already exists")
34
EMFILE = NewError("no free file descriptors")
35
EIO = NewError("i/o error")
36
ENAMETOOLONG = NewError("file name too long")
37
EINTR = NewError("interrupted")
38
EPERM = NewError("permission denied")
39
EBUSY = NewError("no free devices")
40
ETIMEDOUT = NewError("connection timed out")
41
EPLAN9 = NewError("not supported by plan 9")
43
// The following errors do not correspond to any
44
// Plan 9 system messages. Invented to support
45
// what package os and others expect.
46
EACCES = NewError("access permission denied")
47
EAFNOSUPPORT = NewError("address family not supported by protocol")