shithub: cursedfs

ref: 0397462f0ae8a0e097a0004738f870f898e325b4
dir: /fs.h/

View raw version
#define Cmdwidth	1024
#define Ncmd		4
#define Nfiles		2

// Represents a 9p file
typedef struct File9 File9;
struct File9 {
	Ref;
	int		id;		// index in array; qid.path
	char	*name;	// of file
};

// All available files on the 9p fs
extern File9 *files[Nfiles];