2.9
[glibc/nacl-glibc.git] / nptl / sysdeps / unix / sysv / linux / sparc / aio_cancel.c
blob0d6da829193563d6c0cc85507766b66ef149caa6
1 #include <shlib-compat.h>
3 #define aio_cancel64 XXX
4 #include <aio.h>
5 #undef aio_cancel64
6 #include <errno.h>
8 extern __typeof (aio_cancel) __new_aio_cancel;
9 extern __typeof (aio_cancel) __old_aio_cancel;
11 #define aio_cancel __new_aio_cancel
13 #include <sysdeps/pthread/aio_cancel.c>
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);
20 #if SHLIB_COMPAT (librt, GLIBC_2_1, GLIBC_2_3)
22 #undef ECANCELED
23 #define aio_cancel __old_aio_cancel
24 #define ECANCELED 125
26 #include <sysdeps/pthread/aio_cancel.c>
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);
33 #endif