projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add legacy sys/ttydefaults.h header
[oweals/musl.git]
/
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
int r = syscall(SYS_unlink, path);
8
return (r && errno == EISDIR) ? syscall(SYS_rmdir, path) : r;
9
}