From owner-freebsd-current@FreeBSD.ORG Fri Feb 15 10:34:51 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D7E116A421; Fri, 15 Feb 2008 10:34:51 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 0D15C13C4E8; Fri, 15 Feb 2008 10:34:50 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp121-45-16-203.lns10.adl2.internode.on.net [121.45.16.203]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m1FAYeEk016741 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 15 Feb 2008 21:04:40 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-current@freebsd.org Date: Fri, 15 Feb 2008 21:04:26 +1030 User-Agent: KMail/1.9.7 References: <200802122009.m1CK94Y8026959@repoman.freebsd.org> <20080214173850.GB57756@deviant.kiev.zoral.com.ua> <86ve4qzhxe.fsf@ds4.des.no> In-Reply-To: <86ve4qzhxe.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart9944593.PgHdM2iENy"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200802152104.34829.doconnor@gsoft.com.au> X-Spam-Score: -2.212 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: Kostik Belousov , Dag-Erling =?utf-8?q?Sm=C3=B8rgrav?= , current@freebsd.org Subject: Re: [src] cvs commit: src/include unistd.h src/lib/libc/sys readlink.2 src/sys/compat/freebsd32 syscalls.master src/sys/kern syscalls.master vfs_syscalls.c src/sys/sys syscallsubr.h X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Feb 2008 10:34:51 -0000 --nextPart9944593.PgHdM2iENy Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Fri, 15 Feb 2008, Dag-Erling Sm=C3=B8rgrav wrote: > Kostik Belousov writes: > > The slightly contrived example below works on RELENG_7 amd64, > > relevant output from the truss is > > readlink("/usr/X11R6","l",1) =3D 1 (0x1) > > on the CURRENT gives > > readlink("/usr/X11R6","l",1) =3D -4294967295 > > (0xffffffff00000001) [also please note wrong output for the third > > readlink arg; ktrace/kdump works ok]. > > The only advantage truss has is the ability to decode structs > (e.g. struct sockaddr in a connect() call). Apart from that, ktrace > / kdump is superior in every respect. That's a pretty big advantage :) Also, ktrace can't write to a pipe which means you need to run/process=20 rather than 'stream'. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart9944593.PgHdM2iENy Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHtWq65ZPcIHs/zowRApOtAJwLvMdpdZdi5R1Ey/WhqdNgDiIw5gCfXs3j JgXgceuhAkKXmHC40HU/Eyc= =FYeS -----END PGP SIGNATURE----- --nextPart9944593.PgHdM2iENy--