blob: e5a7f1d183ede505dfb9bbc44ba81e2cbf7e2ccc [file] [log] [blame]
Fei Jie506a42f2016-04-25 16:18:22 +08001#include "tests.h"
2#include <sys/syscall.h>
3
4#ifdef __NR_rmdir
5
6# include <stdio.h>
7# include <unistd.h>
8
9int
10main(void)
11{
12 static const char sample[] = "rmdir_sample";
13 long rc = syscall(__NR_rmdir, sample);
14 printf("rmdir(\"%s\") = %ld %s (%m)\n",
15 sample, rc, errno2name());
16
17 puts("+++ exited with 0 +++");
18 return 0;
19}
20
21#else
22
23SKIP_MAIN_UNDEFINED("__NR_rmdir")
24
25#endif