1: ftruncate int ftruncate(int fd; off_t length); 将fd指定的文件大小修改为 length的大小。 转载于:https://www.cnblogs.com/gavinwu/p/4107450.html