]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a -s flag for the same functionality as strace. Introduce a Name
authorbrian <brian@FreeBSD.org>
Mon, 2 Jan 2006 08:36:25 +0000 (08:36 +0000)
committerbrian <brian@FreeBSD.org>
Mon, 2 Jan 2006 08:36:25 +0000 (08:36 +0000)
commit2a326134d0e35fa054037847b1446e8c4b4d61df
treef225c3e75d0afc9fd39abffd240d054d382656bb
parent0cacee70e6bb1e0af3e1d315cdcdad02bac4ba3c
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
13 files changed:
usr.bin/truss/alpha-fbsd.c
usr.bin/truss/amd64-fbsd.c
usr.bin/truss/amd64-fbsd32.c
usr.bin/truss/amd64-linux32.c
usr.bin/truss/i386-fbsd.c
usr.bin/truss/i386-linux.c
usr.bin/truss/ia64-fbsd.c
usr.bin/truss/main.c
usr.bin/truss/sparc64-fbsd.c
usr.bin/truss/syscall.h
usr.bin/truss/syscalls.c
usr.bin/truss/truss.1
usr.bin/truss/truss.h