mqueue.h-data 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined XPG4 && !defined XPG42
  2. // should test for not an array type.
  3. type mqd_t
  4. type {struct sigevent}
  5. element {struct sigevent} int sigev_notify
  6. element {struct sigevent} int sigev_signo
  7. element {struct sigevent} {union sigval} sigev_value
  8. element {struct sigevent} {void(*} sigev_notify_function )(union sigval)
  9. element {struct sigevent} {pthread_attr_t*} sigev_notify_attributes
  10. type {struct mq_attr}
  11. // Bug 21279: mq_attr elements have wrong type.
  12. xfail[x86_64-x32-linux]-element {struct mq_attr} long mq_flags
  13. xfail[x86_64-x32-linux]-element {struct mq_attr} long mq_maxmsg
  14. xfail[x86_64-x32-linux]-element {struct mq_attr} long mq_msgsize
  15. xfail[x86_64-x32-linux]-element {struct mq_attr} long mq_curmsgs
  16. function int mq_close (mqd_t)
  17. function int mq_getattr (mqd_t, struct mq_attr*)
  18. function int mq_notify (mqd_t, const struct sigevent*)
  19. function mqd_t mq_open (const char*, int, ...)
  20. function ssize_t mq_receive (mqd_t, char*, size_t, unsigned int*)
  21. function int mq_send (mqd_t, const char*, size_t, unsigned int)
  22. function int mq_setattr (mqd_t, const struct mq_attr*, struct mq_attr*)
  23. function int mq_unlink (const char*)
  24. #if defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
  25. optional-function ssize_t mq_timedreceive (mqd_t, char*, size_t, unsigned int*, const struct timespec*)
  26. optional-function int mq_timedsend (mqd_t, const char*, size_t, unsigned int, const struct timespec*)
  27. #endif
  28. #if defined XOPEN2K8 || defined POSIX2008
  29. type pthread_attr_t
  30. type size_t
  31. type ssize_t
  32. type {struct timespec}
  33. #endif
  34. allow-header fcntl.h
  35. allow-header signal.h
  36. allow-header sys/types.h
  37. allow-header time.h
  38. allow mq_*
  39. allow MQ_*
  40. allow *_t
  41. #endif