shithub: unionfs

ref: afe34cba9ac5b1721293ff06a5b36deb8d1a37b3
dir: /unionfs.h/

View raw version
typedef struct Branch Branch;
typedef struct FILE FILE;
typedef struct Mtpt Mtpt;

struct Branch {
	char *root;
	int create;
};

struct FILE {
	Dir;
	String *realpath;
	String *path;

	int fd;
	Mtpt *mtpt;
	Dir *dirs;
	long ndirs;
};

struct Mtpt {
	char *path;
	Mtpt *next;
};

void usage(void);
Qid qencode(Dir*);
char *mkpath(char*, ...);
void *emalloc(ulong);
char *estrdup(char*);