I have an int
file descriptor that was opened earlier (via open
) and I need to remove that file.
Do I really have to first get the file name and call remove
?
(e.g. via using the technique in Getting Filename from file descriptor in C)
Or is there some other (linux specific OK) way of doing it solely based on the file descriptor?
I have searched and the best I could find is the above answer.