about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/mq_close.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-06-25 10:30:36 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-06-25 12:19:58 +0200
commit12028b50310e83ffa0cafbca8cfffc222bfd6ac8 (patch)
tree8219a9ffbedc73626958ca013d1192ce7755cfbd /sysdeps/unix/sysv/linux/mq_close.c
parent3fe3f8076e4e0d3f5cd27f85dc0aa76b2f625917 (diff)
downloadglibc-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.c7
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