From owner-freebsd-current@FreeBSD.ORG Fri Feb 15 09:29:38 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BE8F16A417; Fri, 15 Feb 2008 09:29:38 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 00CE513C458; Fri, 15 Feb 2008 09:29:37 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 6969F2084; Fri, 15 Feb 2008 10:29:34 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: -0.3/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id D5A412049; Fri, 15 Feb 2008 10:29:33 +0100 (CET) Received: by ds4.des.no (Postfix, from userid 1001) id B7CFA84485; Fri, 15 Feb 2008 10:29:33 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Kostik Belousov References: <200802122009.m1CK94Y8026959@repoman.freebsd.org> <20080212200911.B49F416A51C@hub.freebsd.org> <20080212204803.GT57756@deviant.kiev.zoral.com.ua> <20080213113530.GB45243@team.vega.ru> <20080214173850.GB57756@deviant.kiev.zoral.com.ua> Date: Fri, 15 Feb 2008 10:29:33 +0100 In-Reply-To: <20080214173850.GB57756@deviant.kiev.zoral.com.ua> (Kostik Belousov's message of "Thu\, 14 Feb 2008 19\:38\:50 +0200") Message-ID: <86ve4qzhxe.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: 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 09:29:38 -0000 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 (0xffff= ffff00000001) > [also please note wrong output for the third readlink arg; ktrace/kdump w= orks > 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. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no