From owner-freebsd-current@FreeBSD.ORG Tue Oct 11 17:55:30 2011 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 968D91065670 for ; Tue, 11 Oct 2011 17:55:30 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (lrosenman-1-pt.tunnel.tserv8.dal1.ipv6.he.net [IPv6:2001:470:1f0e:3ad::2]) by mx1.freebsd.org (Postfix) with ESMTP id 580C28FC15 for ; Tue, 11 Oct 2011 17:55:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=lerami; h=Content-Type:MIME-Version:References:Message-ID:In-Reply-To:Subject:cc:To:Sender:From:Date; bh=W1YVIiYAU/OxvKpkQFVGJWYuV+oUkRJVOUwuJ7IPTjo=; b=ZDADC0Sbh/rUNYc7OiP5R9xrCE8ixNvnoR96wAj4+V+QQBZMXYxKm7XaMxtheKOwptAPAmpJwwmD/AtS+ZBLrPM7WyAhJAhpZ/F7ejSyTSxEvk6CslfBkmjf0i5k+VZgAW/qzqvFWAvdrr2BvIzG0Nt1Zzvo90dY3K7ok9L9uC0=; Received: from cpe-72-182-3-73.austin.res.rr.com ([72.182.3.73]:30900 helo=[192.168.200.4]) by thebighonker.lerctr.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76 (FreeBSD)) (envelope-from ) id 1RDgY3-000HRy-SE; Tue, 11 Oct 2011 12:55:29 -0500 Date: Tue, 11 Oct 2011 12:55:25 -0500 (CDT) From: Larry Rosenman Sender: ler@lrosenman.dyndns.org To: Matt Thyer In-Reply-To: Message-ID: References: <4E942FF1.9000805@FreeBSD.org> <4E9449F2.2000801@FreeBSD.org> <4E944BA5.4080506@lerctr.org> <83FC19FA-BD52-4383-9ABE-708161597B85@mac.com> <589d032a-7b71-4ff1-8adf-f5e49e87696c@email.android.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Score: -2.9 (--) X-LERCTR-Spam-Score: -2.9 (--) X-Spam-Report: SpamScore (-2.9/5.0) ALL_TRUSTED=-1,BAYES_00=-1.9 X-LERCTR-Spam-Report: SpamScore (-2.9/5.0) ALL_TRUSTED=-1,BAYES_00=-1.9 Cc: FreeBSD current Subject: Re: System headers with clang? 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: Tue, 11 Oct 2011 17:55:30 -0000 On Wed, 12 Oct 2011, Matt Thyer wrote: > On Oct 12, 2011 3:25 AM, "Larry Rosenman" wrote: >> >> I didn't say bug for bug, just not generate stupid errors like the ffs > one. >> -- >> Sent from my Android phone with K-9 Mail. Please excuse my brevity. >> >> Chuck Swiger wrote: >> >> On Oct 11, 2011, at 6:59 AM, Larry Rosenman wrote: >>> We will NOT support clang as the compiler for lsof unless the system > headers work the same way as gcc's do. >> >> That apparently means you won't support clang then, because it's not > intended to be (or ever going to be) fully bug-for-bug "compatible" with > GCC. In this case, at least, clang is reporting legitimate issues which > should be fixed, even if folks continue to build lsof with GCC from now > until the end of days. > > The elegant solution would be to avoid this problem altogether by > re-implementation of lsof using interfaces into the kernel that provide the > required information. > > bsdof anyone? > lsof is PORTABLE and available on LOTS of platforms. We have fstat, but lsof can be used between differing OS's. We've also asked for Kernel interfaces before, but no one volunteered to make the KPI for them. I'm sure if someone(tm) (not me, insufficient knowledge) was to make interfaces for ALL that lsof needs, Vic would implement it as it would make his life easier. -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 512-248-2683 E-Mail: ler@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893