This commit is contained in:
rsc 2006-03-19 06:12:00 +00:00
parent 28a8042cec
commit 5af8dd63eb

View file

@ -1,6 +1,6 @@
.TH 9PCLIENT 3 .TH 9PCLIENT 3
.SH NAME .SH NAME
CFid, CFsys, fsinit, fsmount, fsroot, fssetroot, fsunmount, nsinit, nsmount, fsversion, fsauth, fsattach, fsclose, fscreate, fsdirread, fsdirreadall, fsdirstat, fsdirfstat, fsdirwstat, fsdirfwstat, fsopen, nsopen, fsopenfd, fspread, fspwrite, fsread, fsreadn, fsseek, fswrite \- 9P client library CFid, CFsys, fsinit, fsmount, fsroot, fssetroot, fsunmount, nsinit, nsmount, fsversion, fsauth, fsattach, fsclose, fscreate, fsremove, fsfremove, fsaccess, fsdirread, fsdirreadall, fsdirstat, fsdirfstat, fsdirwstat, fsdirfwstat, fsopen, nsopen, fsopenfd, fspread, fspwrite, fsread, fsreadn, fsseek, fswrite, fsprint, fsvprint \- 9P client library
.SH SYNOPSIS .SH SYNOPSIS
.B #include <u.h> .B #include <u.h>
.PP .PP
@ -50,6 +50,15 @@ void fsclose(CFid *fid)
CFid* fscreate(CFsys *fs, char *path, int mode, ulong perm) CFid* fscreate(CFsys *fs, char *path, int mode, ulong perm)
.PP .PP
.B .B
int fsremove(CFSys *fs, char *path)
.PP
.B
int fsfremove(CFid *fid)
.PP
.B
int fsaccess(CFsys *fs, char *path, int amode)
.PP
.B
CFid* fsopen(CFsys *fs, char *path, int mode) CFid* fsopen(CFsys *fs, char *path, int mode)
.PP .PP
.B .B
@ -68,6 +77,12 @@ long fsreadn(CFid *fid, void *buf, long n)
long fswrite(CFid *fid, void *buf, long n) long fswrite(CFid *fid, void *buf, long n)
.PP .PP
.B .B
int fsprint(CFid *fid, char *fmt, ...)
.PP
.B
int fsvprint(CFid *fid, char *fmt, ...)
.PP
.B
vlong fsseek(CFid *Fid, vlong n, int type) vlong fsseek(CFid *Fid, vlong n, int type)
.PP .PP
.B .B
@ -276,8 +291,30 @@ repeatedly to obtain exactly
.I n .I n
bytes of data, unless it encounters end-of-file or an error. bytes of data, unless it encounters end-of-file or an error.
.PP .PP
.I Fsaccess
behaves like Unix's
.IR access (2).
.I Fsremove
removes the named path.
.I Fsfremove
removes the path corresponding to an open
.BR CFid* .
.PP
Reading an open a directory returns directory entries encoded as described in Reading an open a directory returns directory entries encoded as described in
.IR stat (9p). .IR stat (9p).
.PP
.I Fsprint
and
.I fsvprint
are like
.I fprint
and
.I vfprint
(see
.IR print (3))
but write to
.BR CFid* s.
.PP
.I Fsdirread .I Fsdirread
calls calls
.I fsread .I fsread