From owner-freebsd-current@FreeBSD.ORG Fri Nov 9 01:01:04 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F2DBA79E for ; Fri, 9 Nov 2012 01:01:04 +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 B63278FC19 for ; Fri, 9 Nov 2012 01:01:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=lerami; h=Message-ID:Subject:Cc:To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version; bh=8PoBvfUBPOGrlPu+e+DtoVIVoRQ5one5srBFi77tyDU=; b=A5t8gLmLlG7Sbb6OCROKqIfs69bA4twqDeBNe72+qL5xG1ycYhjLfo00FgsooBIt63iP4BCruLjp9v36Rl4TIQl1WcA0BGG+SeN4ToBsfiIYNgAOcXdV6urIMVo1x5l1Oz1BPTXMRhxJ/PjNmushPaJqrWcot9u8xr0vweqUkJw=; Received: from localhost.lerctr.org ([127.0.0.1]:60162 helo=webmail.lerctr.org) by thebighonker.lerctr.org with esmtpa (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1TWcxz-0002GU-0O; Thu, 08 Nov 2012 19:01:03 -0600 Received: from cpe-72-182-19-162.austin.res.rr.com ([72.182.19.162]) by webmail.lerctr.org with HTTP (HTTP/1.1 POST); Thu, 08 Nov 2012 19:01:02 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 08 Nov 2012 19:01:02 -0600 From: Larry Rosenman To: Subject: sysutils/lsof author: API =?UTF-8?Q?work=3F?= Message-ID: X-Sender: ler@lerctr.org User-Agent: Roundcube Webmail/0.8.2 X-Spam-Score: -3.3 (---) X-LERCTR-Spam-Score: -3.3 (---) X-Spam-Report: SpamScore (-3.3/5.0) ALL_TRUSTED=-1, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.369 X-LERCTR-Spam-Report: SpamScore (-3.3/5.0) ALL_TRUSTED=-1, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.369 Cc: abe@purdue.edu X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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, 09 Nov 2012 01:01:05 -0000 Continuing from my thread with clang questions from Vic Abell for lsof: Larry, Thanks for forwarding the comments. I would be happy to engage anyone interested in improving lsof's interface to FreeBSD. After having participated in three previous efforts -- HP-UX, Linux and MacOS X -- I think I know the pros and cons of kernel dumpster diving versus an API. It's not at all clear to me which approach is the best. As for the mistaken comment about VOP_WRITE (It was VOP_UNLOCK) -- the reason I needed to know is that clang objected to some of the ZFS header files that used that macro/function without any pre-definition of it. My hunch is that will be true of the standard FreeBSD modules that se VOP_UNLOCK if they were to be compiled with clang. So, see if anyone wants to step up and work with me on an lsof API. Regards, Vic Does anyone want to work with Vic? (I can supply a -CURRENT test box that I keep up-to-date).