Sign in
android
/
platform
/
external
/
musl
/
3da2b5cceae98f5098e62e7865fe6433c1e82775
/
.
/
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
}