shithub: unionfs

ref: 42ba007a8b005e56033b05fa1385670472f0a339
dir: /unionfs.h/

View raw version
enum {
	Nftab = 32,
	Nftlist = 32,
};

typedef struct Branch Branch;
typedef struct F F;
typedef struct Ftab Ftab;
typedef struct Fstate Fstate;

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

struct F {
	Ref;
	Dir;
	char *path;   /* real path */
	char *fspath; /* internal path */
};

struct Ftab {
	long n, sz;
	F **l;
};

struct Fstate {
	int fd;
	F *file;
	Ftab *ftab;
};

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