mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-04 10:50:07 +00:00
daa3fc9bff
The pthread-based implementation is the generic one. Replacing the stubs makes it clear that they do not have to be adjusted for the libpthread move. Result of: git mv -f sysdeps/pthread/aio_misc.h sysdeps/generic/ git mv sysdeps/pthread/timer_routines.c sysdeps/htl/ git mv -f sysdeps/pthread/{aio,lio,timer}_*.c rt/ Followed by manual adjustment of the #include paths in sysdeps/unix/sysv/linux/wordsize-64, and a move of the version definitions formerly in sysdeps/pthread/Versions. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
34 lines
842 B
C
34 lines
842 B
C
#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;
|
|
|
|
#define aio_cancel __new_aio_cancel
|
|
|
|
#include <rt/aio_cancel.c>
|
|
|
|
#undef aio_cancel
|
|
strong_alias (__new_aio_cancel, __new_aio_cancel64);
|
|
versioned_symbol (librt, __new_aio_cancel, aio_cancel, GLIBC_2_3);
|
|
versioned_symbol (librt, __new_aio_cancel64, aio_cancel64, GLIBC_2_3);
|
|
|
|
#if SHLIB_COMPAT (librt, GLIBC_2_1, GLIBC_2_3)
|
|
|
|
#undef ECANCELED
|
|
#define aio_cancel __old_aio_cancel
|
|
#define ECANCELED 125
|
|
|
|
#include <rt/aio_cancel.c>
|
|
|
|
#undef aio_cancel
|
|
strong_alias (__old_aio_cancel, __old_aio_cancel64);
|
|
compat_symbol (librt, __old_aio_cancel, aio_cancel, GLIBC_2_1);
|
|
compat_symbol (librt, __old_aio_cancel64, aio_cancel64, GLIBC_2_1);
|
|
|
|
#endif
|