6 int remove(const char *path)
9 int r = __syscall(SYS_unlink, path);
11 int r = __syscall(SYS_unlinkat, AT_FDCWD, path, 0);
14 if (r==-EISDIR) r = __syscall(SYS_rmdir, path);
16 if (r==-EISDIR) r = __syscall(SYS_unlinkat, AT_FDCWD, path, AT_REMOVEDIR);
18 return __syscall_ret(r);