errno: add EROFS

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-12 14:56:15 -04:00
commit fa34746870
2 changed files with 2 additions and 0 deletions

View file

@ -18,6 +18,7 @@
#define ENOSYS 13 #define ENOSYS 13
#define ESYSCALLBLK 14 #define ESYSCALLBLK 14
#define ENAMETOOLONG 15 #define ENAMETOOLONG 15
#define EROFS 16
#ifndef __ASM__ #ifndef __ASM__

View file

@ -18,6 +18,7 @@ static const char *errno_str[] = {
[EBUSY] = "Device or resource busy", [EBUSY] = "Device or resource busy",
[ENOSYS] = "Function not implemented", [ENOSYS] = "Function not implemented",
[ENAMETOOLONG] = "Name too long", [ENAMETOOLONG] = "Name too long",
[EROFS] = "Read-only file system",
}; };
const char *strerror(int errnum) const char *strerror(int errnum)