Try the fstat system call. It returns information about a file, given a file descriptor. If you want to see whether two files are identical, check their device and inode number. I don't know how this works under NFS, though. Bernd.