Forgot to actually add remove(3) in the previous commit.
This commit is contained in:
parent
deee5e4335
commit
73a7e8f53d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue