Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
6651ef1f060738ee1f50cac1fe6d8ce64c359022
/
.
/
src
/
unistd
/
rmdir.c
blob: 6825ffc8359a557790d278c8827061b9ed18564a [
file
] [
log
] [
blame
]
#include
<unistd.h>
#include
<fcntl.h>
#include
"syscall.h"
int
rmdir
(
const
char
*
path
)
{
#ifdef
SYS_rmdir
return
syscall
(
SYS_rmdir
,
path
);
#else
return
syscall
(
SYS_unlinkat
,
AT_FDCWD
,
path
,
AT_REMOVEDIR
);
#endif
}