rsc | d3df308 | 2003-12-06 18:08:52 +0000 | [diff] [blame] | 1 | /* Copyright (C) 2003 Russ Cox, Massachusetts Institute of Technology */ |
2 | /* See COPYRIGHT */ | ||||
3 | |||||
4 | #include <u.h> | ||||
5 | #include <libc.h> | ||||
6 | #include <fcall.h> | ||||
7 | #include <fs.h> | ||||
8 | #include "fsimpl.h" | ||||
9 | |||||
10 | static void | ||||
11 | fidclunk(Fid *fid) | ||||
12 | { | ||||
13 | Fcall tx, rx; | ||||
14 | |||||
15 | tx.type = Tclunk; | ||||
16 | tx.fid = fid->fid; | ||||
17 | fsrpc(fid->fs, &tx, &rx, 0); | ||||
18 | _fsputfid(fid); | ||||
19 | } | ||||
20 | |||||
21 | void | ||||
22 | fsclose(Fid *fid) | ||||
23 | { | ||||
24 | /* maybe someday there will be a ref count */ | ||||
25 | fidclunk(fid); | ||||
26 | } |