Re: filename or full path from file descriptor or inode
Re: filename or full path from file descriptor or inode
- Subject: Re: filename or full path from file descriptor or inode
- From: Terry Lambert <email@hidden>
- Date: Fri, 20 Jul 2007 19:18:34 -0700
On Jul 20, 2007, at 11:07 AM, David Hoerl wrote:
I am trying to find out why my app has so many file descriptors open
at some point.
Is there a straight forward way to get an ascii string with the
filename and/or path given just a file descriptor? I can fstat the
descriptor, so I can get a inode.
The canonically correct way to do this would be to remember the names
of the files you have opened at the time you opened them.
Alternately, you could use lsof, and it would report the files open
(by name) by your process.
-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden