X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2F__stdio_close.c;h=79452bdb6498a18eea555568a16d0333ac8ad06d;hb=21a172dd36cae7a08492fd3a7500d7bf0daee13e;hp=9f7ee18c23fa98837aa44f49b2d58ecef8b3e4a6;hpb=aa398f56fa398f2202b04e82c67f822f3233786f;p=musl 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)); }