>This looks like a job for the stat() system call. (Sys V) It's not. He doesn't want to know how big the file he's copying is, he wants to know how much room there is on some file system....