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

📄 fs.h

📁 这是一个同样来自贝尔实验室的和UNIX有着渊源的操作系统, 其简洁的设计和实现易于我们学习和理解
💻 H
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -