fs.h
来自「这是一个同样来自贝尔实验室的和UNIX有着渊源的操作系统, 其简洁的设计和实现易」· C头文件 代码 · 共 37 行
H
37 行
typedef struct Nvfile Nvfile;typedef struct Fs Fs;//#include "dosfs.h"//#include "kfs.h"struct Nvfile{ union{// Dosfile dos;// Kfsfile kfs; int walked; }; Fs *fs; char *path;};struct Fs{// union {// Dos dos;// Kfs kfs;// }; int dev; /* device id */ long (*diskread)(Fs*, void*, long); /* disk read routine */ Off (*diskseek)(Fs*, Off); /* disk seek routine */ long (*read)(Nvfile*, void*, long); int (*walk)(Nvfile*, char*); Nvfile root;};extern int chatty;extern int dotini(Fs*);extern int fswalk(Fs*, char*, Nvfile*);extern int fsread(Nvfile*, void*, long);extern int fsboot(Fs*, char*, void*);#define BADPTR(x) ((ulong)x < 0x80000000)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?