特牛生活网

APUE学习笔记--文本IO(系统调用IO)(open、read、write、lseek、close、fileno、fdopen、truncate、ftruncate)_文件操作中etruncate和ereadwirte区别-CSDN博客

网友收藏
  • 链接地址:https://blog.csdn.net/a823837282/article/details/106537563
  • 链接标题:APUE学习笔记--文本IO(系统调用IO)(open、read、write、lseek、close、fileno、fdopen、truncate、ftruncate)_文件操作中etruncate和ereadwirte区别-CSDN博客
  • 所属网站:blog.csdn.net
  • 被收藏次数:6583
前言当前笔记是基于我现在使用的centos6.3系统,各种细节最终以当前使用系统的man手册为准。文本IO的函数位于man手册第二部分,man 2 命令名 打开文本IO帮助文档。open功能描述:打开一个文件或者设备。函数定义:#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>int open(const char *pathname, int flags);.._文件操作中etruncate和ereadwirte区别