1 #include <unistd.h> 2 #include <errno.h> 3 #include "syscall.h" 4 dummy(int fd)5static int dummy(int fd) 6 { 7 return fd; 8 } 9 10 weak_alias(dummy, __aio_close); 11 close(int fd)12int close(int fd) 13 { 14 fd = __aio_close(fd); 15 int r = __syscall_cp(SYS_close, fd); 16 if (r == -EINTR) r = 0; 17 return __syscall_ret(r); 18 } 19