Use fdlength() instead of lseek(SEEK_END).
1 file changed