Linux Audio
Check our new training course
Embedded Linux Audio
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 }