1.文件IO的四个函数 一些术语: 不带缓冲的I/O: 每个read和write都调用内核中的一个系统调用. 文件描述符: 一个非负整数,对内核而言,所以打开的文件都通过文件描述符引用. ①打开或创建一个文件 open(char *path, flag, mode) 在fcntl.h文件中声明 int openat(int fd, const char *path, int flag......) open 与 openat的区别:①路径,path指定是绝对路径时open==openat:ope…