aboutsummaryrefslogtreecommitdiff
path: root/src/lib9pclient/remove.c
blob: 4f0e85c8ae686e9d86f9282d875e64df140f253a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* 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);
}