How to get filename of an open file descriptor
Peter Jeremy
peterjeremy at optushome.com.au
Tue Nov 13 02:18:20 PST 2007
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).
--
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an RFC2821-compliant MTA.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20071113/884ef581/attachment.pgp
More information about the freebsd-hackers
mailing list