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

aio.h.0p (4729B)


  1. '\" et
  2. .TH aio.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. aio.h
  12. \(em asynchronous input and output
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <aio.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR <aio.h>
  21. header shall define the
  22. .BR aiocb
  23. structure, which shall include at least the following members:
  24. .sp
  25. .RS 4
  26. .nf
  27. int aio_fildes \fRFile descriptor.\fR
  28. off_t aio_offset \fRFile offset.\fR
  29. volatile void *aio_buf \fRLocation of buffer.\fR
  30. size_t aio_nbytes \fRLength of transfer.\fR
  31. int aio_reqprio \fRRequest priority offset.\fR
  32. struct sigevent aio_sigevent \fRSignal number and value.\fR
  33. int aio_lio_opcode \fROperation to be performed.\fR
  34. .fi
  35. .P
  36. .RE
  37. .P
  38. The
  39. .IR <aio.h>
  40. header shall define the
  41. .BR off_t ,
  42. .BR pthread_attr_t ,
  43. .BR size_t ,
  44. and
  45. .BR ssize_t
  46. types as described in
  47. .IR <sys/types.h> .
  48. .P
  49. The
  50. .IR <aio.h>
  51. header shall define the
  52. .BR "struct timespec"
  53. structure as described in
  54. .IR <time.h> .
  55. .P
  56. The
  57. .IR <aio.h>
  58. header shall define the
  59. .BR sigevent
  60. structure and
  61. .BR sigval
  62. union as described in
  63. .IR "\fB<signal.h>\fP".
  64. .P
  65. The
  66. .IR <aio.h>
  67. header shall define the following symbolic constants:
  68. .IP AIO_ALLDONE 14
  69. A return value indicating that none of the requested operations could
  70. be canceled since they are already complete.
  71. .IP AIO_CANCELED 14
  72. A return value indicating that all requested operations have been
  73. canceled.
  74. .IP AIO_NOTCANCELED 14
  75. .br
  76. A return value indicating that some of the requested operations could
  77. not be canceled since they are in progress.
  78. .IP LIO_NOP 14
  79. A
  80. \fIlio_listio\fR()
  81. element operation option indicating that no transfer is requested.
  82. .IP LIO_NOWAIT 14
  83. A
  84. \fIlio_listio\fR()
  85. synchronization operation indicating that the calling thread is to
  86. continue execution while the
  87. \fIlio_listio\fR()
  88. operation is being performed, and no notification is given when the
  89. operation is complete.
  90. .IP LIO_READ 14
  91. A
  92. \fIlio_listio\fR()
  93. element operation option requesting a read.
  94. .IP LIO_WAIT 14
  95. A
  96. \fIlio_listio\fR()
  97. synchronization operation indicating that the calling thread is to
  98. suspend until the
  99. \fIlio_listio\fR()
  100. operation is complete.
  101. .IP LIO_WRITE 14
  102. A
  103. \fIlio_listio\fR()
  104. element operation option requesting a write.
  105. .P
  106. The following shall be declared as functions and may also be defined
  107. as macros. Function prototypes shall be provided.
  108. .sp
  109. .RS 4
  110. .nf
  111. int aio_cancel(int, struct aiocb *);
  112. int aio_error(const struct aiocb *);
  113. int aio_fsync(int, struct aiocb *);
  114. int aio_read(struct aiocb *);
  115. ssize_t aio_return(struct aiocb *);
  116. int aio_suspend(const struct aiocb *const [], int,
  117. const struct timespec *);
  118. int aio_write(struct aiocb *);
  119. int lio_listio(int, struct aiocb *restrict const [restrict], int,
  120. struct sigevent *restrict);
  121. .fi
  122. .P
  123. .RE
  124. .P
  125. Inclusion of the
  126. .IR <aio.h>
  127. header may make visible symbols defined in the headers
  128. .IR <fcntl.h> ,
  129. .IR <signal.h> ,
  130. and
  131. .IR <time.h> .
  132. .LP
  133. .IR "The following sections are informative."
  134. .SH "APPLICATION USAGE"
  135. None.
  136. .SH RATIONALE
  137. None.
  138. .SH "FUTURE DIRECTIONS"
  139. None.
  140. .SH "SEE ALSO"
  141. .IR "\fB<fcntl.h>\fP",
  142. .IR "\fB<signal.h>\fP",
  143. .IR "\fB<sys_types.h>\fP",
  144. .IR "\fB<time.h>\fP"
  145. .P
  146. The System Interfaces volume of POSIX.1\(hy2017,
  147. .IR "\fIaio_cancel\fR\^(\|)",
  148. .IR "\fIaio_error\fR\^(\|)",
  149. .IR "\fIaio_fsync\fR\^(\|)",
  150. .IR "\fIaio_read\fR\^(\|)",
  151. .IR "\fIaio_return\fR\^(\|)",
  152. .IR "\fIaio_suspend\fR\^(\|)",
  153. .IR "\fIaio_write\fR\^(\|)",
  154. .IR "\fIfsync\fR\^(\|)",
  155. .IR "\fIlio_listio\fR\^(\|)",
  156. .IR "\fIlseek\fR\^(\|)",
  157. .IR "\fIread\fR\^(\|)",
  158. .IR "\fIwrite\fR\^(\|)"
  159. .\"
  160. .SH COPYRIGHT
  161. Portions of this text are reprinted and reproduced in electronic form
  162. from IEEE Std 1003.1-2017, Standard for Information Technology
  163. -- Portable Operating System Interface (POSIX), The Open Group Base
  164. Specifications Issue 7, 2018 Edition,
  165. Copyright (C) 2018 by the Institute of
  166. Electrical and Electronics Engineers, Inc and The Open Group.
  167. In the event of any discrepancy between this version and the original IEEE and
  168. The Open Group Standard, the original IEEE and The Open Group Standard
  169. is the referee document. The original Standard can be obtained online at
  170. http://www.opengroup.org/unix/online.html .
  171. .PP
  172. Any typographical or formatting errors that appear
  173. in this page are most likely
  174. to have been introduced during the conversion of the source files to
  175. man page format. To report such errors, see
  176. https://www.kernel.org/doc/man-pages/reporting_bugs.html .