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:
parent
deee5e4335
commit
73a7e8f53d
1 changed files with 11 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue