From 7810c4646f16ffaa3256e795c30070fb1df55c64 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Thu, 10 Jan 2019 23:27:59 +0100 Subject: New EOVERFLOW error code --- include/errno.h | 3 ++- kern/string.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/errno.h b/include/errno.h index a81bed2d..4bd6ea54 100644 --- a/include/errno.h +++ b/include/errno.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 Richard Braun. + * Copyright (c) 2018-2019 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,5 +29,6 @@ #define ESRCH 9 #define ETIMEDOUT 10 #define ENOENT 11 +#define EOVERFLOW 12 #endif /* ERRNO_H */ diff --git a/kern/string.c b/kern/string.c index ba95f773..02cc9570 100644 --- a/kern/string.c +++ b/kern/string.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2017 Richard Braun. + * Copyright (c) 2012-2019 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -256,6 +256,8 @@ strerror(int error) return "timeout error"; case ENOENT: return "no such file or directory"; + case EOVERFLOW: + return "value too large to be stored in data type"; default: return "unknown error"; } -- cgit v1.2.3