projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
fc12f7c10578d2f2f05bb2e7a6753dbe626e2ed7
[musl]
/
src
/
stdio
/
remove.c
1
#include <stdio.h>
2
#include <errno.h>
3
#include "syscall.h"
4
5
int remove(const char *path)
6
{
7
return (syscall(SYS_unlink, path) && errno == EISDIR)
8
? syscall(SYS_rmdir, path) : 0;
9
}