summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2019-01-10 23:27:59 +0100
committerRichard Braun <rbraun@sceen.net>2019-01-10 23:27:59 +0100
commit7810c4646f16ffaa3256e795c30070fb1df55c64 (patch)
treed62362dea4eb9456926215988ba4d47382046454
parentb87a06581ebdb9435224f72a75a1ed6104a7b428 (diff)
New EOVERFLOW error code
-rw-r--r--include/errno.h3
-rw-r--r--kern/string.c4
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";
}