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.
11 // Invented values to support what package os expects.
31 EINVAL = syscall.NewError("bad arg in system call")
32 ENOTDIR = syscall.NewError("not a directory")
33 EISDIR = syscall.NewError("file is a directory")
34 ENOENT = syscall.NewError("file does not exist")
35 EEXIST = syscall.NewError("file already exists")
36 EMFILE = syscall.NewError("no free file descriptors")
37 EIO = syscall.NewError("i/o error")
38 ENAMETOOLONG = syscall.NewError("file name too long")
39 EINTR = syscall.NewError("interrupted")
40 EPERM = syscall.NewError("permission denied")
41 EBUSY = syscall.NewError("no free devices")
42 ETIMEDOUT = syscall.NewError("connection timed out")
43 EPLAN9 = syscall.NewError("not supported by plan 9")
45 // The following errors do not correspond to any
46 // Plan 9 system messages. Invented to support
47 // what package os and others expect.
48 EACCES = syscall.NewError("access permission denied")
49 EAFNOSUPPORT = syscall.NewError("address family not supported by protocol")