not in obsd plan 9/linux keep the name as it was opened
think about hardlinks, unlinking and how the kernel only stores the inode # On Fri, May 4, 2012 at 11:44 PM, Alan Corey <[email protected]> wrote: > Is there a way to get the name of a file that's open when all you've got is > a file descriptor? > > I'm working on porting something, that I didn't write. with directories full > of source. B I'm seeing a problem with an ioctl being the wrong type, but I'm > looking at the code where it happens, I can't see what the file descriptor > passed in is pointing to. B Seems like there should be a way. > > B Alan

