Given a file descriptor, is there a way in Linux to find out how many other file descriptors refer to the same file description (i.e. how often dup was called, not how often open was called)?
I do not need to know which ones (they might be even in a different process by now). In fact I'd be quite happy knowing whether there are ANY or if this fd is a unique reference.