plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

remove.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 }