Add 9P2000.u functions
This commit is contained in:
parent
5c7644e080
commit
b7eed2e0e1
1 changed files with 14 additions and 1 deletions
|
|
@ -41,6 +41,9 @@ struct Fcall
|
||||||
ushort nstat; /* Twstat, Rstat */
|
ushort nstat; /* Twstat, Rstat */
|
||||||
uchar *stat; /* Twstat, Rstat */
|
uchar *stat; /* Twstat, Rstat */
|
||||||
int unixfd; /* Ropenfd */
|
int unixfd; /* Ropenfd */
|
||||||
|
|
||||||
|
/* 9P2000.u extensions */
|
||||||
|
int errornum; /* Rerror */
|
||||||
} Fcall;
|
} Fcall;
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -65,6 +68,7 @@ struct Fcall
|
||||||
/* STATFIXLEN includes leading 16-bit count */
|
/* STATFIXLEN includes leading 16-bit count */
|
||||||
/* The count, however, excludes itself; total size is BIT16SZ+count */
|
/* The count, however, excludes itself; total size is BIT16SZ+count */
|
||||||
#define STATFIXLEN (BIT16SZ+QIDSZ+5*BIT16SZ+4*BIT32SZ+1*BIT64SZ) /* amount of fixed length data in a stat buffer */
|
#define STATFIXLEN (BIT16SZ+QIDSZ+5*BIT16SZ+4*BIT32SZ+1*BIT64SZ) /* amount of fixed length data in a stat buffer */
|
||||||
|
#define STATFIXLENU (STATFIXLEN+BIT16SZ+3*BIT32SZ) /* for 9P2000.u */
|
||||||
|
|
||||||
#define NOTAG (ushort)~0U /* Dummy tag */
|
#define NOTAG (ushort)~0U /* Dummy tag */
|
||||||
#define NOFID (u32int)~0U /* Dummy fid */
|
#define NOFID (u32int)~0U /* Dummy fid */
|
||||||
|
|
@ -115,6 +119,15 @@ uint convM2D(uchar*, uint, Dir*, char*);
|
||||||
uint convD2M(Dir*, uchar*, uint);
|
uint convD2M(Dir*, uchar*, uint);
|
||||||
uint sizeD2M(Dir*);
|
uint sizeD2M(Dir*);
|
||||||
|
|
||||||
|
uint convM2Su(uchar*, uint, Fcall*, int);
|
||||||
|
uint convS2Mu(Fcall*, uchar*, uint, int);
|
||||||
|
uint sizeS2Mu(Fcall*, int);
|
||||||
|
|
||||||
|
int statchecku(uchar *abuf, uint nbuf, int);
|
||||||
|
uint convM2Du(uchar*, uint, Dir*, char*, int);
|
||||||
|
uint convD2Mu(Dir*, uchar*, uint, int);
|
||||||
|
uint sizeD2Mu(Dir*, int);
|
||||||
|
|
||||||
int fcallfmt(Fmt*);
|
int fcallfmt(Fmt*);
|
||||||
int dirfmt(Fmt*);
|
int dirfmt(Fmt*);
|
||||||
int dirmodefmt(Fmt*);
|
int dirmodefmt(Fmt*);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue