blob: 6825ffc8359a557790d278c8827061b9ed18564a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#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
}
|