⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myfilesys.h

📁 题目:文件系统的模拟实现 目的:深入理解文件系统的实现机制
💻 H
字号:

#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -