more
This commit is contained in:
parent
56e3c29015
commit
8612247402
4 changed files with 54 additions and 1 deletions
19
src/lib9pclient/remove.c
Normal file
19
src/lib9pclient/remove.c
Normal file
|
|
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue