added file removal capability to xmem fs

This commit is contained in:
nvt-se 2008-11-30 22:42:40 +00:00
parent 33bf01534c
commit 8c608efea4

View File

@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
* $Id: cfs-xmem.c,v 1.9 2008/11/24 10:56:55 nvt-se Exp $
* $Id: cfs-xmem.c,v 1.10 2008/11/30 22:42:40 nvt-se Exp $
*/
#include "cfs/cfs.h"
@ -150,7 +150,11 @@ cfs_seek(int f, unsigned int o)
int
cfs_remove(const char *name)
{
return -1;
file.flag = FLAG_FILE_CLOSED;
file.fileptr = 0;
file.filesize = 0;
xmem_erase(CFS_XMEM_SIZE, CFS_XMEM_OFFSET);
return 0;
}
/*---------------------------------------------------------------------------*/
int