blob: 23388ae3e74836774f8d27b8309836abb03e0ce2 [file] [log] [blame]
rscd3df3082003-12-06 18:08:52 +00001/* 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
10static void
11fidclunk(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
21void
22fsclose(Fid *fid)
23{
24 /* maybe someday there will be a ref count */
25 fidclunk(fid);
26}