]>
Commit | Line | Data |
---|---|---|
1b82c6c7 UD |
1 | #include <rt/mqueue.h> |
2 | ||
7a9ebfa1 | 3 | #ifndef _ISOMAC |
903e6f99 | 4 | extern __typeof (mq_timedreceive) __mq_timedreceive __nonnull ((2, 5)); |
5b3a2abf | 5 | extern __typeof (mq_timedsend) __mq_timedsend __nonnull ((2, 5)); |
903e6f99 | 6 | |
5b3a2abf | 7 | # if IS_IN (librt) && !PTHREAD_IN_LIBC |
1b82c6c7 | 8 | hidden_proto (mq_timedsend) |
dfa2d214 | 9 | hidden_proto (__mq_timedsend) |
1b82c6c7 | 10 | hidden_proto (mq_setattr) |
903e6f99 FW |
11 | hidden_proto (mq_timedreceive) |
12 | hidden_proto (__mq_timedreceive) | |
5b3a2abf | 13 | # endif |
a752cb67 FW |
14 | |
15 | # if PTHREAD_IN_LIBC | |
16 | libc_hidden_proto (mq_setattr) | |
903e6f99 | 17 | libc_hidden_proto (__mq_timedreceive) |
5b3a2abf | 18 | libc_hidden_proto (__mq_timedsend) |
2da5f22f FW |
19 | |
20 | /* Called from fork so that the new subprocess re-creates the | |
21 | notification thread if necessary. */ | |
22 | void __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 |
30 | extern 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 |
33 | extern 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 |
40 | libc_hidden_proto (__mq_timedreceive_time64) | |
5b3a2abf | 41 | libc_hidden_proto (__mq_timedsend_time64) |
903e6f99 | 42 | # else |
0b65a8fb | 43 | librt_hidden_proto (__mq_timedreceive_time64) |
5b3a2abf | 44 | librt_hidden_proto (__mq_timedsend_time64) |
903e6f99 | 45 | # endif |
6f5eb5b2 | 46 | #endif |
1b82c6c7 | 47 | #endif |