tremove.c - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
tremove.c (322B)
---
     1 /* Copyright (C) 2003 Russ Cox, Massachusetts Institute of Technology */
     2 /* See COPYRIGHT */
     3 
     4 #include 
     5 #include 
     6 #include 
     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 }