blob: aa9d8dcb1c07fdf5a014594f23c6fc5a131be270 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <wasi/api.h>
#include <wasi/libc.h>
#include <errno.h>
#include <unistd.h>
int __wasilibc_fd_renumber(int fd, int newfd) {
__wasi_errno_t error = __wasi_fd_renumber(fd, newfd);
if (error != 0) {
errno = error;
return -1;
}
return 0;
}
|