Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Nov 2007 12:16:06 +0100
From:      Max Laier <max@love2party.net>
To:        freebsd-hackers@freebsd.org
Cc:        Yuri <yuri@rawbw.com>, Robert Watson <rwatson@freebsd.org>
Subject:   Re: How to get filename of an open file descriptor
Message-ID:  <200711141216.20168.max@love2party.net>
In-Reply-To: <20071114104157.D92502@fledge.watson.org>
References:  <1194896018.4738aa922f776@webmail.rawbw.com> <1194980181.4739f355a32bc@webmail.rawbw.com> <20071114104157.D92502@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <rwatson@FreeBSD.org>:
> >> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711141216.20168.max>