diff options
Diffstat (limited to 'src/libfs/create.c')
-rw-r--r-- | src/libfs/create.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/libfs/create.c b/src/libfs/create.c deleted file mode 100644 index ef52a2a8..00000000 --- a/src/libfs/create.c +++ /dev/null @@ -1,25 +0,0 @@ -#include <u.h> -#include <libc.h> -#include <fcall.h> -#include <fs.h> -#include "fsimpl.h" - -Fid* -fscreate(Fsys *fs, char *name, int mode, ulong perm) -{ - Fid *fid; - Fcall tx, rx; - - if((fid = fswalk(fs->root, name)) == nil) - return nil; - tx.type = Tcreate; - tx.fid = fid->fid; - tx.mode = mode; - tx.perm = perm; - if(fsrpc(fs, &tx, &rx, 0) < 0){ - fsclose(fid); - return nil; - } - fid->mode = mode; - return fid; -} |