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

poll.h.0p (3519B)


  1. '\" et
  2. .TH poll.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. poll.h
  12. \(em definitions for the poll(\|) function
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <poll.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR <poll.h>
  21. header shall define the
  22. .BR pollfd
  23. structure, which shall include at least the following members:
  24. .sp
  25. .RS 4
  26. .nf
  27. int fd \fRThe following descriptor being polled.\fP
  28. short events \fRThe input event flags (see below).\fP
  29. short revents \fRThe output event flags (see below).\fP
  30. .fi
  31. .P
  32. .RE
  33. .P
  34. The
  35. .IR <poll.h>
  36. header shall define the following type through
  37. .BR typedef :
  38. .IP "\fBnfds_t\fR" 14
  39. An unsigned integer type used for the number of file descriptors.
  40. .P
  41. The implementation shall support one or more programming environments
  42. in which the width of
  43. .BR nfds_t
  44. is no greater than the width of type
  45. .BR long .
  46. The names of these programming environments can be obtained using the
  47. \fIconfstr\fR()
  48. function or the
  49. .IR getconf
  50. utility.
  51. .P
  52. The
  53. .IR <poll.h>
  54. header shall define the following symbolic constants, zero or more of
  55. which may be OR'ed together to form the
  56. .IR events
  57. or
  58. .IR revents
  59. members in the
  60. .BR pollfd
  61. structure:
  62. .IP POLLIN 14
  63. Data other than high-priority data may be read without blocking.
  64. .IP POLLRDNORM 14
  65. Normal data may be read without blocking.
  66. .IP POLLRDBAND 14
  67. Priority data may be read without blocking.
  68. .IP POLLPRI 14
  69. High priority data may be read without blocking.
  70. .IP POLLOUT 14
  71. Normal data may be written without blocking.
  72. .IP POLLWRNORM 14
  73. Equivalent to POLLOUT.
  74. .IP POLLWRBAND 14
  75. Priority data may be written.
  76. .IP POLLERR 14
  77. An error has occurred (\c
  78. .IR revents
  79. only).
  80. .IP POLLHUP 14
  81. Device has been disconnected (\c
  82. .IR revents
  83. only).
  84. .IP POLLNVAL 14
  85. Invalid
  86. .IR fd
  87. member (\c
  88. .IR revents
  89. only).
  90. .P
  91. The significance and semantics of normal, priority, and high-priority
  92. data are file and device-specific.
  93. .P
  94. The following shall be declared as a function and may also be defined
  95. as a macro. A function prototype shall be provided.
  96. .sp
  97. .RS 4
  98. .nf
  99. int poll(struct pollfd [], nfds_t, int);
  100. .fi
  101. .P
  102. .RE
  103. .LP
  104. .IR "The following sections are informative."
  105. .SH "APPLICATION USAGE"
  106. None.
  107. .SH RATIONALE
  108. None.
  109. .SH "FUTURE DIRECTIONS"
  110. None.
  111. .SH "SEE ALSO"
  112. The System Interfaces volume of POSIX.1\(hy2017,
  113. .IR "\fIconfstr\fR\^(\|)",
  114. .IR "\fIpoll\fR\^(\|)"
  115. .P
  116. The Shell and Utilities volume of POSIX.1\(hy2017,
  117. .IR "\fIgetconf\fR\^"
  118. .\"
  119. .SH COPYRIGHT
  120. Portions of this text are reprinted and reproduced in electronic form
  121. from IEEE Std 1003.1-2017, Standard for Information Technology
  122. -- Portable Operating System Interface (POSIX), The Open Group Base
  123. Specifications Issue 7, 2018 Edition,
  124. Copyright (C) 2018 by the Institute of
  125. Electrical and Electronics Engineers, Inc and The Open Group.
  126. In the event of any discrepancy between this version and the original IEEE and
  127. The Open Group Standard, the original IEEE and The Open Group Standard
  128. is the referee document. The original Standard can be obtained online at
  129. http://www.opengroup.org/unix/online.html .
  130. .PP
  131. Any typographical or formatting errors that appear
  132. in this page are most likely
  133. to have been introduced during the conversion of the source files to
  134. man page format. To report such errors, see
  135. https://www.kernel.org/doc/man-pages/reporting_bugs.html .