diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-06-25 10:30:36 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-06-25 11:55:01 +0200 |
commit | 406fb327fb3b617d6abdd54bed2967c2a9f384c4 (patch) | |
tree | 4a544ce897207407b495b69f24c8406f3ece34f4 /rt/aio_return.c | |
parent | 7ad553b96e2d5b88b79506b9a60c21415072ccaf (diff) | |
download | glibc-406fb327fb3b617d6abdd54bed2967c2a9f384c4.tar.gz glibc-406fb327fb3b617d6abdd54bed2967c2a9f384c4.tar.xz glibc-406fb327fb3b617d6abdd54bed2967c2a9f384c4.zip |
Linux: Move aio_return, aio_return64 into libc
The symbols were moved using scripts/move-symbol-to-libc.py. Reviewed-by: Adhemerva Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'rt/aio_return.c')
-rw-r--r-- | rt/aio_return.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/rt/aio_return.c b/rt/aio_return.c index cc50719dcb..a7a0b141d2 100644 --- a/rt/aio_return.c +++ b/rt/aio_return.c @@ -28,11 +28,22 @@ /* And undo the hack. */ #undef aio_return64 +#include <shlib-compat.h> ssize_t -aio_return (struct aiocb *aiocbp) +__aio_return (struct aiocb *aiocbp) { return aiocbp->__return_value; } -weak_alias (aio_return, aio_return64) +#if PTHREAD_IN_LIBC +versioned_symbol (libc, __aio_return, aio_return, GLIBC_2_34); +versioned_symbol (libc, __aio_return, aio_return64, GLIBC_2_34); +# if OTHER_SHLIB_COMPAT (librt, GLIBC_2_1, GLIBC_2_34) +compat_symbol (librt, __aio_return, aio_return, GLIBC_2_1); +compat_symbol (librt, __aio_return, aio_return64, GLIBC_2_1); +# endif +#else /* !PTHREAD_IN_LIBC */ +strong_alias (__aio_return, aio_return) +weak_alias (__aio_return, aio_return64) +#endif |