Date: Tue, 13 Nov 2007 21:17:43 +1100 From: Peter Jeremy <peterjeremy@optushome.com.au> To: Yuri <yuri@rawbw.com> Cc: freebsd-hackers@freebsd.org Subject: Re: How to get filename of an open file descriptor Message-ID: <20071113101743.GL1188@server.vk2pj.dyndns.org> In-Reply-To: <1194896018.4738aa922f776@webmail.rawbw.com> References: <1194896018.4738aa922f776@webmail.rawbw.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--WYTEVAkct0FjGQmd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 12, 2007 at 11:33:38AM -0800, Yuri wrote: >I am looking for functionality similar to Linux's /proc/<PID>/fd/<FD>. >I need to know what is the file name of an open file descriptor. Note that there is not necessarily a unique (or any) filename associated with a file descriptor. This is an inherent part of the Unix approach to files. You could look at ports/sysutils/lsof or fstat(1). --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an RFC2821-compliant MTA. --WYTEVAkct0FjGQmd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHOXnH/opHv/APuIcRAnJtAJ9WWSBIzDZLGcuyDX5eCb/9HUFcwwCgi4Vm ANVnIcv/Mz4bgeu+0UAeC4c= =V4Ar -----END PGP SIGNATURE----- --WYTEVAkct0FjGQmd--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071113101743.GL1188>