diff options
Diffstat (limited to 'src/stdio/__stdio_close.c')
-rw-r--r-- | src/stdio/__stdio_close.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/stdio/__stdio_close.c b/src/stdio/__stdio_close.c index 9f7ee18c..79452bdb 100644 --- a/src/stdio/__stdio_close.c +++ b/src/stdio/__stdio_close.c @@ -1,6 +1,13 @@ #include "stdio_impl.h" +static int dummy(int fd) +{ + return fd; +} + +weak_alias(dummy, __aio_close); + int __stdio_close(FILE *f) { - return syscall(SYS_close, f->fd); + return syscall(SYS_close, __aio_close(f->fd)); } |