about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/mq_unlink.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-06-25 10:42:54 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-06-25 12:21:12 +0200
commit1a5a653be2f95d4d9485d08672dc5083c74c39d8 (patch)
tree690213469932b9a7b1ad7d99a93924761ab0d601 /sysdeps/unix/sysv/linux/mq_unlink.c
parent5b3a2abfb339738085dcd8d956b570b56d03b9ed (diff)
downloadglibc-1a5a653be2f95d4d9485d08672dc5083c74c39d8.tar.gz
glibc-1a5a653be2f95d4d9485d08672dc5083c74c39d8.tar.xz
glibc-1a5a653be2f95d4d9485d08672dc5083c74c39d8.zip
Linux: Move mq_unlink from librt to libc
The symbol was moved using scripts/move-symbol-to-libc.py.
A placeholder symbol is needed on some architectures for the
GLIBC_2.3.4 version.

Reviewed-by: Adhemerva Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/mq_unlink.c')
-rw-r--r--sysdeps/unix/sysv/linux/mq_unlink.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/mq_unlink.c b/sysdeps/unix/sysv/linux/mq_unlink.c
index dcdc6519c4..4afe95af44 100644
--- a/sysdeps/unix/sysv/linux/mq_unlink.c
+++ b/sysdeps/unix/sysv/linux/mq_unlink.c
@@ -18,10 +18,11 @@
 #include <errno.h>
 #include <mqueue.h>
 #include <sysdep.h>
+#include <shlib-compat.h>
 
 /* Remove message queue named NAME.  */
 int
-mq_unlink (const char *name)
+__mq_unlink (const char *name)
 {
   if (name[0] != '/')
     return INLINE_SYSCALL_ERROR_RETURN_VALUE (EINVAL);
@@ -40,3 +41,7 @@ mq_unlink (const char *name)
 
   return ret;
 }
+versioned_symbol (libc, __mq_unlink, mq_unlink, GLIBC_2_34);
+#if OTHER_SHLIB_COMPAT (librt, GLIBC_2_3_4, GLIBC_2_34)
+compat_symbol (libc, __mq_unlink, mq_unlink, GLIBC_2_3_4);
+#endif