]>
Commit | Line | Data |
---|---|---|
5fe14d96 UD |
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 | ||
0ecb606c | 13 | #include <sysdeps/unix/sysv/linux/kaio_cancel.c> |
5fe14d96 UD |
14 | |
15 | #undef aio_cancel | |
16 | strong_alias (__new_aio_cancel, __new_aio_cancel64); | |
17 | versioned_symbol (librt, __new_aio_cancel, aio_cancel, GLIBC_2_3); | |
18 | versioned_symbol (librt, __new_aio_cancel64, aio_cancel64, GLIBC_2_3); | |
19 | ||
20 | #if SHLIB_COMPAT (librt, GLIBC_2_1, GLIBC_2_3) | |
21 | ||
22 | #undef ECANCELED | |
23 | #define aio_cancel __old_aio_cancel | |
24 | #define ECANCELED 125 | |
25 | ||
0ecb606c | 26 | #include <sysdeps/unix/sysv/linux/kaio_cancel.c> |
5fe14d96 UD |
27 | |
28 | #undef aio_cancel | |
29 | strong_alias (__old_aio_cancel, __old_aio_cancel64); | |
30 | compat_symbol (librt, __old_aio_cancel, aio_cancel, GLIBC_2_1); | |
31 | compat_symbol (librt, __old_aio_cancel64, aio_cancel64, GLIBC_2_1); | |
32 | ||
33 | #endif |