aboutsummaryrefslogtreecommitdiff
path: root/src/libfs/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libfs/open.c')
-rw-r--r--src/libfs/open.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/libfs/open.c b/src/libfs/open.c
deleted file mode 100644
index 458c5dac..00000000
--- a/src/libfs/open.c
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <u.h>
-#include <libc.h>
-#include <fcall.h>
-#include <fs.h>
-#include "fsimpl.h"
-
-Fid*
-fsopen(Fsys *fs, char *name, int mode)
-{
- Fid *fid;
- Fcall tx, rx;
-
- if((fid = fswalk(fs->root, name)) == nil)
- return nil;
- tx.type = Topen;
- tx.fid = fid->fid;
- tx.mode = mode;
- if(fsrpc(fs, &tx, &rx, 0) < 0){
- fsclose(fid);
- return nil;
- }
- fid->mode = mode;
- return fid;
-}