aboutsummaryrefslogtreecommitdiff
path: root/src/aio
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-12 00:28:34 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-12 14:34:38 -0400
commit63a4c9adf227a6f6a5f7f70f6dc3f8863f846927 (patch)
tree7897385e0678791801bf27710dad3cce93bc6165 /src/aio
parent5ce3737931bb411a8d167356d4d0287b53b0cbdc (diff)
downloadmusl-63a4c9adf227a6f6a5f7f70f6dc3f8863f846927.zip
musl-63a4c9adf227a6f6a5f7f70f6dc3f8863f846927.tar.gz
musl-63a4c9adf227a6f6a5f7f70f6dc3f8863f846927.tar.bz2
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')
-rw-r--r--src/aio/aio.c12
-rw-r--r--src/aio/aio_suspend.c2
-rw-r--r--src/aio/lio_listio.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/aio/aio.c b/src/aio/aio.c
index a5f6443..628e842 100644
--- a/src/aio/aio.c
+++ b/src/aio/aio.c
@@ -370,9 +370,9 @@ int __aio_close(int fd)
return fd;
}
-LFS64(aio_cancel);
-LFS64(aio_error);
-LFS64(aio_fsync);
-LFS64(aio_read);
-LFS64(aio_write);
-LFS64(aio_return);
+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 0b3abe5..9b24b6a 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
}
}
-LFS64(aio_suspend);
+weak_alias(aio_suspend, aio_suspend64);
diff --git a/src/aio/lio_listio.c b/src/aio/lio_listio.c
index bd64546..7b6a03d 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;
}
-LFS64(lio_listio);
+weak_alias(lio_listio, lio_listio64);