blob: 7618de9309f322923393aba75d9e003a9c26111d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "stdio_impl.h"
#include "aio_impl.h"
static int dummy(int fd)
{
return fd;
}
weak_alias(dummy, __aio_close);
int __stdio_close(FILE *f)
{
#ifdef __EMSCRIPTEN__
return __wasi_syscall_ret(__wasi_fd_close(__aio_close(f->fd)));
#else
return syscall(SYS_close, __aio_close(f->fd));
#endif
}
|