2003-08-31 18:10:47 +00:00
|
|
|
#include <shlib-compat.h>
|
|
|
|
|
|
|
|
#define aio_cancel64 XXX
|
|
|
|
#include <aio.h>
|
|
|
|
#undef aio_cancel64
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
extern __typeof (aio_cancel) __new_aio_cancel;
|
|
|
|
extern __typeof (aio_cancel) __old_aio_cancel;
|
|
|
|
|
2021-06-25 08:30:36 +00:00
|
|
|
#define __aio_cancel __new_aio_cancel
|
2003-08-31 18:10:47 +00:00
|
|
|
|
2021-06-22 07:50:27 +00:00
|
|
|
#include <rt/aio_cancel.c>
|
2003-08-31 18:10:47 +00:00
|
|
|
|
2021-06-25 08:30:36 +00:00
|
|
|
#undef __aio_cancel
|
|
|
|
versioned_symbol (libc, __new_aio_cancel, aio_cancel, GLIBC_2_34);
|
|
|
|
versioned_symbol (libc, __new_aio_cancel, aio_cancel64, GLIBC_2_34);
|
|
|
|
#if OTHER_SHLIB_COMPAT (librt, GLIBC_2_3, GLIBC_2_34)
|
|
|
|
compat_symbol (librt, __new_aio_cancel, aio_cancel, GLIBC_2_3);
|
|
|
|
compat_symbol (librt, __new_aio_cancel, aio_cancel64, GLIBC_2_3);
|
|
|
|
#endif
|
2003-08-31 18:10:47 +00:00
|
|
|
|
2021-06-25 08:30:36 +00:00
|
|
|
#if OTHER_SHLIB_COMPAT (librt, GLIBC_2_1, GLIBC_2_3)
|
2003-08-31 18:10:47 +00:00
|
|
|
|
|
|
|
#undef ECANCELED
|
2021-06-25 08:30:36 +00:00
|
|
|
#define __aio_cancel __old_aio_cancel
|
2003-08-31 18:10:47 +00:00
|
|
|
#define ECANCELED 125
|
|
|
|
|
2021-06-22 07:50:27 +00:00
|
|
|
#include <rt/aio_cancel.c>
|
2003-08-31 18:10:47 +00:00
|
|
|
|
2021-06-25 08:30:36 +00:00
|
|
|
#undef __aio_cancel
|
2003-08-31 18:10:47 +00:00
|
|
|
compat_symbol (librt, __old_aio_cancel, aio_cancel, GLIBC_2_1);
|
2021-06-25 08:30:36 +00:00
|
|
|
compat_symbol (librt, __old_aio_cancel, aio_cancel64, GLIBC_2_1);
|
2003-08-31 18:10:47 +00:00
|
|
|
|
|
|
|
#endif
|