LibC: Remove errno EEXISTS

I don't know why I had added this. It doesn't seem to be a thing on
either POSIX or linux. This was literally equivalent to EXIST
This commit is contained in:
2024-12-02 17:47:04 +02:00
parent d58ca5f37a
commit 415b20f884
5 changed files with 1 additions and 6 deletions

View File

@@ -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();

View File

@@ -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";
}