From fa34746870e98d0d8e255b52582528f41ef31f26 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Sun, 12 Jul 2026 14:56:15 -0400 Subject: [PATCH] errno: add EROFS Signed-off-by: Michael Shaw --- include/lib/errno.h | 1 + lib/errno.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/lib/errno.h b/include/lib/errno.h index 6517e2f..dfe07e2 100644 --- a/include/lib/errno.h +++ b/include/lib/errno.h @@ -18,6 +18,7 @@ #define ENOSYS 13 #define ESYSCALLBLK 14 #define ENAMETOOLONG 15 +#define EROFS 16 #ifndef __ASM__ diff --git a/lib/errno.c b/lib/errno.c index eee5421..2542ead 100644 --- a/lib/errno.c +++ b/lib/errno.c @@ -18,6 +18,7 @@ static const char *errno_str[] = { [EBUSY] = "Device or resource busy", [ENOSYS] = "Function not implemented", [ENAMETOOLONG] = "Name too long", + [EROFS] = "Read-only file system", }; const char *strerror(int errnum)