diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-06-25 10:42:54 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-06-25 12:21:12 +0200 |
commit | 5b3a2abfb339738085dcd8d956b570b56d03b9ed (patch) | |
tree | 15c86c7fa62e651c6860f53dc875d0a56ed5f9dc /sysdeps/unix/sysv/linux/mq_timedsend.c | |
parent | 903e6f9960f6ad2ee9edd35fff979e2953445e08 (diff) | |
download | glibc-5b3a2abfb339738085dcd8d956b570b56d03b9ed.tar.gz glibc-5b3a2abfb339738085dcd8d956b570b56d03b9ed.tar.xz glibc-5b3a2abfb339738085dcd8d956b570b56d03b9ed.zip |
Linux: Move mq_send, mq_timedsend, __mq_timedsend_time64 to libc
The symbols were moved using scripts/move-symbol-to-libc.py. Reviewed-by: Adhemerva Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/mq_timedsend.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/mq_timedsend.c | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/sysdeps/unix/sysv/linux/mq_timedsend.c b/sysdeps/unix/sysv/linux/mq_timedsend.c index d0835f005c..f93f865721 100644 --- a/sysdeps/unix/sysv/linux/mq_timedsend.c +++ b/sysdeps/unix/sysv/linux/mq_timedsend.c @@ -18,13 +18,14 @@ #include <mqueue.h> #include <sysdep-cancel.h> +#include <shlib-compat.h> /* Add message pointed by MSG_PTR to message queue MQDES, stop blocking on full message queue if ABS_TIMEOUT expires. */ int -__mq_timedsend_time64 (mqd_t mqdes, const char *msg_ptr, size_t msg_len, - unsigned int msg_prio, - const struct __timespec64 *abs_timeout) +___mq_timedsend_time64 (mqd_t mqdes, const char *msg_ptr, size_t msg_len, + unsigned int msg_prio, + const struct __timespec64 *abs_timeout) { # ifndef __NR_mq_timedsend_time64 # define __NR_mq_timedsend_time64 __NR_mq_timedsend @@ -58,11 +59,23 @@ __mq_timedsend_time64 (mqd_t mqdes, const char *msg_ptr, size_t msg_len, #endif } -#if __TIMESIZE != 64 -librt_hidden_def (__mq_timedsend_time64) +#if __TIMESIZE == 64 +versioned_symbol (libc, ___mq_timedsend_time64, mq_timedsend, GLIBC_2_34); +libc_hidden_ver (___mq_timedsend_time64, __mq_timedsend) +# ifndef SHARED +strong_alias (___mq_timedsend_time64, __mq_timedsend) +# endif +# if OTHER_SHLIB_COMPAT (librt, GLIBC_2_3_4, GLIBC_2_34) +compat_symbol (librt, ___mq_timedsend_time64, mq_timedsend, GLIBC_2_3_4); +# endif + +#else /* __TIMESIZE != 64 */ +libc_hidden_ver (___mq_timedsend_time64, __mq_timedsend_time64) +versioned_symbol (libc, ___mq_timedsend_time64, __mq_timedsend_time64, + GLIBC_2_34); int -__mq_timedsend (mqd_t mqdes, const char *msg_ptr, size_t msg_len, +___mq_timedsend (mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned int msg_prio, const struct timespec *abs_timeout) { struct __timespec64 ts64; @@ -72,8 +85,13 @@ __mq_timedsend (mqd_t mqdes, const char *msg_ptr, size_t msg_len, return __mq_timedsend_time64 (mqdes, msg_ptr, msg_len, msg_prio, abs_timeout != NULL ? &ts64 : NULL); } -#endif +versioned_symbol (libc, ___mq_timedsend, mq_timedsend, GLIBC_2_34); +libc_hidden_ver (___mq_timedsend, __mq_timedsend) +# ifndef SHARED +strong_alias (___mq_timedsend, __mq_timedsend) +# endif +# if OTHER_SHLIB_COMPAT (librt, GLIBC_2_3_4, GLIBC_2_34) +compat_symbol (librt, ___mq_timedsend, mq_timedsend, GLIBC_2_3_4); +# endif -hidden_def (__mq_timedsend) -weak_alias (__mq_timedsend, mq_timedsend) -hidden_weak (mq_timedsend) +#endif /* __TIMESIZE != 64 */ |