This wiki is built in Notion. Here are all the tips you need to contribute.

Universal I/O

也称之为 unbuffered I/O ,与之后的Standard I/O 对照,unbuffered指的是每个read和write都调用系统内核的系统调用。

文件描述符(file descriptor)

open() & openat()

include <fcntl.h>
int open(const char *path, int oflag, .../* mode_t mode */);
int openat(int fd, const char *path, int oflag, .. /* mode_t mode*/);
// Return: 成功 fd ;失败 -1

重要的参数值介绍:

Untitled

Untitled

整体分为三组: