]> git.proxmox.com Git - wasi-libc.git/blame - libc-bottom-half/sources/__wasilibc_unlinkat.c
Use bulk memory opcodes when possible
[wasi-libc.git] / libc-bottom-half / sources / __wasilibc_unlinkat.c
CommitLineData
320054e8 1#include <common/errno.h>
446cb3f1 2#include <wasi/api.h>
7ba6adfc 3#include <wasi/libc.h>
320054e8 4#include <errno.h>
320054e8 5
f2e779e5 6int __wasilibc_nocwd___wasilibc_unlinkat(int fd, const char *path) {
2b7e73ae 7 __wasi_errno_t error = __wasi_path_unlink_file(fd, path);
320054e8
DG
8 if (error != 0) {
9 errno = error;
10 return -1;
11 }
12 return 0;
13}