From 5af8dd63eb193290c1f9c316012eb14d538569f1 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 19 Mar 2006 06:12:00 +0000 Subject: new fns --- man/man3/9pclient.3 | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) (limited to 'man/man3/9pclient.3') 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 .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 -- cgit v1.2.3