myfilesys.h

来自「题目:文件系统的模拟实现 目的:深入理解文件系统的实现机制」· C头文件 代码 · 共 26 行

H
26
字号

#include <fcntl.h>

/*
#define O_CREAT      0x0100    //incompatibility with the fcntl.h       
#define O_RDONLY     0x0000
#define O_WRONLY     0x0001
#define O_RDWR       0x0002
*/

int Open(const char *pathname, int flags, ...);

int Read(int fd, char *buf, unsigned int nbytes);

int Write(int fd, char *buf, unsigned int nbytes);

void List(const char *pathname, int flag);

void mymkdir(const char *pathname);

int SearchDir(const char *pathname);

void Close(int fd);

void Over(void);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?