shithub: cursedfs

ref: d370912d4a7fc88b8262269b83aecee30dbf4990
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];