1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00

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>
This commit is contained in:
Florian Weimer
2021-06-25 10:30:36 +02:00
parent 3fe3f8076e
commit 12028b5031
65 changed files with 79 additions and 32 deletions

View File

@@ -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