blob: b2b906aa68c802f6769e6bf27e0608371c95dd37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <wasi/api.h>
#include <wasi/libc.h>
#include <errno.h>
int __wasilibc_nocwd___wasilibc_rmdirat(int fd, const char *path) {
__wasi_errno_t error = __wasi_path_remove_directory(fd, path);
if (error != 0) {
errno = error;
return -1;
}
return 0;
}
|