aboutsummaryrefslogtreecommitdiff
path: root/src/lib9pclient/ns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9pclient/ns.c')
-rw-r--r--src/lib9pclient/ns.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib9pclient/ns.c b/src/lib9pclient/ns.c
index 9c86547e..428f7fbb 100644
--- a/src/lib9pclient/ns.c
+++ b/src/lib9pclient/ns.c
@@ -38,3 +38,18 @@ nsmount(char *name, char *aname)
return fs;
}
+
+CFid*
+nsopen(char *name, char *aname, char *fname, int mode)
+{
+ CFsys *fs;
+ CFid *fid;
+
+ fs = nsmount(name, aname);
+ if(fs == nil)
+ return nil;
+ fid = fsopen(fs, fname, mode);
+ fsunmount(fs);
+ return fid;
+}
+