Forgot to actually add remove(3) in the previous commit.

This commit is contained in:
Jonas 'Sortie' Termansen 2011-12-30 01:13:41 +01:00
parent deee5e4335
commit 73a7e8f53d
1 changed files with 11 additions and 0 deletions

View File

@ -191,3 +191,14 @@ FILE* fopen(const char* path, const char* mode)
return fp;
}
int remove(const char* pathname)
{
int result = unlink(pathname);
if ( result && errno == EISDIR )
{
// TODO: rmdir is unimplemented.
// result = rmdir(pathname);
}
return result;
}