logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

mqueue.h.0p (3824B)


  1. '\" et
  2. .TH mqueue.h "0P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. mqueue.h
  12. \(em message queues
  13. (\fBREALTIME\fP)
  14. .SH SYNOPSIS
  15. .LP
  16. .nf
  17. #include <mqueue.h>
  18. .fi
  19. .SH DESCRIPTION
  20. The
  21. .IR <mqueue.h>
  22. header shall define the
  23. .BR mqd_t
  24. type, which is used for message queue descriptors. This is not an
  25. array type.
  26. .P
  27. The
  28. .IR <mqueue.h>
  29. header shall define the
  30. .BR pthread_attr_t ,
  31. .BR size_t ,
  32. and
  33. .BR ssize_t
  34. types as described in
  35. .IR <sys/types.h> .
  36. .P
  37. The
  38. .IR <mqueue.h>
  39. header shall define the
  40. .BR "struct timespec"
  41. structure as described in
  42. .IR <time.h> .
  43. .P
  44. The tag
  45. .BR sigevent
  46. shall be declared as naming an incomplete structure type, the contents
  47. of which are described in the
  48. .IR <signal.h>
  49. header.
  50. .P
  51. The
  52. .IR <mqueue.h>
  53. header shall define the
  54. .BR mq_attr
  55. structure, which is used in getting and setting the attributes of a
  56. message queue. Attributes are initially set when the message queue is
  57. created. An
  58. .BR mq_attr
  59. structure shall have at least the following fields:
  60. .sp
  61. .RS 4
  62. .nf
  63. long mq_flags \fRMessage queue flags.\fP
  64. long mq_maxmsg \fRMaximum number of messages.\fP
  65. long mq_msgsize \fRMaximum message size.\fP
  66. long mq_curmsgs \fRNumber of messages currently queued.\fP
  67. .fi
  68. .P
  69. .RE
  70. .P
  71. The following shall be declared as functions and may also be defined
  72. as macros. Function prototypes shall be provided.
  73. .sp
  74. .RS 4
  75. .nf
  76. int mq_close(mqd_t);
  77. int mq_getattr(mqd_t, struct mq_attr *);
  78. int mq_notify(mqd_t, const struct sigevent *);
  79. mqd_t mq_open(const char *, int, ...);
  80. ssize_t mq_receive(mqd_t, char *, size_t, unsigned *);
  81. int mq_send(mqd_t, const char *, size_t, unsigned);
  82. int mq_setattr(mqd_t, const struct mq_attr *restrict,
  83. struct mq_attr *restrict);
  84. ssize_t mq_timedreceive(mqd_t, char *restrict, size_t,
  85. unsigned *restrict, const struct timespec *restrict);
  86. int mq_timedsend(mqd_t, const char *, size_t, unsigned,
  87. const struct timespec *);
  88. int mq_unlink(const char *);
  89. .fi
  90. .P
  91. .RE
  92. .P
  93. Inclusion of the
  94. .IR <mqueue.h>
  95. header may make visible symbols defined in the headers
  96. .IR <fcntl.h> ,
  97. .IR <signal.h> ,
  98. and
  99. .IR <time.h> .
  100. .LP
  101. .IR "The following sections are informative."
  102. .SH "APPLICATION USAGE"
  103. None.
  104. .SH RATIONALE
  105. None.
  106. .SH "FUTURE DIRECTIONS"
  107. None.
  108. .SH "SEE ALSO"
  109. .IR "\fB<fcntl.h>\fP",
  110. .IR "\fB<signal.h>\fP",
  111. .IR "\fB<sys_types.h>\fP",
  112. .IR "\fB<time.h>\fP"
  113. .P
  114. The System Interfaces volume of POSIX.1\(hy2017,
  115. .IR "\fImq_close\fR\^(\|)",
  116. .IR "\fImq_getattr\fR\^(\|)",
  117. .IR "\fImq_notify\fR\^(\|)",
  118. .IR "\fImq_open\fR\^(\|)",
  119. .IR "\fImq_receive\fR\^(\|)",
  120. .IR "\fImq_send\fR\^(\|)",
  121. .IR "\fImq_setattr\fR\^(\|)",
  122. .IR "\fImq_unlink\fR\^(\|)"
  123. .\"
  124. .SH COPYRIGHT
  125. Portions of this text are reprinted and reproduced in electronic form
  126. from IEEE Std 1003.1-2017, Standard for Information Technology
  127. -- Portable Operating System Interface (POSIX), The Open Group Base
  128. Specifications Issue 7, 2018 Edition,
  129. Copyright (C) 2018 by the Institute of
  130. Electrical and Electronics Engineers, Inc and The Open Group.
  131. In the event of any discrepancy between this version and the original IEEE and
  132. The Open Group Standard, the original IEEE and The Open Group Standard
  133. is the referee document. The original Standard can be obtained online at
  134. http://www.opengroup.org/unix/online.html .
  135. .PP
  136. Any typographical or formatting errors that appear
  137. in this page are most likely
  138. to have been introduced during the conversion of the source files to
  139. man page format. To report such errors, see
  140. https://www.kernel.org/doc/man-pages/reporting_bugs.html .