LibC: Define ESHUTDOWN

This is not used but some ports expect it to exist
This commit is contained in:
Bananymous 2025-11-02 21:09:48 +02:00
parent 10084ff1bb
commit b822d42889
4 changed files with 5 additions and 0 deletions

View File

@ -179,6 +179,7 @@ const char* strerrordesc_np(int error)
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 ENOTBLK: return "Block device required"; case ENOTBLK: return "Block device required";
case ESHUTDOWN: return "Cannot send after transport endpoint shutdown.";
case EUNKNOWN: return "Unknown error"; case EUNKNOWN: return "Unknown error";
} }
return nullptr; return nullptr;

View File

@ -89,6 +89,7 @@ __BEGIN_DECLS
#define EWOULDBLOCK 80 #define EWOULDBLOCK 80
#define EXDEV 81 #define EXDEV 81
#define ENOTBLK 82 #define ENOTBLK 82
#define ESHUTDOWN 83
#define ERESTART 0xFE /* internal errno for SA_RESTART */ #define ERESTART 0xFE /* internal errno for SA_RESTART */
#define EUNKNOWN 0xFF #define EUNKNOWN 0xFF

View File

@ -524,6 +524,7 @@ const char* strerrorname_np(int error)
case EWOULDBLOCK: return "EWOULDBLOCK"; case EWOULDBLOCK: return "EWOULDBLOCK";
case EXDEV: return "EXDEV"; case EXDEV: return "EXDEV";
case ENOTBLK: return "ENOTBLK"; case ENOTBLK: return "ENOTBLK";
case ESHUTDOWN: return "ESHUTDOWN";
case EUNKNOWN: return "EUNKNOWN"; case EUNKNOWN: return "EUNKNOWN";
} }
@ -618,6 +619,7 @@ const char* strerrordesc_np(int error)
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 ENOTBLK: return "Block device required"; case ENOTBLK: return "Block device required";
case ESHUTDOWN: return "Cannot send after transport endpoint shutdown.";
case EUNKNOWN: return "Unknown error"; case EUNKNOWN: return "Unknown error";
} }

View File

@ -175,6 +175,7 @@ static const char* errno_to_string(int error)
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 ENOTBLK: return "Block device required"; case ENOTBLK: return "Block device required";
case ESHUTDOWN: return "Cannot send after transport endpoint shutdown.";
case EUNKNOWN: return "Unknown error"; case EUNKNOWN: return "Unknown error";
} }
return nullptr; return nullptr;