You can't (at least not allways):
fd = open(filename)
unlink(filename);
/* file has no filename here ... */
close(fd);
Gerd
-- Gerd Knorr <kraxel@cs.tu-berlin.de> | http://www.cs.tu-berlin.de/~kraxel/Smart data structures and dump code works alot better than the other way around.