Date: Mon, 2 Jan 2006 08:36:25 +0000 (UTC) From: Brian Somers <brian@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/truss alpha-fbsd.c amd64-fbsd.c i386-fbsd.c i386-linux.c ia64-fbsd.c main.c sparc64-fbsd.c syscall.h syscalls.c truss.1 truss.h Message-ID: <200601020836.k028aQle043152@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
brian 2006-01-02 08:36:25 UTC FreeBSD src repository Modified files: usr.bin/truss alpha-fbsd.c amd64-fbsd.c i386-fbsd.c i386-linux.c ia64-fbsd.c main.c sparc64-fbsd.c syscall.h syscalls.c truss.1 truss.h Log: 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 Revision Changes Path 1.19 +2 -2 src/usr.bin/truss/alpha-fbsd.c 1.4 +2 -2 src/usr.bin/truss/amd64-fbsd.c 1.24 +2 -2 src/usr.bin/truss/i386-fbsd.c 1.24 +2 -2 src/usr.bin/truss/i386-linux.c 1.8 +2 -2 src/usr.bin/truss/ia64-fbsd.c 1.41 +7 -3 src/usr.bin/truss/main.c 1.8 +2 -2 src/usr.bin/truss/sparc64-fbsd.c 1.16 +2 -2 src/usr.bin/truss/syscall.h 1.51 +53 -33 src/usr.bin/truss/syscalls.c 1.20 +12 -0 src/usr.bin/truss/truss.1 1.6 +1 -0 src/usr.bin/truss/truss.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601020836.k028aQle043152>