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