diff --git a/kernel/klibc/string.cpp b/kernel/klibc/string.cpp index 61d0cf17..1dbd6990 100644 --- a/kernel/klibc/string.cpp +++ b/kernel/klibc/string.cpp @@ -179,6 +179,7 @@ const char* strerrordesc_np(int error) case EWOULDBLOCK: return "Operation would block."; case EXDEV: return "Cross-device link."; case ENOTBLK: return "Block device required"; + case ESHUTDOWN: return "Cannot send after transport endpoint shutdown."; case EUNKNOWN: return "Unknown error"; } return nullptr; diff --git a/userspace/libraries/LibC/include/errno.h b/userspace/libraries/LibC/include/errno.h index a94cf825..973cdbf3 100644 --- a/userspace/libraries/LibC/include/errno.h +++ b/userspace/libraries/LibC/include/errno.h @@ -89,6 +89,7 @@ __BEGIN_DECLS #define EWOULDBLOCK 80 #define EXDEV 81 #define ENOTBLK 82 +#define ESHUTDOWN 83 #define ERESTART 0xFE /* internal errno for SA_RESTART */ #define EUNKNOWN 0xFF diff --git a/userspace/libraries/LibC/string.cpp b/userspace/libraries/LibC/string.cpp index c38b0680..96d0acd8 100644 --- a/userspace/libraries/LibC/string.cpp +++ b/userspace/libraries/LibC/string.cpp @@ -524,6 +524,7 @@ const char* strerrorname_np(int error) case EWOULDBLOCK: return "EWOULDBLOCK"; case EXDEV: return "EXDEV"; case ENOTBLK: return "ENOTBLK"; + case ESHUTDOWN: return "ESHUTDOWN"; case EUNKNOWN: return "EUNKNOWN"; } @@ -618,6 +619,7 @@ const char* strerrordesc_np(int error) case EWOULDBLOCK: return "Operation would block."; case EXDEV: return "Cross-device link."; case ENOTBLK: return "Block device required"; + case ESHUTDOWN: return "Cannot send after transport endpoint shutdown."; case EUNKNOWN: return "Unknown error"; } diff --git a/userspace/programs/DynamicLoader/utils.cpp b/userspace/programs/DynamicLoader/utils.cpp index 99ff3ee8..95216661 100644 --- a/userspace/programs/DynamicLoader/utils.cpp +++ b/userspace/programs/DynamicLoader/utils.cpp @@ -175,6 +175,7 @@ static const char* errno_to_string(int error) case EWOULDBLOCK: return "Operation would block."; case EXDEV: return "Cross-device link."; case ENOTBLK: return "Block device required"; + case ESHUTDOWN: return "Cannot send after transport endpoint shutdown."; case EUNKNOWN: return "Unknown error"; } return nullptr;