From 903e6f9960f6ad2ee9edd35fff979e2953445e08 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 25 Jun 2021 10:42:54 +0200 Subject: Linux: Move mq_receive, mq_timedreceive, __mq_timedreceive_time64 to libc The symbols were moved using scripts/move-symbol-to-libc.py. Reviewed-by: Adhemerva Zanella --- include/mqueue.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'include/mqueue.h') diff --git a/include/mqueue.h b/include/mqueue.h index 2c40c1e3fc..8243a637d2 100644 --- a/include/mqueue.h +++ b/include/mqueue.h @@ -1,20 +1,22 @@ #include #ifndef _ISOMAC +extern __typeof (mq_timedreceive) __mq_timedreceive __nonnull ((2, 5)); + # if IS_IN (librt) hidden_proto (mq_timedsend) extern __typeof (mq_timedsend) __mq_timedsend __nonnull ((2, 5)); hidden_proto (__mq_timedsend) -hidden_proto (mq_timedreceive) -extern __typeof (mq_timedreceive) __mq_timedreceive __nonnull ((2, 5)); -hidden_proto (__mq_timedreceive) # if !PTHREAD_IN_LIBC hidden_proto (mq_setattr) +hidden_proto (mq_timedreceive) +hidden_proto (__mq_timedreceive) # endif # endif /* IS_IN (librt) */ # if PTHREAD_IN_LIBC libc_hidden_proto (mq_setattr) +libc_hidden_proto (__mq_timedreceive) /* Called from fork so that the new subprocess re-creates the notification thread if necessary. */ @@ -36,6 +38,10 @@ extern ssize_t __mq_timedreceive_time64 (mqd_t mqdes, unsigned int *__restrict msg_prio, const struct __timespec64 *__restrict abs_timeout); +# if PTHREAD_IN_LIBC +libc_hidden_proto (__mq_timedreceive_time64) +# else librt_hidden_proto (__mq_timedreceive_time64) +# endif #endif #endif -- cgit v1.2.3