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