diff options
-rw-r--r-- | include/errno.h | 1 | ||||
-rw-r--r-- | kern/string.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/errno.h b/include/errno.h index 4bd6ea54..e3c0b6a4 100644 --- a/include/errno.h +++ b/include/errno.h @@ -30,5 +30,6 @@ #define ETIMEDOUT 10 #define ENOENT 11 #define EOVERFLOW 12 +#define EMSGSIZE 13 #endif /* ERRNO_H */ diff --git a/kern/string.c b/kern/string.c index 02cc9570..05c44d29 100644 --- a/kern/string.c +++ b/kern/string.c @@ -258,6 +258,8 @@ strerror(int error) return "no such file or directory"; case EOVERFLOW: return "value too large to be stored in data type"; + case EMSGSIZE: + return "message too long"; default: return "unknown error"; } |