mirror of
https://github.com/ziglang/zig.git
synced 2025-12-11 16:53:06 +00:00
14 lines
308 B
C
Vendored
14 lines
308 B
C
Vendored
#include <common/errno.h>
|
|
#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;
|
|
}
|