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 <9pclient.h>8 #include "fsimpl.h"10 static void11 fidclunk(CFid *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(CFid *fid)23 {24 if(fid == nil)25 return;27 /* maybe someday there will be a ref count */28 fidclunk(fid);29 }