mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Linux: Move mq_open, __mq_open_2 from librt to libc
The symbols were moved using scripts/move-symbol-to-libc.py. A placeholder symbol is required to keep the GLIBC_2.7 version. Reviewed-by: Adhemerva Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@ -21,6 +21,7 @@
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <sysdep.h>
|
||||
#include <shlib-compat.h>
|
||||
|
||||
/* Establish connection between a process and a message queue NAME and
|
||||
return message queue descriptor or (mqd_t) -1 on error. OFLAG determines
|
||||
@ -49,13 +50,20 @@ __mq_open (const char *name, int oflag, ...)
|
||||
|
||||
return INLINE_SYSCALL (mq_open, 4, name + 1, oflag, mode, attr);
|
||||
}
|
||||
strong_alias (__mq_open, mq_open);
|
||||
versioned_symbol (libc, __mq_open, mq_open, GLIBC_2_34);
|
||||
#if OTHER_SHLIB_COMPAT (librt, GLIBC_2_3_4, GLIBC_2_34)
|
||||
compat_symbol (libc, __mq_open, mq_open, GLIBC_2_3_4);
|
||||
#endif
|
||||
|
||||
mqd_t
|
||||
__mq_open_2 (const char *name, int oflag)
|
||||
___mq_open_2 (const char *name, int oflag)
|
||||
{
|
||||
if (oflag & O_CREAT)
|
||||
__fortify_fail ("invalid mq_open call: O_CREAT without mode and attr");
|
||||
|
||||
return __mq_open (name, oflag);
|
||||
}
|
||||
versioned_symbol (libc, ___mq_open_2, __mq_open_2, GLIBC_2_34);
|
||||
#if OTHER_SHLIB_COMPAT (librt, GLIBC_2_7, GLIBC_2_34)
|
||||
compat_symbol (libc, ___mq_open_2, __mq_open_2, GLIBC_2_7);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user