mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
* Update wasi-libc to a00bf321eeeca836ee2a0d2d25aeb8524107b8cc It includes a port of emscripten's allocator that performs performs much better than the old one. Most importantly, it includes the prerequisites to later add support for POSIX threads.
12 lines
286 B
C
Vendored
12 lines
286 B
C
Vendored
#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 = error;
|
|
return -1;
|
|
}
|
|
return 0;
|
|
}
|