1#include <rt/mqueue.h>
2
3#ifndef _ISOMAC
4extern __typeof (mq_timedreceive) __mq_timedreceive __nonnull ((2, 5));
5extern __typeof (mq_timedsend) __mq_timedsend __nonnull ((2, 5));
6
7# if IS_IN (librt) && !PTHREAD_IN_LIBC
8hidden_proto (mq_timedsend)
9hidden_proto (__mq_timedsend)
10hidden_proto (mq_setattr)
11hidden_proto (mq_timedreceive)
12hidden_proto (__mq_timedreceive)
13# endif
14
15# if PTHREAD_IN_LIBC
16libc_hidden_proto (mq_setattr)
17libc_hidden_proto (__mq_timedreceive)
18libc_hidden_proto (__mq_timedsend)
19
20/* Called from fork so that the new subprocess re-creates the
21 notification thread if necessary. */
22void __mq_notify_fork_subprocess (void) attribute_hidden;
23# endif
24
25#include <struct___timespec64.h>
26#if __TIMESIZE == 64
27# define __mq_timedsend_time64 __mq_timedsend
28# define __mq_timedreceive_time64 __mq_timedreceive
29#else
30extern int __mq_timedsend_time64 (mqd_t mqdes, const char *msg_ptr,
31 size_t msg_len, unsigned int msg_prio,
32 const struct __timespec64 *abs_timeout);
33extern ssize_t __mq_timedreceive_time64 (mqd_t mqdes,
34 char *__restrict msg_ptr,
35 size_t msg_len,
36 unsigned int *__restrict msg_prio,
37 const struct __timespec64 *__restrict
38 abs_timeout);
39# if PTHREAD_IN_LIBC
40libc_hidden_proto (__mq_timedreceive_time64)
41libc_hidden_proto (__mq_timedsend_time64)
42# else
43librt_hidden_proto (__mq_timedreceive_time64)
44librt_hidden_proto (__mq_timedsend_time64)
45# endif
46#endif
47#endif
48

source code of glibc/include/mqueue.h