Commit b017bc92 authored by Dustin Oprea's avatar Dustin Oprea Committed by Han-Wen Nienhuys

Added error descriptions.

parent 11be620b
...@@ -19,19 +19,47 @@ type Status int32 ...@@ -19,19 +19,47 @@ type Status int32
const ( const (
OK = Status(0) OK = Status(0)
// EACCESS Permission denied
EACCES = Status(syscall.EACCES) EACCES = Status(syscall.EACCES)
// EBUSY Device or resource busy
EBUSY = Status(syscall.EBUSY) EBUSY = Status(syscall.EBUSY)
// EINVAL Invalid argument
EINVAL = Status(syscall.EINVAL) EINVAL = Status(syscall.EINVAL)
// EIO I/O error
EIO = Status(syscall.EIO) EIO = Status(syscall.EIO)
// ENOENT No such file or directory
ENOENT = Status(syscall.ENOENT) ENOENT = Status(syscall.ENOENT)
// ENOSYS Function not implemented
ENOSYS = Status(syscall.ENOSYS) ENOSYS = Status(syscall.ENOSYS)
// ENODATA No data available
ENODATA = Status(syscall.ENODATA) ENODATA = Status(syscall.ENODATA)
// ENOTDIR Not a directory
ENOTDIR = Status(syscall.ENOTDIR) ENOTDIR = Status(syscall.ENOTDIR)
// EPERM Operation not permitted
EPERM = Status(syscall.EPERM) EPERM = Status(syscall.EPERM)
// ERANGE Math result not representable
ERANGE = Status(syscall.ERANGE) ERANGE = Status(syscall.ERANGE)
// EXDEV Cross-device link
EXDEV = Status(syscall.EXDEV) EXDEV = Status(syscall.EXDEV)
// EBADF Bad file number
EBADF = Status(syscall.EBADF) EBADF = Status(syscall.EBADF)
// ENODEV No such device
ENODEV = Status(syscall.ENODEV) ENODEV = Status(syscall.ENODEV)
// EROFS Read-only file system
EROFS = Status(syscall.EROFS) EROFS = Status(syscall.EROFS)
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment