📄 fat.h
字号:
#ifndef _FAT_H
#define _FAT_H
#include "filesys.h"
#define SECTOR_SIZE 512
int FATInit(char driveNum);
int FATCreate(UCHAR driveNum, const UCHAR *path);
int FATOpen(UCHAR driveNum, const UCHAR *path, int mode);
int FATClose(int fd);
int FATRead(UCHAR *buf, int len, int fd);
int FATWrite(const UCHAR *buf, int len, int fd);
int FATFlush(int fd);
int FATRemove(UCHAR driveNum, const UCHAR *path);
int FATRename(UCHAR driveNum, const UCHAR *oldname, const UCHAR *newname);
int FATSeek(int fd, long offset, int origin, long *position);
int FATSetAttr(UCHAR driveNum, const UCHAR *path, UCHAR attr);
int FATGetFirstEntry(UCHAR driveNum, const UCHAR *path, UCHAR *name, FILE_INFO *finfo);
int FATGetNextEntry(UCHAR *name, FILE_INFO *finfo);
int FATMkdir(UCHAR driveNum, const UCHAR *path);
int FATRmdir(UCHAR driveNum, const UCHAR *path);
int FATGetFileInfo(UCHAR driveNum, const UCHAR *path, FILE_INFO *finfo);
int FATGetDriveInfo(UCHAR driveNum, DRIVE_INFO *drvInfo);
int FATChdir(UCHAR driveNum, const UCHAR *path);
int FATCwd(UCHAR driveNum, UCHAR **path);
#endif /* _FAT_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -