Sign in
cobalt
/
cobalt
/
refs/tags/24.lts.20
/
.
/
third_party
/
musl
/
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
}