diff options
Diffstat (limited to 'src/stdio/__stdio_close.c')
-rw-r--r-- | src/stdio/__stdio_close.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/stdio/__stdio_close.c b/src/stdio/__stdio_close.c new file mode 100644 index 0000000..3029132 --- /dev/null +++ b/src/stdio/__stdio_close.c @@ -0,0 +1,14 @@ +#include "stdio_impl.h" +#include "aio_impl.h" + +static int dummy(int fd) +{ + return fd; +} + +weak_alias(dummy, __aio_close); + +int __stdio_close(FILE *f) +{ + return syscall(SYS_close, __aio_close(f->fd)); +} |