From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 14 11:29:31 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 304CF16A46C; Wed, 14 Nov 2007 11:29:31 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.183]) by mx1.freebsd.org (Postfix) with ESMTP id 25E3713C461; Wed, 14 Nov 2007 11:29:30 +0000 (UTC) (envelope-from max@love2party.net) Received: from amd64.laiers.local (dslb-088-066-048-197.pools.arcor-ip.net [88.66.48.197]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis) id 0ML31I-1IsGEJ2S57-0003qv; Wed, 14 Nov 2007 12:16:29 +0100 From: Max Laier Organization: FreeBSD To: freebsd-hackers@freebsd.org Date: Wed, 14 Nov 2007 12:16:06 +0100 User-Agent: KMail/1.9.7 References: <1194896018.4738aa922f776@webmail.rawbw.com> <1194980181.4739f355a32bc@webmail.rawbw.com> <20071114104157.D92502@fledge.watson.org> In-Reply-To: <20071114104157.D92502@fledge.watson.org> X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4637908.HIfKJHcbca"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200711141216.20168.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1+bX9q8d0wQlZZHFVH07WQU/ydmzNG/ARh2Ih7 FHbMFWtgoPkVraagNWgmzSW2nYtOsuekrf9FZHxMhw/zprkG8O jKGq+fTN/5JggN4ckA6q/BLmL0p+GDHm+8lIcAg1OY= Cc: Yuri , Robert Watson 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: Wed, 14 Nov 2007 11:29:31 -0000 --nextPart4637908.HIfKJHcbca Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 14 November 2007, Robert Watson wrote: > On Tue, 13 Nov 2007, Yuri wrote: > > Thank you for letting me know about this new feature procstat. > > > > But is there any workaround in 6.3? I need to port one package that > > needs to lookup file names by FDs to the current FreeBSD and need > > some solution now. I'm not completely certain what you are looking for, but doesn't lsof do=20 just that? > If the port uses a script to extract the data, a tool like lsof may do > the trick. However, I'm not sure there are any native APIs to query > that data "as shipped" in 6.3. Once I've had some reasonable feedback > on procstat(1), I'll merge it into CVS and start it on the MFC route, > but 6.3 is almost certainly too soon for it to ship as part of that > release. I don't know if there will be a 6.4 or not, but I would > anticipate procstat(1) appearing in 7.1, and 6-STABLE if there are > requests. procstat(1) mostly relies on existing sysctls, and adds two > new ones for the purposes of exporting the file descriptor and VM > information only, so it is a fairly straight forward MFC. > > Robert N M Watson > Computer Laboratory > University of Cambridge > > > Yuri > > > > Quoting Robert Watson : > >> On Mon, 12 Nov 2007, Yuri wrote: > >>> Thank you for your response. > >>> > >>> I attempted to compile procstat but procstat.h seems to be missing > >>> in > >> > >> tgz. > >> > >> Yuri, > >> > >> Indeed -- looks like I forgot to p4 add on my development box. I've > >> updated > >> > >> the tarball to now include procstat.h. If there are any other > >> problems, do > >> > >> let me know. > >> > >> Robert N M Watson > >> Computer Laboratory > >> University of Cambridge > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart4637908.HIfKJHcbca 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) iD8DBQBHOtkEXyyEoT62BG0RAsf4AJ9+BDb9NrPZpr4pV9dwZW/jfcxChACfRTJD TmRqdpBO9khUhiBUqyt46Jw= =61Gv -----END PGP SIGNATURE----- --nextPart4637908.HIfKJHcbca--