From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 18 01:38:19 2007 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A48A16A419; Sun, 18 Nov 2007 01:38:19 +0000 (UTC) (envelope-from skip@menantico.com) Received: from vms173001pub.verizon.net (vms173001pub.verizon.net [206.46.173.1]) by mx1.freebsd.org (Postfix) with ESMTP id 6833513C455; Sun, 18 Nov 2007 01:38:16 +0000 (UTC) (envelope-from skip@menantico.com) Received: from mx.menantico.com ([71.188.11.206]) by vms173001.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JRO00LGX91X0AD4@vms173001.mailsrvcs.net>; Sat, 17 Nov 2007 16:27:34 -0600 (CST) Date: Sat, 17 Nov 2007 17:39:10 -0500 From: Skip Ford In-reply-to: <20071117215003.U53707@maildrop.int.zabbadoz.net> To: "Bjoern A. Zeeb" Mail-followup-to: "Bjoern A. Zeeb" , Robert Watson , Yuri , freebsd-hackers@FreeBSD.org Message-id: <20071117223910.GD813@menantico.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline References: <1194905125.4738ce25a968c@webmail.rawbw.com> <20071112222557.N81124@fledge.watson.org> <1194980181.4739f355a32bc@webmail.rawbw.com> <20071114104157.D92502@fledge.watson.org> <20071114112304.GA835@menantico.com> <20071114121812.U2025@fledge.watson.org> <20071114132743.GB835@menantico.com> <20071116144356.S10677@fledge.watson.org> <20071116212342.GD835@menantico.com> <20071117215003.U53707@maildrop.int.zabbadoz.net> User-Agent: Mutt/1.4.2.3i Cc: Yuri , Robert Watson , freebsd-hackers@FreeBSD.org Subject: Re: How to get filename of an open file descriptor X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Nov 2007 01:38:19 -0000 Bjoern A. Zeeb wrote: > On Fri, 16 Nov 2007, Skip Ford wrote: > > >How about renaming procstat(1) to proc(1), rolling up all of > > calling it proc(1), I think, is actually not a good idea either. That > is way more confusing for people who still think about /proc and do > not know the difference between (1) or (4). > > I like the procstat as it aligns well with other things like > fstat netstat sockstat systat vmstat gstat iostat pmcstat ... > > I admit we also have some *info tools like ffsinfo/diskinfo/rpcinfo/.. > but ``pinfo'' seems to better fit the *stat category of tools;-) > > I am not able to find anything but a simple "C wrapper" for > /proc/*/stat for linux on the web easily (which I suppose could as well > be a sh skript) and cannot even find something like procstat on the > linux machines I have access to. But there seems to be a procinfo that > seems to as well extract information from /proc/ on linux. So having > pinfo or procinfo might more confuse people to expect something > differently and even worse might mean to be the same tool with > compatible command line. > > While thinking we should try to aling with other OSes and not confuse > users coming from non-BSD worlds, procstat to mee seems to be the > thing that would best fit for our tree. I don't mind the name procstat(1), I just think we already have one that happens to be abbreviated ps(1) instead of being spelled out. If we end up with hardlinks for a proc tool family of utilities, users will be pointed to the actual tool they need rather than proc(1) so I don't think new user confusion would be that great. But, the same argument also really nullifies my argument for the name as well. If we have hardlinks, I care much less about the name of the base utility since it won't be used everyday. With hardlinks, pinfo(1), proc(1), and procstat(1) are all fine with me. The OP in this thread would then just use pfiles(1) to get a list of open files, same as Solaris, no matter what we call it. It would be interesting to know for sure, though, if Solaris uses hardlinks and, if so, what their utility is called. -- Skip