]> git.ipfire.org Git - thirdparty/glibc.git/blame - include/mqueue.h
test-container: Fix "unused code" warnings on HURD
[thirdparty/glibc.git] / include / mqueue.h
CommitLineData
1b82c6c7
UD
1#include <rt/mqueue.h>
2
7a9ebfa1 3#ifndef _ISOMAC
903e6f99 4extern __typeof (mq_timedreceive) __mq_timedreceive __nonnull ((2, 5));
5b3a2abf 5extern __typeof (mq_timedsend) __mq_timedsend __nonnull ((2, 5));
903e6f99 6
5b3a2abf 7# if IS_IN (librt) && !PTHREAD_IN_LIBC
1b82c6c7 8hidden_proto (mq_timedsend)
dfa2d214 9hidden_proto (__mq_timedsend)
1b82c6c7 10hidden_proto (mq_setattr)
903e6f99
FW
11hidden_proto (mq_timedreceive)
12hidden_proto (__mq_timedreceive)
5b3a2abf 13# endif
a752cb67
FW
14
15# if PTHREAD_IN_LIBC
16libc_hidden_proto (mq_setattr)
903e6f99 17libc_hidden_proto (__mq_timedreceive)
5b3a2abf 18libc_hidden_proto (__mq_timedsend)
2da5f22f
FW
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;
7a9ebfa1 23# endif
a752cb67 24
6f5eb5b2
LM
25#include <struct___timespec64.h>
26#if __TIMESIZE == 64
27# define __mq_timedsend_time64 __mq_timedsend
0b65a8fb 28# define __mq_timedreceive_time64 __mq_timedreceive
6f5eb5b2
LM
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);
0b65a8fb
LM
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);
903e6f99
FW
39# if PTHREAD_IN_LIBC
40libc_hidden_proto (__mq_timedreceive_time64)
5b3a2abf 41libc_hidden_proto (__mq_timedsend_time64)
903e6f99 42# else
0b65a8fb 43librt_hidden_proto (__mq_timedreceive_time64)
5b3a2abf 44librt_hidden_proto (__mq_timedsend_time64)
903e6f99 45# endif
6f5eb5b2 46#endif
1b82c6c7 47#endif