]> git.proxmox.com Git - wasi-libc.git/blame - libc-bottom-half/sources/__wasilibc_rmdirat.c
threads: enable access to `pthread_attr_get` functions (#357)
[wasi-libc.git] / libc-bottom-half / sources / __wasilibc_rmdirat.c
CommitLineData
446cb3f1 1#include <wasi/api.h>
7ba6adfc 2#include <wasi/libc.h>
320054e8 3#include <errno.h>
320054e8 4
f2e779e5 5int __wasilibc_nocwd___wasilibc_rmdirat(int fd, const char *path) {
2b7e73ae 6 __wasi_errno_t error = __wasi_path_remove_directory(fd, path);
320054e8 7 if (error != 0) {
099caae3 8 errno = error;
320054e8
DG
9 return -1;
10 }
11 return 0;
12}