From e37dbee01795c8908e3b698c6c9a7fe2005d114f Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Tue, 28 Dec 2021 10:25:09 +0100 Subject: [PATCH] Kernel+LibC: Add ECANCELED errno value This is needed for clangd to compile. --- Kernel/API/POSIX/errno.h | 1 + Userland/Libraries/LibC/errno_codes.h | 1 + 2 files changed, 2 insertions(+) diff --git a/Kernel/API/POSIX/errno.h b/Kernel/API/POSIX/errno.h index 65a8d74c1e..1b9235f5e9 100644 --- a/Kernel/API/POSIX/errno.h +++ b/Kernel/API/POSIX/errno.h @@ -88,6 +88,7 @@ E(EDIRINTOSELF, "Cannot make directory a subdirectory of itself") \ E(EDQUOT, "Quota exceeded") \ E(ENOTRECOVERABLE, "State not recoverable") \ + E(ECANCELED, "Operation cancelled") \ E(EMAXERRNO, "The highest errno +1 :^)") enum ErrnoCode { diff --git a/Userland/Libraries/LibC/errno_codes.h b/Userland/Libraries/LibC/errno_codes.h index f203c68911..cc9b75c7a4 100644 --- a/Userland/Libraries/LibC/errno_codes.h +++ b/Userland/Libraries/LibC/errno_codes.h @@ -88,6 +88,7 @@ #define EDQUOT EDQUOT #define EDIRINTOSELF EDIRINTOSELF #define ENOTRECOVERABLE ENOTRECOVERABLE +#define ECANCELED ECANCELED #define EMAXERRNO EMAXERRNO #define EWOULDBLOCK EAGAIN