1 | #include <shlib-compat.h> |
2 | |
3 | #define aio_cancel64 XXX |
4 | #include <aio.h> |
5 | #undef aio_cancel64 |
6 | #include <errno.h> |
7 | |
8 | extern __typeof (aio_cancel) __new_aio_cancel; |
9 | extern __typeof (aio_cancel) __old_aio_cancel; |
10 | |
11 | #define __aio_cancel __new_aio_cancel |
12 | |
13 | #include <rt/aio_cancel.c> |
14 | |
15 | #undef __aio_cancel |
16 | versioned_symbol (libc, __new_aio_cancel, aio_cancel, GLIBC_2_34); |
17 | versioned_symbol (libc, __new_aio_cancel, aio_cancel64, GLIBC_2_34); |
18 | #if OTHER_SHLIB_COMPAT (librt, GLIBC_2_3, GLIBC_2_34) |
19 | compat_symbol (librt, __new_aio_cancel, aio_cancel, GLIBC_2_3); |
20 | compat_symbol (librt, __new_aio_cancel, aio_cancel64, GLIBC_2_3); |
21 | #endif |
22 | |
23 | #if OTHER_SHLIB_COMPAT (librt, GLIBC_2_1, GLIBC_2_3) |
24 | |
25 | #undef ECANCELED |
26 | #define __aio_cancel __old_aio_cancel |
27 | #define ECANCELED 125 |
28 | |
29 | #include <rt/aio_cancel.c> |
30 | |
31 | #undef __aio_cancel |
32 | compat_symbol (librt, __old_aio_cancel, aio_cancel, GLIBC_2_1); |
33 | compat_symbol (librt, __old_aio_cancel, aio_cancel64, GLIBC_2_1); |
34 | |
35 | #endif |
36 | |