mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibC: Make EWOULDBLOCK an alias for EAGAIN
According to POSIX.1 all error codes have to be distinct - with the exception for EAGAIN and EWOULDBLOCK. Other libcs including eglibc and newlib define EWOULDBLOCK as an alias for EAGAIN and some software including OpenTTD expect this behavior.
This commit is contained in:
parent
03f4c48de1
commit
a9f488c55b
Notes:
sideshowbarker
2024-07-18 18:50:23 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/a9f488c55b2 Pull-request: https://github.com/SerenityOS/serenity/pull/6746
2 changed files with 2 additions and 3 deletions
|
@ -133,8 +133,6 @@ enum ErrnoCode {
|
|||
#define ENOPROTOOPT ENOPROTOOPT
|
||||
ENOTCONN,
|
||||
#define ENOTCONN ENOTCONN
|
||||
EWOULDBLOCK,
|
||||
#define EWOULDBLOCK EWOULDBLOCK
|
||||
EPROTONOSUPPORT,
|
||||
#define EPROTONOSUPPORT EPROTONOSUPPORT
|
||||
EDEADLK,
|
||||
|
@ -158,3 +156,5 @@ enum ErrnoCode {
|
|||
EMAXERRNO,
|
||||
#define EMAXERRNO EMAXERRNO
|
||||
};
|
||||
|
||||
#define EWOULDBLOCK EAGAIN
|
||||
|
|
|
@ -338,7 +338,6 @@ const char* const sys_errlist[] = {
|
|||
"No message",
|
||||
"No protocol option",
|
||||
"Not connected",
|
||||
"Operation would block",
|
||||
"Protocol not supported",
|
||||
"Resource deadlock would occur",
|
||||
"Timed out",
|
||||
|
|
Loading…
Reference in a new issue