6
statcheck(uchar *buf, uint nbuf)
13
if(nbuf < STATFIXLEN || nbuf != BIT16SZ + GBIT16(buf))
16
buf += STATFIXLEN - 4 * BIT16SZ;
18
for(i = 0; i < 4; i++){
19
if(buf + BIT16SZ > ebuf)
21
buf += BIT16SZ + GBIT16(buf);
30
static char nullstring[] = "";
33
convM2D(uchar *buf, uint nbuf, Dir *d, char *strs)
45
p += BIT16SZ; /* ignore size */
50
d->qid.type = GBIT8(p);
52
d->qid.vers = GBIT32(p);
54
d->qid.path = GBIT64(p);
62
d->length = GBIT64(p);
65
for(i = 0; i < 4; i++){
66
if(p + BIT16SZ > ebuf)