summaryrefslogtreecommitdiffstats
path: root/lib/libsysdecode
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2016-03-24 21:47:15 +0000
committered <ed@FreeBSD.org>2016-03-24 21:47:15 +0000
commitdfa2acdc8249aebdb00d24a0bd149b416b407320 (patch)
tree10ebf70906a0df7cec2a498c94c01578f266a88a /lib/libsysdecode
parentdb175d7b4144b44f51ba3dfd898ba9eb674538d8 (diff)
downloadFreeBSD-src-dfa2acdc8249aebdb00d24a0bd149b416b407320.zip
FreeBSD-src-dfa2acdc8249aebdb00d24a0bd149b416b407320.tar.gz
Replace the CloudABI system call table by a machine generated version.
The type definitions and constants that were used by COMPAT_CLOUDABI64 are a literal copy of some headers stored inside of CloudABI's C library, cloudlibc. What is annoying is that we can't make use of cloudlibc's system call list, as the format is completely different and doesn't provide enough information. It had to be synced in manually. We recently decided to solve this (and some other problems) by moving the ABI definitions into a separate file: https://github.com/NuxiNL/cloudabi/blob/master/cloudabi.txt This file is processed by a pile of Python scripts to generate the header files like before, documentation (markdown), but in our case more importantly: a FreeBSD system call table. This change discards the old files in sys/contrib/cloudabi and replaces them by the latest copies, which requires some minor changes here and there. Because cloudabi.txt also enforces consistent names of the system call arguments, we have to patch up a small number of system call implementations to use the new argument names. The new header files can also be included directly in FreeBSD kernel space without needing any includes/defines, so we can now remove cloudabi_syscalldefs.h and cloudabi64_syscalldefs.h. Patch up the sources to include the definitions directly from sys/contrib/cloudabi instead.
Diffstat (limited to 'lib/libsysdecode')
-rw-r--r--lib/libsysdecode/errno.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libsysdecode/errno.c b/lib/libsysdecode/errno.c
index 1e863bb..c21d216 100644
--- a/lib/libsysdecode/errno.c
+++ b/lib/libsysdecode/errno.c
@@ -56,7 +56,7 @@ static int bsd_to_linux_errno[ELAST + 1] = {
#endif
#if defined(__aarch64__) || defined(__amd64__)
-#include <compat/cloudabi/cloudabi_syscalldefs.h>
+#include <contrib/cloudabi/cloudabi_types_common.h>
static const int cloudabi_errno_table[] = {
[CLOUDABI_E2BIG] = E2BIG,
OpenPOWER on IntegriCloud