shithub: unionfs

ref: 56f73b3e05d5a3866377f1c20dbf2ad35804772d
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*);