diff options
Diffstat (limited to 'src/basic/errno-list.h')
-rw-r--r-- | src/basic/errno-list.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/basic/errno-list.h b/src/basic/errno-list.h index 4eec0cc786..4e9b75a7ea 100644 --- a/src/basic/errno-list.h +++ b/src/basic/errno-list.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ #pragma once /*** @@ -19,7 +20,11 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ +/* + * MAX_ERRNO is defined as 4095 in linux/err.h + * We use the same value here. + */ +#define ERRNO_MAX 4095 + const char *errno_to_name(int id); int errno_from_name(const char *name); - -int errno_max(void); |