I know I can get file size of FILE * by fseek, but what I have is just a INT fd. How can I get file size in this case?