mirror of
https://github.com/fluencelabs/musl
synced 2025-06-23 11:41:57 +00:00
10 lines
192 B
C
10 lines
192 B
C
#include <stdio.h>
|
|
#include <errno.h>
|
|
#include "syscall.h"
|
|
|
|
int remove(const char *path)
|
|
{
|
|
int r = syscall(SYS_unlink, path);
|
|
return (r && errno == EISDIR) ? syscall(SYS_rmdir, path) : r;
|
|
}
|