From owner-cvs-src@FreeBSD.ORG Mon Jan 2 08:36:27 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6952C16A41F; Mon, 2 Jan 2006 08:36:27 +0000 (GMT) (envelope-from brian@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB9D743D5F; Mon, 2 Jan 2006 08:36:26 +0000 (GMT) (envelope-from brian@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k028aQ1e043153; Mon, 2 Jan 2006 08:36:26 GMT (envelope-from brian@repoman.freebsd.org) Received: (from brian@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k028aQle043152; Mon, 2 Jan 2006 08:36:26 GMT (envelope-from brian) Message-Id: <200601020836.k028aQle043152@repoman.freebsd.org> From: Brian Somers Date: Mon, 2 Jan 2006 08:36:25 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: 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 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2006 08:36:27 -0000 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