Re: filename or full path from file descriptor or inode
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com -- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert