Skip to content

Commit

Permalink
LibC: Add missing macro definitions for errno codes
Browse files Browse the repository at this point in the history
  • Loading branch information
circl-lastname authored and bgianfo committed May 8, 2022
1 parent 739d870 commit d794861
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Userland/Libraries/LibC/errno_codes.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <Kernel/API/POSIX/errno.h>

// NOTE: You can't define with a macro, so these have to be duplicated.
#define ESUCCESS ESUCCESS
#define EPERM EPERM
#define ENOENT ENOENT
#define ESRCH ESRCH
Expand Down Expand Up @@ -74,8 +75,8 @@
#define ENOTCONN ENOTCONN
#define ESHUTDOWN ESHUTDOWN
#define ETOOMANYREFS ETOOMANYREFS
#define EPROTONOSUPPORT EPROTONOSUPPORT
#define ESOCKTNOSUPPORT ESOCKTNOSUPPORT
#define EPROTONOSUPPORT EPROTONOSUPPORT
#define EDEADLK EDEADLK
#define ETIMEDOUT ETIMEDOUT
#define EPROTOTYPE EPROTOTYPE
Expand All @@ -84,10 +85,12 @@
#define EPROTO EPROTO
#define ENOTSUP ENOTSUP
#define EPFNOSUPPORT EPFNOSUPPORT
#define EDQUOT EDQUOT
#define EDIRINTOSELF EDIRINTOSELF
#define EDQUOT EDQUOT
#define ENOTRECOVERABLE ENOTRECOVERABLE
#define ECANCELED ECANCELED
#define EPROMISEVIOLATION EPROMISEVIOLATION
#define ESTALE ESTALE
#define EMAXERRNO EMAXERRNO

#define EWOULDBLOCK EAGAIN
Expand Down

0 comments on commit d794861

Please sign in to comment.