From 4c0d868bb60961ca1b69fd6f2954988607980604 Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Thu, 18 Nov 2021 22:51:36 +0100 Subject: [PATCH] LibC: Add definition for ENOTRECOVERABLE This is used by the LLVM port. --- Userland/Libraries/LibC/errno_numbers.h | 2 ++ Userland/Libraries/LibC/string.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/Userland/Libraries/LibC/errno_numbers.h b/Userland/Libraries/LibC/errno_numbers.h index 42d908729b..72a312ac94 100644 --- a/Userland/Libraries/LibC/errno_numbers.h +++ b/Userland/Libraries/LibC/errno_numbers.h @@ -155,6 +155,8 @@ enum ErrnoCode { #define EDQUOT EDQUOT EDQUOT, #define EDIRINTOSELF EDIRINTOSELF + ENOTRECOVERABLE, +#define ENOTRECOVERABLE ENOTRECOVERABLE EMAXERRNO, #define EMAXERRNO EMAXERRNO }; diff --git a/Userland/Libraries/LibC/string.cpp b/Userland/Libraries/LibC/string.cpp index 20874fba7e..a1fd1579ca 100644 --- a/Userland/Libraries/LibC/string.cpp +++ b/Userland/Libraries/LibC/string.cpp @@ -339,6 +339,7 @@ const char* const sys_errlist[] = { "Protocol family not supported", "Cannot make directory a subdirectory of itself", "Quota exceeded", + "State not recoverable", "The highest errno +1 :^)", };