diff --git a/kernel/kernel/FS/Ext2/Inode.cpp b/kernel/kernel/FS/Ext2/Inode.cpp index fe77f9b273..598dc0ae39 100644 --- a/kernel/kernel/FS/Ext2/Inode.cpp +++ b/kernel/kernel/FS/Ext2/Inode.cpp @@ -534,7 +534,7 @@ done: auto error_or = find_inode_impl(name); if (!error_or.is_error()) - return BAN::Error::from_errno(EEXISTS); + return BAN::Error::from_errno(EEXIST); if (error_or.error().get_error_code() != ENOENT) return error_or.error(); diff --git a/kernel/klibc/string.cpp b/kernel/klibc/string.cpp index c07a121f2a..d8aafd20f4 100644 --- a/kernel/klibc/string.cpp +++ b/kernel/klibc/string.cpp @@ -158,7 +158,6 @@ const char* strerrordesc_np(int error) case ETXTBSY: return "Text file busy."; case EWOULDBLOCK: return "Operation would block."; case EXDEV: return "Cross-device link."; - case EEXISTS: return "File exists"; case ENOTBLK: return "Block device required"; case EUNKNOWN: return "Unknown error"; } diff --git a/userspace/libraries/LibC/include/errno.h b/userspace/libraries/LibC/include/errno.h index d415145967..9658c58187 100644 --- a/userspace/libraries/LibC/include/errno.h +++ b/userspace/libraries/LibC/include/errno.h @@ -89,7 +89,6 @@ __BEGIN_DECLS #define EWOULDBLOCK 80 #define EXDEV 81 #define ENOTBLK 82 -#define EEXISTS 83 #define EUNKNOWN 0xFF diff --git a/userspace/libraries/LibC/string.cpp b/userspace/libraries/LibC/string.cpp index 40ed2ef557..7a5b45b412 100644 --- a/userspace/libraries/LibC/string.cpp +++ b/userspace/libraries/LibC/string.cpp @@ -492,7 +492,6 @@ const char* strerrorname_np(int error) case ETXTBSY: return "ETXTBSY"; case EWOULDBLOCK: return "EWOULDBLOCK"; case EXDEV: return "EXDEV"; - case EEXISTS: return "EEXISTS"; case ENOTBLK: return "ENOTBLK"; case EUNKNOWN: return "EUNKNOWN"; } @@ -587,7 +586,6 @@ const char* strerrordesc_np(int error) case ETXTBSY: return "Text file busy."; case EWOULDBLOCK: return "Operation would block."; case EXDEV: return "Cross-device link."; - case EEXISTS: return "File exists"; case ENOTBLK: return "Block device required"; case EUNKNOWN: return "Unknown error"; } diff --git a/userspace/programs/DynamicLoader/utils.cpp b/userspace/programs/DynamicLoader/utils.cpp index 922bfb44b2..99ff3ee8e3 100644 --- a/userspace/programs/DynamicLoader/utils.cpp +++ b/userspace/programs/DynamicLoader/utils.cpp @@ -174,7 +174,6 @@ static const char* errno_to_string(int error) case ETXTBSY: return "Text file busy."; case EWOULDBLOCK: return "Operation would block."; case EXDEV: return "Cross-device link."; - case EEXISTS: return "File exists"; case ENOTBLK: return "Block device required"; case EUNKNOWN: return "Unknown error"; }