mqueue.h 1.6 KB

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