From 56a1b8778c2ec21bcd5bf4396a986e051dfc392c Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 1 Sep 2003 21:38:29 +0000 Subject: [PATCH] * sysdeps/unix/sysv/linux/alpha/timer_create.c: New file. * sysdeps/unix/sysv/linux/alpha/timer_delete.c: New file. * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: New file. * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: New file. * sysdeps/unix/sysv/linux/alpha/timer_settime.c: New file. * sysdeps/unix/sysv/linux/alpha/Versions: New file. * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: New file. --- nptl/ChangeLog | 9 +++++ nptl/sysdeps/unix/sysv/linux/alpha/Versions | 7 ++++ .../unix/sysv/linux/alpha/aio_cancel.c | 33 +++++++++++++++++++ .../unix/sysv/linux/alpha/timer_create.c | 1 + .../unix/sysv/linux/alpha/timer_delete.c | 1 + .../unix/sysv/linux/alpha/timer_getoverr.c | 1 + .../unix/sysv/linux/alpha/timer_gettime.c | 1 + .../unix/sysv/linux/alpha/timer_settime.c | 1 + 8 files changed, 54 insertions(+) create mode 100644 nptl/sysdeps/unix/sysv/linux/alpha/Versions create mode 100644 nptl/sysdeps/unix/sysv/linux/alpha/aio_cancel.c create mode 100644 nptl/sysdeps/unix/sysv/linux/alpha/timer_create.c create mode 100644 nptl/sysdeps/unix/sysv/linux/alpha/timer_delete.c create mode 100644 nptl/sysdeps/unix/sysv/linux/alpha/timer_getoverr.c create mode 100644 nptl/sysdeps/unix/sysv/linux/alpha/timer_gettime.c create mode 100644 nptl/sysdeps/unix/sysv/linux/alpha/timer_settime.c diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 4c674b6df7..5469648d03 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,5 +1,14 @@ 2003-09-01 Jakub Jelinek + * sysdeps/unix/sysv/linux/alpha/timer_create.c: New file. + * sysdeps/unix/sysv/linux/alpha/timer_delete.c: New file. + * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: New file. + * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: New file. + * sysdeps/unix/sysv/linux/alpha/timer_settime.c: New file. + * sysdeps/unix/sysv/linux/alpha/Versions: New file. + + * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: New file. + * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Define _POSIX_THREAD_PRIORITY_SCHEDULING. * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise. diff --git a/nptl/sysdeps/unix/sysv/linux/alpha/Versions b/nptl/sysdeps/unix/sysv/linux/alpha/Versions new file mode 100644 index 0000000000..3b111ddb51 --- /dev/null +++ b/nptl/sysdeps/unix/sysv/linux/alpha/Versions @@ -0,0 +1,7 @@ +librt { + GLIBC_2.3.3 { + # Changed timer_t. + timer_create; timer_delete; timer_getoverrun; timer_gettime; + timer_settime; + } +} diff --git a/nptl/sysdeps/unix/sysv/linux/alpha/aio_cancel.c b/nptl/sysdeps/unix/sysv/linux/alpha/aio_cancel.c new file mode 100644 index 0000000000..0d6da82919 --- /dev/null +++ b/nptl/sysdeps/unix/sysv/linux/alpha/aio_cancel.c @@ -0,0 +1,33 @@ +#include + +#define aio_cancel64 XXX +#include +#undef aio_cancel64 +#include + +extern __typeof (aio_cancel) __new_aio_cancel; +extern __typeof (aio_cancel) __old_aio_cancel; + +#define aio_cancel __new_aio_cancel + +#include + +#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 + +#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 diff --git a/nptl/sysdeps/unix/sysv/linux/alpha/timer_create.c b/nptl/sysdeps/unix/sysv/linux/alpha/timer_create.c new file mode 100644 index 0000000000..172223af3f --- /dev/null +++ b/nptl/sysdeps/unix/sysv/linux/alpha/timer_create.c @@ -0,0 +1 @@ +#include "../x86_64/timer_create.c" diff --git a/nptl/sysdeps/unix/sysv/linux/alpha/timer_delete.c b/nptl/sysdeps/unix/sysv/linux/alpha/timer_delete.c new file mode 100644 index 0000000000..537516e0aa --- /dev/null +++ b/nptl/sysdeps/unix/sysv/linux/alpha/timer_delete.c @@ -0,0 +1 @@ +#include "../x86_64/timer_delete.c" diff --git a/nptl/sysdeps/unix/sysv/linux/alpha/timer_getoverr.c b/nptl/sysdeps/unix/sysv/linux/alpha/timer_getoverr.c new file mode 100644 index 0000000000..3f21a73c98 --- /dev/null +++ b/nptl/sysdeps/unix/sysv/linux/alpha/timer_getoverr.c @@ -0,0 +1 @@ +#include "../x86_64/timer_getoverr.c" diff --git a/nptl/sysdeps/unix/sysv/linux/alpha/timer_gettime.c b/nptl/sysdeps/unix/sysv/linux/alpha/timer_gettime.c new file mode 100644 index 0000000000..a50143adc5 --- /dev/null +++ b/nptl/sysdeps/unix/sysv/linux/alpha/timer_gettime.c @@ -0,0 +1 @@ +#include "../x86_64/timer_gettime.c" diff --git a/nptl/sysdeps/unix/sysv/linux/alpha/timer_settime.c b/nptl/sysdeps/unix/sysv/linux/alpha/timer_settime.c new file mode 100644 index 0000000000..37baeffacc --- /dev/null +++ b/nptl/sysdeps/unix/sysv/linux/alpha/timer_settime.c @@ -0,0 +1 @@ +#include "../x86_64/timer_settime.c"