1#include <shlib-compat.h>
2
3#define aio_cancel64 XXX
4#include <aio.h>
5#undef aio_cancel64
6#include <errno.h>
7
8extern __typeof (aio_cancel) __new_aio_cancel;
9extern __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
16versioned_symbol (libc, __new_aio_cancel, aio_cancel, GLIBC_2_34);
17versioned_symbol (libc, __new_aio_cancel, aio_cancel64, GLIBC_2_34);
18#if OTHER_SHLIB_COMPAT (librt, GLIBC_2_3, GLIBC_2_34)
19compat_symbol (librt, __new_aio_cancel, aio_cancel, GLIBC_2_3);
20compat_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
32compat_symbol (librt, __old_aio_cancel, aio_cancel, GLIBC_2_1);
33compat_symbol (librt, __old_aio_cancel, aio_cancel64, GLIBC_2_1);
34
35#endif
36

source code of glibc/sysdeps/unix/sysv/linux/sparc/aio_cancel.c