7
pstring(uchar *p, char *s)
27
pqid(uchar *p, Qid *q)
45
return BIT16SZ+strlen(s);
55
n += BIT32SZ; /* size */
56
n += BIT8SZ; /* type */
57
n += BIT16SZ; /* tag */
66
n += stringsz(f->version);
75
n += stringsz(f->uname);
76
n += stringsz(f->aname);
82
n += stringsz(f->uname);
83
n += stringsz(f->aname);
90
for(i=0; i<f->nwname; i++)
91
n += stringsz(f->wname[i]);
102
n += stringsz(f->name);
139
n += stringsz(f->version);
143
n += stringsz(f->ename);
201
convS2M(Fcall *f, uchar *ap, uint nap)
229
p = pstring(p, f->version);
233
PBIT16(p, f->oldtag);
240
p = pstring(p, f->uname);
241
p = pstring(p, f->aname);
249
p = pstring(p, f->uname);
250
p = pstring(p, f->aname);
256
PBIT32(p, f->newfid);
258
PBIT16(p, f->nwname);
260
if(f->nwname > MAXWELEM)
262
for(i=0; i<f->nwname; i++)
263
p = pstring(p, f->wname[i]);
277
p = pstring(p, f->name);
287
PBIT64(p, f->offset);
296
PBIT64(p, f->offset);
300
memmove(p, f->data, f->count);
320
memmove(p, f->stat, f->nstat);
329
p = pstring(p, f->version);
333
p = pstring(p, f->ename);
340
p = pqid(p, &f->aqid);
344
p = pqid(p, &f->qid);
350
if(f->nwqid > MAXWELEM)
352
for(i=0; i<f->nwqid; i++)
353
p = pqid(p, &f->wqid[i]);
359
p = pqid(p, &f->qid);
360
PBIT32(p, f->iounit);
362
if(f->type == Ropenfd){
363
PBIT32(p, f->unixfd);
371
memmove(p, f->data, f->count);
389
memmove(p, f->stat, f->nstat);