consistently return number of bytes read from stdio read backend
[musl] / src / stdio / __stdio_close.c
index 24fef33..79452bd 100644 (file)
@@ -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));
 }