summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--librt/mq_getsetattr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/librt/mq_getsetattr.c b/librt/mq_getsetattr.c
index d412beebb..7d2594ea1 100644
--- a/librt/mq_getsetattr.c
+++ b/librt/mq_getsetattr.c
@@ -10,6 +10,8 @@
#ifdef __NR_mq_getsetattr
+librt_hidden_proto(mq_setattr)
+
#define __NR___syscall_mq_getsetattr __NR_mq_getsetattr
static inline _syscall3(int, __syscall_mq_getsetattr, int, mqdes,
const void *, mqstat, void *, omqstat);
@@ -18,18 +20,17 @@ static inline _syscall3(int, __syscall_mq_getsetattr, int, mqdes,
* Set attributes associated with message queue (and possibly also get
* its old attributes)
*/
-attribute_hidden
-int __mq_setattr(mqd_t mqdes, const struct mq_attr *mqstat,
+int mq_setattr(mqd_t mqdes, const struct mq_attr *mqstat,
struct mq_attr *omqstat)
{
return __syscall_mq_getsetattr(mqdes, mqstat, omqstat);
}
-strong_alias(__mq_setattr,mq_setattr)
+librt_hidden_def(mq_setattr)
/* Query status and attributes of message queue */
int mq_getattr(mqd_t mqdes, struct mq_attr *mqstat)
{
- return __mq_setattr(mqdes, NULL, mqstat);
+ return mq_setattr(mqdes, NULL, mqstat);
}
#endif