Ver Fonte

Kernel+LibC: Add ECANCELED errno value

This is needed for clangd to compile.
Daniel Bertalan há 3 anos atrás
pai
commit
e37dbee017
2 ficheiros alterados com 2 adições e 0 exclusões
  1. 1 0
      Kernel/API/POSIX/errno.h
  2. 1 0
      Userland/Libraries/LibC/errno_codes.h

+ 1 - 0
Kernel/API/POSIX/errno.h

@@ -88,6 +88,7 @@
     E(EDIRINTOSELF, "Cannot make directory a subdirectory of itself") \
     E(EDIRINTOSELF, "Cannot make directory a subdirectory of itself") \
     E(EDQUOT, "Quota exceeded")                                       \
     E(EDQUOT, "Quota exceeded")                                       \
     E(ENOTRECOVERABLE, "State not recoverable")                       \
     E(ENOTRECOVERABLE, "State not recoverable")                       \
+    E(ECANCELED, "Operation cancelled")                               \
     E(EMAXERRNO, "The highest errno +1 :^)")
     E(EMAXERRNO, "The highest errno +1 :^)")
 
 
 enum ErrnoCode {
 enum ErrnoCode {

+ 1 - 0
Userland/Libraries/LibC/errno_codes.h

@@ -88,6 +88,7 @@
 #define EDQUOT EDQUOT
 #define EDQUOT EDQUOT
 #define EDIRINTOSELF EDIRINTOSELF
 #define EDIRINTOSELF EDIRINTOSELF
 #define ENOTRECOVERABLE ENOTRECOVERABLE
 #define ENOTRECOVERABLE ENOTRECOVERABLE
+#define ECANCELED ECANCELED
 #define EMAXERRNO EMAXERRNO
 #define EMAXERRNO EMAXERRNO
 
 
 #define EWOULDBLOCK EAGAIN
 #define EWOULDBLOCK EAGAIN