Fix tracking of unknown syscalls for 'truss -c'.
authorbdrewery <bdrewery@FreeBSD.org>
Mon, 5 Oct 2015 18:08:35 +0000 (18:08 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Mon, 5 Oct 2015 18:08:35 +0000 (18:08 +0000)
commit1a8544448c1321d3c41eba2160e97919d6b25948
tree53a718138dd748ebf142fbbbbb1f554f9aac8dda
parent9dfa64e182dafd1ee7efd651d3ec0028cca55a0c
Fix tracking of unknown syscalls for 'truss -c'.

This is done by changing get_syscall() to either lookup the known syscall
or add it into the list with the default handlers for printing.

This also simplifies some code to not have to check if the syscall variable
is set or NULL.

Reviewed by: jhb
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D3792
usr.bin/truss/main.c
usr.bin/truss/setup.c
usr.bin/truss/syscall.h
usr.bin/truss/syscalls.c