X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2F__stdio_close.c;h=79452bdb6498a18eea555568a16d0333ac8ad06d;hb=7e816a6487932cbb3cb71d94b609e50e81f4e5bf;hp=24fef33f8d5e8df0078cde072a46fcc5efe8762b;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/stdio/__stdio_close.c b/src/stdio/__stdio_close.c index 24fef33f..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_close(f->fd); + return syscall(SYS_close, __aio_close(f->fd)); }