1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

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

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;
}