1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:07:45 +00:00

LibC: Add a couple of missing errno codes

These are required to compile a port.
This commit is contained in:
Idan Horowitz 2021-12-02 01:33:28 +02:00 committed by Andreas Kling
parent 265764ff2f
commit 13dec3cdde
3 changed files with 17 additions and 0 deletions

View file

@ -311,6 +311,7 @@ const char* const sys_errlist[] = {
"Directory not empty",
"Math argument out of domain",
"Connection refused",
"Host is down",
"Address not available",
"Already connected",
"Connection aborted",
@ -328,7 +329,10 @@ const char* const sys_errlist[] = {
"No message",
"No protocol option",
"Not connected",
"Transport endpoint has shutdown",
"Too many references",
"Protocol not supported",
"Socket type not supported",
"Resource deadlock would occur",
"Timed out",
"Wrong protocol type",
@ -342,6 +346,7 @@ const char* const sys_errlist[] = {
"State not recoverable",
"The highest errno +1 :^)",
};
static_assert(array_size(sys_errlist) == (EMAXERRNO + 1));
int sys_nerr = EMAXERRNO;