2004-04-13 02:15:43 +00:00
|
|
|
#include <rt/mqueue.h>
|
|
|
|
|
2014-11-24 09:54:34 +00:00
|
|
|
#ifndef _ISOMAC
|
2021-06-25 08:42:54 +00:00
|
|
|
extern __typeof (mq_timedreceive) __mq_timedreceive __nonnull ((2, 5));
|
2021-06-25 08:42:54 +00:00
|
|
|
extern __typeof (mq_timedsend) __mq_timedsend __nonnull ((2, 5));
|
2021-06-25 08:42:54 +00:00
|
|
|
|
2021-06-25 08:42:54 +00:00
|
|
|
# if IS_IN (librt) && !PTHREAD_IN_LIBC
|
2004-04-13 02:15:43 +00:00
|
|
|
hidden_proto (mq_timedsend)
|
2015-06-17 20:19:04 +00:00
|
|
|
hidden_proto (__mq_timedsend)
|
2004-04-13 02:15:43 +00:00
|
|
|
hidden_proto (mq_setattr)
|
2021-06-25 08:42:54 +00:00
|
|
|
hidden_proto (mq_timedreceive)
|
|
|
|
hidden_proto (__mq_timedreceive)
|
2021-06-25 08:42:54 +00:00
|
|
|
# endif
|
2021-06-25 08:30:36 +00:00
|
|
|
|
|
|
|
# if PTHREAD_IN_LIBC
|
|
|
|
libc_hidden_proto (mq_setattr)
|
2021-06-25 08:42:54 +00:00
|
|
|
libc_hidden_proto (__mq_timedreceive)
|
2021-06-25 08:42:54 +00:00
|
|
|
libc_hidden_proto (__mq_timedsend)
|
2021-06-25 08:42:52 +00:00
|
|
|
|
|
|
|
/* Called from fork so that the new subprocess re-creates the
|
|
|
|
notification thread if necessary. */
|
|
|
|
void __mq_notify_fork_subprocess (void) attribute_hidden;
|
2014-11-24 09:54:34 +00:00
|
|
|
# endif
|
2021-06-25 08:30:36 +00:00
|
|
|
|
2020-02-10 09:55:24 +00:00
|
|
|
#include <struct___timespec64.h>
|
|
|
|
#if __TIMESIZE == 64
|
|
|
|
# define __mq_timedsend_time64 __mq_timedsend
|
2020-02-10 16:36:33 +00:00
|
|
|
# define __mq_timedreceive_time64 __mq_timedreceive
|
2020-02-10 09:55:24 +00:00
|
|
|
#else
|
|
|
|
extern int __mq_timedsend_time64 (mqd_t mqdes, const char *msg_ptr,
|
|
|
|
size_t msg_len, unsigned int msg_prio,
|
|
|
|
const struct __timespec64 *abs_timeout);
|
2020-02-10 16:36:33 +00:00
|
|
|
extern ssize_t __mq_timedreceive_time64 (mqd_t mqdes,
|
|
|
|
char *__restrict msg_ptr,
|
|
|
|
size_t msg_len,
|
|
|
|
unsigned int *__restrict msg_prio,
|
|
|
|
const struct __timespec64 *__restrict
|
|
|
|
abs_timeout);
|
2021-06-25 08:42:54 +00:00
|
|
|
# if PTHREAD_IN_LIBC
|
|
|
|
libc_hidden_proto (__mq_timedreceive_time64)
|
2021-06-25 08:42:54 +00:00
|
|
|
libc_hidden_proto (__mq_timedsend_time64)
|
2021-06-25 08:42:54 +00:00
|
|
|
# else
|
2020-02-10 16:36:33 +00:00
|
|
|
librt_hidden_proto (__mq_timedreceive_time64)
|
2021-06-25 08:42:54 +00:00
|
|
|
librt_hidden_proto (__mq_timedsend_time64)
|
2021-06-25 08:42:54 +00:00
|
|
|
# endif
|
2020-02-10 09:55:24 +00:00
|
|
|
#endif
|
2004-04-13 02:15:43 +00:00
|
|
|
#endif
|