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:
parent
d58ca5f37a
commit
415b20f884
|
@ -534,7 +534,7 @@ done:
|
||||||
|
|
||||||
auto error_or = find_inode_impl(name);
|
auto error_or = find_inode_impl(name);
|
||||||
if (!error_or.is_error())
|
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)
|
if (error_or.error().get_error_code() != ENOENT)
|
||||||
return error_or.error();
|
return error_or.error();
|
||||||
|
|
||||||
|
|
|
@ -158,7 +158,6 @@ const char* strerrordesc_np(int error)
|
||||||
case ETXTBSY: return "Text file busy.";
|
case ETXTBSY: return "Text file busy.";
|
||||||
case EWOULDBLOCK: return "Operation would block.";
|
case EWOULDBLOCK: return "Operation would block.";
|
||||||
case EXDEV: return "Cross-device link.";
|
case EXDEV: return "Cross-device link.";
|
||||||
case EEXISTS: return "File exists";
|
|
||||||
case ENOTBLK: return "Block device required";
|
case ENOTBLK: return "Block device required";
|
||||||
case EUNKNOWN: return "Unknown error";
|
case EUNKNOWN: return "Unknown error";
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,7 +89,6 @@ __BEGIN_DECLS
|
||||||
#define EWOULDBLOCK 80
|
#define EWOULDBLOCK 80
|
||||||
#define EXDEV 81
|
#define EXDEV 81
|
||||||
#define ENOTBLK 82
|
#define ENOTBLK 82
|
||||||
#define EEXISTS 83
|
|
||||||
|
|
||||||
#define EUNKNOWN 0xFF
|
#define EUNKNOWN 0xFF
|
||||||
|
|
||||||
|
|
|
@ -492,7 +492,6 @@ const char* strerrorname_np(int error)
|
||||||
case ETXTBSY: return "ETXTBSY";
|
case ETXTBSY: return "ETXTBSY";
|
||||||
case EWOULDBLOCK: return "EWOULDBLOCK";
|
case EWOULDBLOCK: return "EWOULDBLOCK";
|
||||||
case EXDEV: return "EXDEV";
|
case EXDEV: return "EXDEV";
|
||||||
case EEXISTS: return "EEXISTS";
|
|
||||||
case ENOTBLK: return "ENOTBLK";
|
case ENOTBLK: return "ENOTBLK";
|
||||||
case EUNKNOWN: return "EUNKNOWN";
|
case EUNKNOWN: return "EUNKNOWN";
|
||||||
}
|
}
|
||||||
|
@ -587,7 +586,6 @@ const char* strerrordesc_np(int error)
|
||||||
case ETXTBSY: return "Text file busy.";
|
case ETXTBSY: return "Text file busy.";
|
||||||
case EWOULDBLOCK: return "Operation would block.";
|
case EWOULDBLOCK: return "Operation would block.";
|
||||||
case EXDEV: return "Cross-device link.";
|
case EXDEV: return "Cross-device link.";
|
||||||
case EEXISTS: return "File exists";
|
|
||||||
case ENOTBLK: return "Block device required";
|
case ENOTBLK: return "Block device required";
|
||||||
case EUNKNOWN: return "Unknown error";
|
case EUNKNOWN: return "Unknown error";
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,7 +174,6 @@ static const char* errno_to_string(int error)
|
||||||
case ETXTBSY: return "Text file busy.";
|
case ETXTBSY: return "Text file busy.";
|
||||||
case EWOULDBLOCK: return "Operation would block.";
|
case EWOULDBLOCK: return "Operation would block.";
|
||||||
case EXDEV: return "Cross-device link.";
|
case EXDEV: return "Cross-device link.";
|
||||||
case EEXISTS: return "File exists";
|
|
||||||
case ENOTBLK: return "Block device required";
|
case ENOTBLK: return "Block device required";
|
||||||
case EUNKNOWN: return "Unknown error";
|
case EUNKNOWN: return "Unknown error";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue