]> git.proxmox.com Git - wasi-libc.git/blob - libc-bottom-half/sources/__wasilibc_unlinkat.c
New upstream version 0.0~git20221206.8b7148f
[wasi-libc.git] / libc-bottom-half / sources / __wasilibc_unlinkat.c
1 #include <wasi/api.h>
2 #include <wasi/libc.h>
3 #include <errno.h>
4
5 int __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 }