Given: FILE *foo; whats a clean way of obtaining the filename assoctiated with foo? An initial thought is stat(fileno(foo)..) to get inode number but then what? Any help is appreciated... thx, dgy