fixup errno

This commit is contained in:
lizzie
2026-08-15 20:04:22 +00:00
parent 2838141f21
commit 5a35f45140
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -212,6 +212,10 @@ Errno TranslateNativeError(int e, CallType call_type = CallType::Other) {
switch (e) {
case 0: return Errno::SUCCESS;
#define NETWORK_ERROR_LIST \
NETWORK_ERROR_ELEM(NOENT) \
NETWORK_ERROR_ELEM(INTR) \
NETWORK_ERROR_ELEM(IO) \
NETWORK_ERROR_ELEM(NOEXEC) \
NETWORK_ERROR_ELEM(BADF) \
NETWORK_ERROR_ELEM(INVAL) \
NETWORK_ERROR_ELEM(MFILE) \
+4
View File
@@ -20,6 +20,10 @@ namespace Network {
enum class Errno : u32 {
SUCCESS = 0,
NOENT = 2,
INTR = 4,
IO = 5,
NOEXEC = 8,
BADF = 9,
AGAIN = 11,
INVAL = 22,