plan9port/src/lib9pclient/remove.c

20 lines
323 B
C
Raw Normal View History

2006-01-27 04:08:41 +00:00
/* 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;
2006-07-23 02:55:34 +00:00
if((fid = fswalk(fs->root, name)) == nil)
2006-01-27 04:08:41 +00:00
return -1;
return fsfremove(fid);
}