Commit 8f0f5c3f authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Define EREMOTEIO as linux specific errno code

parent 5bb69a7d
......@@ -34,9 +34,6 @@ const (
// EIO I/O error
EIO = Status(syscall.EIO)
// EREMOTEIO Remote I/O error
EREMOTEIO = Status(syscall.EREMOTEIO)
// ENOENT No such file or directory
ENOENT = Status(syscall.ENOENT)
......@@ -395,7 +392,7 @@ const (
NOTIFY_INVAL_ENTRY = -3 // notify kernel that a directory entry should be invalidated
NOTIFY_STORE_CACHE = -4 // store data into kernel cache of an inode
// NOTIFY_RETRIEVE_CACHE = -5 // retrieve data from kernel cache of an inode
NOTIFY_DELETE = -6 // notify kernel that a directory entry has been deleted
NOTIFY_DELETE = -6 // notify kernel that a directory entry has been deleted
// NOTIFY_CODE_MAX = -6
)
......
......@@ -10,6 +10,9 @@ import (
const (
ENOATTR = Status(syscall.ENOATTR) // ENOATTR is not defined for all GOOS.
// EREMOTEIO is not supported on Darwin.
EREMOTEIO = Status(syscall.EIO)
)
type Attr struct {
......
......@@ -10,6 +10,9 @@ import (
const (
ENOATTR = Status(syscall.ENODATA) // On Linux, ENOATTR is an alias for ENODATA.
// EREMOTEIO Remote I/O error
EREMOTEIO = Status(syscall.EREMOTEIO)
)
type Attr struct {
......
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