diff --git a/libc/include/errno.h b/libc/include/errno.h index 84a75fbe..c5f88ecd 100644 --- a/libc/include/errno.h +++ b/libc/include/errno.h @@ -105,6 +105,7 @@ __BEGIN_DECLS #define ENOUSER 85 #define ENOGROUP 86 #define ESIGPENDING 87 +#define ESTALE 88 #define EOPNOTSUPP ENOTSUP diff --git a/libc/string/strerror.cpp b/libc/string/strerror.cpp index 7673abfb..003a0bfa 100644 --- a/libc/string/strerror.cpp +++ b/libc/string/strerror.cpp @@ -106,6 +106,7 @@ extern "C" const char* sortix_strerror(int errnum) case ENOUSER: return "No such user"; case ENOGROUP: return "No such group"; case ESIGPENDING: return "Signal is already pending"; + case ESTALE: return "Stale file handle"; default: return "Unknown error condition"; } }