repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
loongarch64: add new syscall numbers
[musl.git]
/
src
/
unistd
/
rmdir.c
blob
6825ffc8359a557790d278c8827061b9ed18564a
1
#include <unistd.h>
2
#include <fcntl.h>
3
#include
"syscall.h"
4
5
int
rmdir
(
const char
*
path
)
6
{
7
#ifdef SYS_rmdir
8
return
syscall
(
SYS_rmdir
,
path
);
9
#else
10
return
syscall
(
SYS_unlinkat
,
AT_FDCWD
,
path
,
AT_REMOVEDIR
);
11
#endif
12
}