Add defines for Linux errno values and use them to make linux_errtbl[]

more readable.  While here, add linux_check_errtbl() function to make
sure we don't leave holes.

No objections:	emaste (earlier version)
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D26972
This commit is contained in:
Edward Tomasz Napierala
2020-10-29 14:23:52 +00:00
parent 80d8e42662
commit 1a8577fa68
6 changed files with 302 additions and 97 deletions
+1
View File
@@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$");
#include <sysdecode.h>
#if defined(__aarch64__) || defined(__amd64__) || defined(__i386__)
#include <compat/linux/linux_errno.h>
static
#include <compat/linux/linux_errno.inc>
#endif