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