会将参数fd指定的文件大小改为参数length指定的大小
int ftruncate(int fd, off_t length);
API-文件操作
原文:https://www.cnblogs.com/kernelx/p/14668918.html