diff options
Diffstat (limited to 'src/unistd/close.c')
-rw-r--r-- | src/unistd/close.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/unistd/close.c b/src/unistd/close.c index e8f813d6..2f1eabd7 100644 --- a/src/unistd/close.c +++ b/src/unistd/close.c @@ -3,8 +3,16 @@ #include "syscall.h" #include "libc.h" +static int dummy(int fd) +{ + return fd; +} + +weak_alias(dummy, __aio_close); + int close(int fd) { + fd = __aio_close(fd); int r = __syscall_cp(SYS_close, fd); if (r == -EINTR) r = -EINPROGRESS; return __syscall_ret(r); |