forked from PoliEcho-holding-org/kern
add EEXIST to errno.h
This commit is contained in:
+18
-17
@@ -13,23 +13,24 @@
|
|||||||
// TODO: Add correct errno.h numbers
|
// TODO: Add correct errno.h numbers
|
||||||
enum {
|
enum {
|
||||||
SUCCESS = 0,
|
SUCCESS = 0,
|
||||||
ENOMEM, // Cannot allocate memory
|
ENOMEM, // Cannot allocate memory
|
||||||
EPERM, // Operation not permitted
|
EPERM, // Operation not permitted
|
||||||
ENOENT, // No entry (no such file or directory)
|
ENOENT, // No entry (no such file or directory)
|
||||||
EIO, // Input/Output error
|
EIO, // Input/Output error
|
||||||
ENXIO, // No such device or address
|
ENXIO, // No such device or address
|
||||||
EAGAIN, // Resource temporarly busy
|
EAGAIN, // Resource temporarly busy
|
||||||
EACCES, // Permission denied
|
EACCES, // Permission denied
|
||||||
EFAULT, // Bad address
|
EFAULT, // Bad address
|
||||||
ENODEV, // No such device
|
ENODEV, // No such device
|
||||||
EINVAL, // Invalid argument
|
EINVAL, // Invalid argument
|
||||||
EDOM, // Numerical argument out of domain
|
EDOM, // Numerical argument out of domain
|
||||||
ERANGE, // Numerical result out of range
|
ERANGE, // Numerical result out of range
|
||||||
ENOSYS, // Function not implemented
|
ENOSYS, // Function not implemented
|
||||||
ENOTSUP, // Not supported
|
ENOTSUP, // Not supported
|
||||||
EILLSEQ, // Illegal byte sequence
|
EILLSEQ, // Illegal byte sequence
|
||||||
EOVERFLOW, //
|
EOVERFLOW, //
|
||||||
EALIGN, // Not aligned
|
EALIGN, // Not aligned
|
||||||
|
EEXIST, // already exists
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user