path: root/src/aio
diff options
authorRich Felker <>2018-09-12 00:28:34 -0400
committerRich Felker <>2018-09-12 14:34:38 -0400
commit63a4c9adf227a6f6a5f7f70f6dc3f8863f846927 (patch)
tree7897385e0678791801bf27710dad3cce93bc6165 /src/aio
parent5ce3737931bb411a8d167356d4d0287b53b0cbdc (diff)
remove spurious inclusion of libc.h for LFS64 ABI aliases
the LFS64 macro was not self-documenting and barely saved any characters. simply use weak_alias directly so that it's clear what's being done, and doesn't depend on a header to provide a strange macro.
Diffstat (limited to 'src/aio')
3 files changed, 8 insertions, 8 deletions
diff --git a/src/aio/aio.c b/src/aio/aio.c
index a5f64432..628e8420 100644
--- a/src/aio/aio.c
+++ b/src/aio/aio.c
@@ -370,9 +370,9 @@ int __aio_close(int fd)
return fd;
+weak_alias(aio_cancel, aio_cancel64);
+weak_alias(aio_error, aio_error64);
+weak_alias(aio_fsync, aio_fsync64);
+weak_alias(aio_read, aio_read64);
+weak_alias(aio_write, aio_write64);
+weak_alias(aio_return, aio_return64);
diff --git a/src/aio/aio_suspend.c b/src/aio/aio_suspend.c
index 0b3abe56..9b24b6af 100644
--- a/src/aio/aio_suspend.c
+++ b/src/aio/aio_suspend.c
@@ -73,4 +73,4 @@ int aio_suspend(const struct aiocb *const cbs[], int cnt, const struct timespec
+weak_alias(aio_suspend, aio_suspend64);
diff --git a/src/aio/lio_listio.c b/src/aio/lio_listio.c
index bd645464..7b6a03d3 100644
--- a/src/aio/lio_listio.c
+++ b/src/aio/lio_listio.c
@@ -140,4 +140,4 @@ int lio_listio(int mode, struct aiocb *restrict const *restrict cbs, int cnt, st
return 0;
+weak_alias(lio_listio, lio_listio64);