mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-24 04:34:22 +08:00
lib: errno: sync error codes
Macro ERRNO_MSG() ignores the error number but we should still use the same constants as in include/linux/errno.h. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
574e38618b
commit
eb5b63f369
@ -13,7 +13,7 @@
|
||||
static const char * const errno_message[] = {
|
||||
ERRNO_MSG(0, "Success"),
|
||||
ERRNO_MSG(EPERM, "Operation not permitted"),
|
||||
ERRNO_MSG(ENOEN, "No such file or directory"),
|
||||
ERRNO_MSG(ENOENT, "No such file or directory"),
|
||||
ERRNO_MSG(ESRCH, "No such process"),
|
||||
ERRNO_MSG(EINTR, "Interrupted system call"),
|
||||
ERRNO_MSG(EIO, "I/O error"),
|
||||
@ -26,7 +26,7 @@ static const char * const errno_message[] = {
|
||||
ERRNO_MSG(ENOMEM, "Out of memory"),
|
||||
ERRNO_MSG(EACCES, "Permission denied"),
|
||||
ERRNO_MSG(EFAULT, "Bad address"),
|
||||
ERRNO_MSG(ENOTBL, "Block device required"),
|
||||
ERRNO_MSG(ENOTBLK, "Block device required"),
|
||||
ERRNO_MSG(EBUSY, "Device or resource busy"),
|
||||
ERRNO_MSG(EEXIST, "File exists"),
|
||||
ERRNO_MSG(EXDEV, "Cross-device link"),
|
||||
|
Loading…
Reference in New Issue
Block a user