basic/errno-list: remove errno_max() and define ERRNO_MAX as 4095

In Linux kernel code, MAX_ERRNO is defined as 4095.
Here, we use that value for ERRNO_MAX.
This commit is contained in:
Yu Watanabe
2017-11-11 21:28:25 +09:00
parent f332611abe
commit 1850d0d271
2 changed files with 6 additions and 6 deletions
-4
View File
@@ -51,7 +51,3 @@ int errno_from_name(const char *name) {
assert(sc->id > 0);
return sc->id;
}
int errno_max(void) {
return ELEMENTSOF(errno_names);
}