diff options
author | Roland McGrath <roland@hack.frob.com> | 2014-06-20 17:13:47 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2014-06-20 17:13:47 -0700 |
commit | 4b88139b6f22b70048793725a6c3f67bddc7baee (patch) | |
tree | c686a38eb7cb9540d217a077a258713f3bf8304f /sysdeps/unix/sysv/linux/sparc/aio_cancel.c | |
parent | 9bc6103d0460686a92105410a306252238d952d8 (diff) | |
download | glibc-4b88139b6f22b70048793725a6c3f67bddc7baee.tar.gz glibc-4b88139b6f22b70048793725a6c3f67bddc7baee.tar.xz glibc-4b88139b6f22b70048793725a6c3f67bddc7baee.zip |
Move remaining SPARC code out of nptl/.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sparc/aio_cancel.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/sparc/aio_cancel.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/sparc/aio_cancel.c b/sysdeps/unix/sysv/linux/sparc/aio_cancel.c new file mode 100644 index 0000000000..0d6da82919 --- /dev/null +++ b/sysdeps/unix/sysv/linux/sparc/aio_cancel.c @@ -0,0 +1,33 @@ +#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 <sysdeps/pthread/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 <sysdeps/pthread/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 |