From dd269e9d5134c74a0c1b6be88c8cbaf290e9389a Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Wed, 2 Oct 2013 23:54:13 +0200 Subject: [PATCH] Add ENOUSER. --- libc/include/errno.h | 1 + libc/string/strerror.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/libc/include/errno.h b/libc/include/errno.h index b221534b..e7886c79 100644 --- a/libc/include/errno.h +++ b/libc/include/errno.h @@ -102,6 +102,7 @@ __BEGIN_DECLS #define ENFILE 82 #define EPROTOTYPE 83 #define ENOLCK 84 +#define ENOUSER 85 #define EOPNOTSUPP ENOTSUP diff --git a/libc/string/strerror.cpp b/libc/string/strerror.cpp index f700a6a4..a7d1f3a8 100644 --- a/libc/string/strerror.cpp +++ b/libc/string/strerror.cpp @@ -103,6 +103,7 @@ extern "C" const char* sortix_strerror(int errnum) case ENFILE: return "Too many open files in system"; case EPROTOTYPE: return "Wrong protocol type for socket"; case ENOLCK: return "No locks available"; + case ENOUSER: return "No such user"; default: return "Unknown error condition"; } }