Blob
1 /* Copyright (C) 2003 Russ Cox, Massachusetts Institute of Technology */2 /* See COPYRIGHT */4 #include <u.h>5 #include <libc.h>6 #include <fcall.h>7 #include <fs.h>8 #include "fsimpl.h"10 static void11 fidclunk(Fid *fid)12 {13 Fcall tx, rx;15 tx.type = Tclunk;16 tx.fid = fid->fid;17 fsrpc(fid->fs, &tx, &rx, 0);18 _fsputfid(fid);19 }21 void22 fsclose(Fid *fid)23 {24 /* maybe someday there will be a ref count */25 fidclunk(fid);26 }