summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss/Makefile
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-02-23 20:00:55 +0000
committerjhb <jhb@FreeBSD.org>2016-02-23 20:00:55 +0000
commitca284988772507a1b799a619df4b7041a4dc9369 (patch)
tree2e652af1c6fc8f563dbb36930037dca0ed084d27 /usr.bin/truss/Makefile
parentdbabd325530e7767fe427e64ff9bdec867e18af9 (diff)
downloadFreeBSD-src-ca284988772507a1b799a619df4b7041a4dc9369.zip
FreeBSD-src-ca284988772507a1b799a619df4b7041a4dc9369.tar.gz
Add handling for non-native error values to libsysdecode.
Add two new functions, sysdecode_abi_to_freebsd_errno() and sysdecode_freebsd_to_abi_errno(), which convert errno values between the native FreeBSD ABI and other supported ABIs. Note that the mappings are not necessarily perfect meaning in some cases multiple errors in one ABI might map to a single error in another ABI. In that case, the reverse mapping will return one of the errors that maps, but which error is non-deterministic. Change truss to always report the raw error value to the user but use libsysdecode to map it to a native errno value that can be used with strerror() to generate a description. Previously truss reported the "converted" error value. Now the user will always see the exact error value that the application sees. Change kdump to report the truly raw error value to the user. Previously kdump would report the absolute value of the raw error value (so for Linux binaries it didn't output the FreeBSD error value, but the positive value of the Linux error). Now it reports the real (i.e. negative) error value for Linux binaries. Also, use libsysdecode to convert the native FreeBSD error reported in the ktrace record to the raw error used by the ABI. This means that the Linux ABI can now be handled directly in ktrsysret() and removes the need for linux_ktrsysret(). Reviewed by: bdrewery, kib Helpful notes: wblock (manpage) Differential Revision: https://reviews.freebsd.org/D5314
Diffstat (limited to 'usr.bin/truss/Makefile')
-rw-r--r--usr.bin/truss/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/truss/Makefile b/usr.bin/truss/Makefile
index b28098c..7ba4392 100644
--- a/usr.bin/truss/Makefile
+++ b/usr.bin/truss/Makefile
@@ -2,7 +2,7 @@
NO_WERROR=
PROG= truss
-SRCS= cloudabi.c main.c setup.c syscalls.c
+SRCS= main.c setup.c syscalls.c
LIBADD= sysdecode
OpenPOWER on IntegriCloud