tremove.c - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
tremove.c (322B)
---
1 /* Copyright (C) 2003 Russ Cox, Massachusetts Institute of Technology */
2 /* See COPYRIGHT */
3
4 #include <u.h>
5 #include <libc.h>
6 #include <fcall.h>
7 #include <9pclient.h>
8 #include "fsimpl.h"
9
10 int
11 fsremove(CFsys *fs, char *name)
12 {
13 CFid *fid;
14
15 if((fid = fswalk(fs->root, name)) == nil)
16 return -1;
17 return fsfremove(fid);
18 }