From 2a326134d0e35fa054037847b1446e8c4b4d61df Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 2 Jan 2006 08:36:25 +0000 Subject: 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 --- usr.bin/truss/truss.h | 1 + 1 file changed, 1 insertion(+) (limited to 'usr.bin/truss/truss.h') diff --git a/usr.bin/truss/truss.h b/usr.bin/truss/truss.h index 00df4d6..24558ba 100644 --- a/usr.bin/truss/truss.h +++ b/usr.bin/truss/truss.h @@ -37,6 +37,7 @@ struct trussinfo int pid; int flags; int in_fork; + int strsize; FILE *outfile; struct timespec start_time; -- cgit v1.1