mirror of
https://github.com/ziglang/zig.git
synced 2025-12-11 08:43:09 +00:00
14 lines
339 B
C
Vendored
14 lines
339 B
C
Vendored
#include <common/errno.h>
|
|
#include <wasi/api.h>
|
|
#include <wasi/libc.h>
|
|
#include <errno.h>
|
|
|
|
int __wasilibc_nocwd___wasilibc_rmdirat(int fd, const char *path) {
|
|
__wasi_errno_t error = __wasi_path_remove_directory(fd, path);
|
|
if (error != 0) {
|
|
errno = errno_fixup_directory(fd, error);
|
|
return -1;
|
|
}
|
|
return 0;
|
|
}
|