blob: 8b4f6b5ceaf0c92c44fdf3a31193d0ceb12f42c6 (
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_unlinkat(int fd, const char *path) {
__wasi_errno_t error = __wasi_path_unlink_file(fd, path);
if (error != 0) {
errno = error;
return -1;
}
return 0;
}
|