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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user