aboutsummaryrefslogtreecommitdiff
path: root/man/man3/9pclient.3
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-03-19 06:12:00 +0000
committerrsc <devnull@localhost>2006-03-19 06:12:00 +0000
commit5af8dd63eb193290c1f9c316012eb14d538569f1 (patch)
tree939dec93c3c32ae9937905ff41f05acf80facc1c /man/man3/9pclient.3
parent28a8042cec63a2868607328ff20cd44211d75122 (diff)
downloadplan9port-5af8dd63eb193290c1f9c316012eb14d538569f1.tar.gz
plan9port-5af8dd63eb193290c1f9c316012eb14d538569f1.tar.bz2
plan9port-5af8dd63eb193290c1f9c316012eb14d538569f1.zip
new fns
Diffstat (limited to 'man/man3/9pclient.3')
-rw-r--r--man/man3/9pclient.339
1 files changed, 38 insertions, 1 deletions
diff --git a/man/man3/9pclient.3 b/man/man3/9pclient.3
index e96ed16c..9ef37d36 100644
--- a/man/man3/9pclient.3
+++ b/man/man3/9pclient.3
@@ -1,6 +1,6 @@
.TH 9PCLIENT 3
.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
.B #include <u.h>
.PP
@@ -50,6 +50,15 @@ void fsclose(CFid *fid)
CFid* fscreate(CFsys *fs, char *path, int mode, ulong perm)
.PP
.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)
.PP
.B
@@ -68,6 +77,12 @@ long fsreadn(CFid *fid, void *buf, long n)
long fswrite(CFid *fid, void *buf, long n)
.PP
.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)
.PP
.B
@@ -276,8 +291,30 @@ repeatedly to obtain exactly
.I n
bytes of data, unless it encounters end-of-file or an error.
.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
.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
calls
.I fsread