diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-06-25 10:30:36 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-06-25 12:19:58 +0200 |
commit | 12028b50310e83ffa0cafbca8cfffc222bfd6ac8 (patch) | |
tree | 8219a9ffbedc73626958ca013d1192ce7755cfbd /sysdeps/unix/sysv/linux/mq_close.c | |
parent | 3fe3f8076e4e0d3f5cd27f85dc0aa76b2f625917 (diff) | |
download | glibc-12028b50310e83ffa0cafbca8cfffc222bfd6ac8.tar.gz glibc-12028b50310e83ffa0cafbca8cfffc222bfd6ac8.tar.xz glibc-12028b50310e83ffa0cafbca8cfffc222bfd6ac8.zip |
Linux: Move mq_close from librt to libc
The symbol was moved using scripts/move-symbol-to-libc.py. Reviewed-by: Adhemerva Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/mq_close.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/mq_close.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/mq_close.c b/sysdeps/unix/sysv/linux/mq_close.c index 83a28fd8fe..b07db33fbb 100644 --- a/sysdeps/unix/sysv/linux/mq_close.c +++ b/sysdeps/unix/sysv/linux/mq_close.c @@ -18,11 +18,16 @@ #include <errno.h> #include <mqueue.h> #include <sysdep.h> +#include <shlib-compat.h> /* Removes the association between message queue descriptor MQDES and its message queue. */ int -mq_close (mqd_t mqdes) +__mq_close (mqd_t mqdes) { return INLINE_SYSCALL (close, 1, mqdes); } +versioned_symbol (libc, __mq_close, mq_close, GLIBC_2_34); +#if OTHER_SHLIB_COMPAT (librt, GLIBC_2_3_4, GLIBC_2_34) +compat_symbol (libc, __mq_close, mq_close, GLIBC_2_3_4); +#endif |