diff options
Diffstat (limited to 'src/lib9pclient/remove.c')
-rw-r--r-- | src/lib9pclient/remove.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib9pclient/remove.c b/src/lib9pclient/remove.c new file mode 100644 index 00000000..1eb77cdc --- /dev/null +++ b/src/lib9pclient/remove.c @@ -0,0 +1,19 @@ +/* Copyright (C) 2003 Russ Cox, Massachusetts Institute of Technology */ +/* See COPYRIGHT */ + +#include <u.h> +#include <libc.h> +#include <fcall.h> +#include <9pclient.h> +#include "fsimpl.h" + +int +fsremove(CFsys *fs, char *name) +{ + CFid *fid; + + if((fid = _fswalk(fs->root, name)) == nil) + return -1; + return fsfremove(fid); +} + |