From 5551e51d2b9df4e289ea3cb1350db4d5f5444df2 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 23 Jul 2006 03:02:03 +0000 Subject: 9pfuse --- src/cmd/9pfuse/a.h | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/cmd/9pfuse/a.h (limited to 'src/cmd/9pfuse/a.h') diff --git a/src/cmd/9pfuse/a.h b/src/cmd/9pfuse/a.h new file mode 100644 index 00000000..c6e5b020 --- /dev/null +++ b/src/cmd/9pfuse/a.h @@ -0,0 +1,51 @@ +#include +#include +#include +#include +#include +#include +#include +#include <9pclient.h> +#include "fuse_kernel.h" + +/* Somehow the FUSE guys forgot to define this one! */ +struct fuse_create_out { + struct fuse_entry_out e; + struct fuse_open_out o; +}; + +typedef struct FuseMsg FuseMsg; +struct FuseMsg +{ + FuseMsg *next; + uchar *buf; + int nbuf; + struct fuse_in_header *hdr; /* = buf */ + void *tx; /* = hdr+1 */ +}; + +extern int debug; + +extern int fusefd; +extern int fuseeof; +extern int fusebufsize; +extern int fusemaxwrite; +extern FuseMsg *fusemsglist; +extern char *fusemtpt; + +void freefusemsg(FuseMsg *m); +int fusefmt(Fmt*); +void initfuse(char *mtpt); +FuseMsg* readfusemsg(void); +void replyfuse(FuseMsg *m, void *arg, int narg); +void replyfuseerrno(FuseMsg *m, int e); +void replyfuseerrstr(FuseMsg*); +void request9p(Fcall *tx); + +void* emalloc(size_t n); +void* erealloc(void *p, size_t n); +char* estrdup(char *p); + +int errstr2errno(void); +void unmountatexit(void); + -- cgit v1.2.3