mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
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>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user