HardenedBSD/usr.bin/truss
Brian Somers 0cf21b4f58 Add a -s flag for the same functionality as strace. Introduce a Name
type which is a String type that has no -s limitations applied to it.
Change most Strings in the code to Names and add a few extra syscalls,
namely munmap, read, rename and symlink.  This was enough to facilitate
following file descriptor allocations in the code more easily and
getting a hint at what's being read/written from/to files.  More
syscalls should really be added.

While here, fix an off-by-one bug in the buffer truncation code and
add a fflush so that truss's output reflects the syscall that the
program is stuck in.

Sponsored by:	Sophos/Activestate
MFC after:	2 weeks
2006-01-02 08:36:25 +00:00
..
alpha-fbsd.c Add a -s flag for the same functionality as strace. Introduce a Name 2006-01-02 08:36:25 +00:00
amd64-fbsd32.c Add a -s flag for the same functionality as strace. Introduce a Name 2006-01-02 08:36:25 +00:00
amd64-fbsd.c Add a -s flag for the same functionality as strace. Introduce a Name 2006-01-02 08:36:25 +00:00
amd64-linux32.c Add a -s flag for the same functionality as strace. Introduce a Name 2006-01-02 08:36:25 +00:00
extern.h
i386-fbsd.c Add a -s flag for the same functionality as strace. Introduce a Name 2006-01-02 08:36:25 +00:00
i386-linux.c Add a -s flag for the same functionality as strace. Introduce a Name 2006-01-02 08:36:25 +00:00
i386.conf
i386linux.conf
ia64-fbsd.c Add a -s flag for the same functionality as strace. Introduce a Name 2006-01-02 08:36:25 +00:00
main.c Add a -s flag for the same functionality as strace. Introduce a Name 2006-01-02 08:36:25 +00:00
Makefile
setup.c
sparc64-fbsd.c Add a -s flag for the same functionality as strace. Introduce a Name 2006-01-02 08:36:25 +00:00
syscall.h Add a -s flag for the same functionality as strace. Introduce a Name 2006-01-02 08:36:25 +00:00
syscalls.c Add a -s flag for the same functionality as strace. Introduce a Name 2006-01-02 08:36:25 +00:00
truss.1 Add a -s flag for the same functionality as strace. Introduce a Name 2006-01-02 08:36:25 +00:00
truss.h Add a -s flag for the same functionality as strace. Introduce a Name 2006-01-02 08:36:25 +00:00