特牛生活网

Linux文件操作函数open、read、 write、lseek、ftruncate(linuxC编程篇)_linux ftruncate_栋哥爱做饭的博客-CSDN博客

网友收藏
open函数头文件:#include <sys/types.h>#includ <sys/sta.h>#include<fctnl.h>形式:int open(const char* pathname,int flags);int open(const char* pathname,int flags,mode_t mode);返回值:成功:新打开的文件描述符失败:-1open返回的文件描述符一定是最小的而且没有被使用的功能:打开, 创建, 读写_linux ftruncate
标签:linux ftruncate