From owner-cvs-all@FreeBSD.ORG Sat Jul 17 19:48:49 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD0A216A4CE; Sat, 17 Jul 2004 19:48:49 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A741043D2D; Sat, 17 Jul 2004 19:48:49 +0000 (GMT) (envelope-from alfred@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6HJmnus057750; Sat, 17 Jul 2004 19:48:49 GMT (envelope-from alfred@repoman.freebsd.org) Received: (from alfred@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6HJmnE1057749; Sat, 17 Jul 2004 19:48:49 GMT (envelope-from alfred) Message-Id: <200407171948.i6HJmnE1057749@repoman.freebsd.org> From: Alfred Perlstein Date: Sat, 17 Jul 2004 19:48:49 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/truss alpha-fbsd.c amd64-fbsd.c i386-fbsd.c i386-linux.c ia64-fbsd.c sparc64-fbsd.c syscall.h syscalls.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jul 2004 19:48:49 -0000 alfred 2004-07-17 19:48:49 UTC FreeBSD src repository Modified files: usr.bin/truss alpha-fbsd.c amd64-fbsd.c i386-fbsd.c i386-linux.c ia64-fbsd.c sparc64-fbsd.c syscall.h syscalls.c Log: Support readlink(2) better. Readlink does not nul terminate the result buffer, so we need to format it ourselves. The problem is that the length is stored as the return value from readlink, so we need to pass the return value from our syscall into print_arg. Motivated by: truss garbage on my screen from reading /etc/malloc.conf. Revision Changes Path 1.18 +2 -2 src/usr.bin/truss/alpha-fbsd.c 1.3 +2 -2 src/usr.bin/truss/amd64-fbsd.c 1.22 +2 -2 src/usr.bin/truss/i386-fbsd.c 1.23 +2 -2 src/usr.bin/truss/i386-linux.c 1.7 +2 -2 src/usr.bin/truss/ia64-fbsd.c 1.7 +2 -2 src/usr.bin/truss/sparc64-fbsd.c 1.15 +2 -2 src/usr.bin/truss/syscall.h 1.42 +14 -2 src/usr.bin/truss/syscalls.c