aboutsummaryrefslogtreecommitdiff
path: root/src/lib9pclient/close.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9pclient/close.c')
-rw-r--r--src/lib9pclient/close.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib9pclient/close.c b/src/lib9pclient/close.c
index 98c6cfb2..9303b17d 100644
--- a/src/lib9pclient/close.c
+++ b/src/lib9pclient/close.c
@@ -27,3 +27,16 @@ fsclose(CFid *fid)
/* maybe someday there will be a ref count */
fidclunk(fid);
}
+
+int
+fsfremove(CFid *fid)
+{
+ int n;
+ Fcall tx, rx;
+
+ tx.type = Tremove;
+ tx.fid = fid->fid;
+ n = _fsrpc(fid->fs, &tx, &rx, 0);
+ _fsputfid(fid);
+ return n;
+}