blob: e147ba251440d8e04d8585604c8190891b1643ac [file] [log] [blame]
#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;
}