{"id":4836,"date":"2022-12-20T18:36:54","date_gmt":"2022-12-20T21:36:54","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/poll-man3p\/"},"modified":"2022-12-20T18:36:54","modified_gmt":"2022-12-20T21:36:54","slug":"poll-man3p","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/poll-man3p\/","title":{"rendered":"POLL (man3p)"},"content":{"rendered":"<h1 align=\"center\">POLL<\/h1>\n<p> <a href=\"#PROLOG\">PROLOG<\/a><br \/> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#RETURN VALUE\">RETURN VALUE<\/a><br \/> <a href=\"#ERRORS\">ERRORS<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#APPLICATION USAGE\">APPLICATION USAGE<\/a><br \/> <a href=\"#RATIONALE\">RATIONALE<\/a><br \/> <a href=\"#FUTURE DIRECTIONS\">FUTURE DIRECTIONS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#COPYRIGHT\">COPYRIGHT<\/a> <\/p>\n<hr>\n<h2>PROLOG <a name=\"PROLOG\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This manual page is part of the POSIX Programmer\u2019s Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.<\/p>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">poll \u2014 input\/output multiplexing<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">#include <poll.h><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">int poll(struct pollfd <i>fds<\/i>[], nfds_t <i>nfds<\/i>, int <i>timeout<\/i>);<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>poll<\/i>() function provides applications with a mechanism for multiplexing input\/output over a set of file descriptors. For each member of the array pointed to by <i>fds<\/i>, <i>poll<\/i>() shall examine the given file descriptor for the event(s) specified in <i>events<\/i>. The number of <b>pollfd<\/b> structures in the <i>fds<\/i> array is specified by <i>nfds<\/i>. The <i>poll<\/i>() function shall identify those file descriptors on which an application can read or write data, or on which certain events have occurred.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>fds<\/i> argument specifies the file descriptors to be examined and the events of interest for each file descriptor. It is a pointer to an array with one member for each open file descriptor of interest. The array\u2019s members are <b>pollfd<\/b> structures within which <i>fd<\/i> specifies an open file descriptor and <i>events<\/i> and <i>revents<\/i> are bitmasks constructed by OR\u2019ing a combination of the following event flags:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p>POLLIN<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"71%\">\n<p>Data other than high-priority data may be read without blocking.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%; margin-top: 1em\">For STREAMS, this flag is set in <i>revents<\/i> even if the message is of zero length. This flag shall be equivalent to POLLRDNORM | POLLRDBAND.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"15%\">\n<p style=\"margin-top: 1em\">POLLRDNORM<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"63%\">\n<p style=\"margin-top: 1em\">Normal data may be read without blocking.<\/p>\n<\/td>\n<td width=\"8%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%; margin-top: 1em\">For STREAMS, data on priority band 0 may be read without blocking. This flag is set in <i>revents<\/i> even if the message is of zero length.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"15%\">\n<p style=\"margin-top: 1em\">POLLRDBAND<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"66%\">\n<p style=\"margin-top: 1em\">Priority data may be read without blocking.<\/p>\n<\/td>\n<td width=\"5%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%; margin-top: 1em\">For STREAMS, data on priority bands greater than 0 may be read without blocking. This flag is set in <i>revents<\/i> even if the message is of zero length.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"11%\">\n<p style=\"margin-top: 1em\">POLLPRI<\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"71%\">\n<p style=\"margin-top: 1em\">High-priority data may be read without blocking.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%; margin-top: 1em\">For STREAMS, this flag is set in <i>revents<\/i> even if the message is of zero length.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"11%\">\n<p style=\"margin-top: 1em\">POLLOUT<\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"68%\">\n<p style=\"margin-top: 1em\">Normal data may be written without blocking.<\/p>\n<\/td>\n<td width=\"3%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%; margin-top: 1em\">For STREAMS, data on priority band 0 may be written without blocking.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"15%\">\n<p style=\"margin-top: 1em\">POLLWRNORM<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"45%\">\n<p style=\"margin-top: 1em\">Equivalent to POLLOUT.<\/p>\n<\/td>\n<td width=\"26%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"15%\">\n<p>POLLWRBAND<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"45%\">\n<p>Priority data may be written.<\/p>\n<\/td>\n<td width=\"26%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%; margin-top: 1em\">For STREAMS, data on priority bands greater than 0 may be written without blocking. If any priority band has been written to on this STREAM, this event only examines bands that have been written to at least once.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"12%\">\n<p style=\"margin-top: 1em\">POLLERR<\/p>\n<\/td>\n<td width=\"6%\"><\/td>\n<td width=\"71%\">\n<p style=\"margin-top: 1em\">An error has occurred on the device or stream. This flag is only valid in the <i>revents<\/i> bitmask; it shall be ignored in the <i>events<\/i> member.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"12%\">\n<p>POLLHUP<\/p>\n<\/td>\n<td width=\"6%\"><\/td>\n<td width=\"71%\">\n<p>A device has been disconnected, or a pipe or FIFO has been closed by the last process that had it open for writing. Once set, the hangup state of a FIFO shall persist until some process opens the FIFO for writing or until all read-only file descriptors for the FIFO are closed. This event and POLLOUT are mutually-exclusive; a stream can never be writable if a hangup has occurred. However, this event and POLLIN, POLLRDNORM, POLLRDBAND, or POLLPRI are not mutually-exclusive. This flag is only valid in the <i>revents<\/i> bitmask; it shall be ignored in the <i>events<\/i> member.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"12%\">\n<p>POLLNVAL<\/p>\n<\/td>\n<td width=\"6%\"><\/td>\n<td width=\"71%\">\n<p>The specified <i>fd<\/i> value is invalid. This flag is only valid in the <i>revents<\/i> member; it shall ignored in the <i>events<\/i> member.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The significance and semantics of normal, priority, and high-priority data are file and device-specific.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the value of <i>fd<\/i> is less than 0, <i>events<\/i> shall be ignored, and <i>revents<\/i> shall be set to 0 in that entry on return from <i>poll<\/i>().<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In each <b>pollfd<\/b> structure, <i>poll<\/i>() shall clear the <i>revents<\/i> member, except that where the application requested a report on a condition by setting one of the bits of <i>events<\/i> listed above, <i>poll<\/i>() shall set the corresponding bit in <i>revents<\/i> if the requested condition is true. In addition, <i>poll<\/i>() shall set the POLLHUP, POLLERR, and POLLNVAL flag in <i>revents<\/i> if the condition is true, even if the application did not set the corresponding bit in <i>events<\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If none of the defined events have occurred on any selected file descriptor, <i>poll<\/i>() shall wait at least <i>timeout<\/i> milliseconds for an event to occur on any of the selected file descriptors. If the value of <i>timeout<\/i> is 0, <i>poll<\/i>() shall return immediately. If the value of <i>timeout<\/i> is \u22121, <i>poll<\/i>() shall block until a requested event occurs or until the call is interrupted.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Implementations may place limitations on the granularity of timeout intervals. If the requested timeout interval requires a finer granularity than the implementation supports, the actual timeout interval shall be rounded up to the next supported value.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>poll<\/i>() function shall not be affected by the O_NONBLOCK flag.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>poll<\/i>() function shall support regular files, terminal and pseudo-terminal devices, FIFOs, pipes, sockets and STREAMS-based files. The behavior of <i>poll<\/i>() on elements of <i>fds<\/i> that refer to other types of file is unspecified.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Regular files shall always poll TRUE for reading and writing.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">A file descriptor for a socket that is listening for connections shall indicate that it is ready for reading, once connections are available. A file descriptor for a socket that is connecting asynchronously shall indicate that it is ready for writing, once a connection has been established.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Provided the application does not perform any action that results in unspecified or undefined behavior, the value of the <i>fd<\/i> and <i>events<\/i> members of each element of <i>fds<\/i> shall not be modified by <i>poll<\/i>().<\/p>\n<h2>RETURN VALUE <a name=\"RETURN VALUE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Upon successful completion, <i>poll<\/i>() shall return a non-negative value. A positive value indicates the total number of <b>pollfd<\/b> structures that have selected events (that is, those for which the <i>revents<\/i> member is non-zero). A value of 0 indicates that the call timed out and no file descriptors have been selected. Upon failure, <i>poll<\/i>() shall return \u22121 and set <i>errno<\/i> to indicate the error.<\/p>\n<h2>ERRORS <a name=\"ERRORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>poll<\/i>() function shall fail if:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\"><b>EAGAIN<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">The allocation of internal data structures failed but a subsequent request may succeed.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>EINTR<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>A signal was caught during <i>poll<\/i>().<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>EINVAL<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>The <i>nfds<\/i> argument is greater than {OPEN_MAX}, or one of the <i>fd<\/i> members refers to a STREAM or multiplexer that is linked (directly or indirectly) downstream from a multiplexer.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>The following sections are informative.<\/i><\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i><b>Checking for Events on a Stream<\/b><\/i> <br \/> The following example opens a pair of STREAMS devices and then waits for either one to become writable. This example proceeds as follows:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\">1.<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"83%\">\n<p style=\"margin-top: 1em\">Sets the <i>timeout<\/i> parameter to 500 milliseconds.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p>2.<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"83%\">\n<p>Opens the STREAMS devices <b>\/dev\/dev0<\/b> and <b>\/dev\/dev1<\/b>, and then polls them, specifying POLLOUT and POLLWRBAND as the events of interest.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%; margin-top: 1em\">The STREAMS device names <b>\/dev\/dev0<\/b> and <b>\/dev\/dev1<\/b> are only examples of how STREAMS devices can be named; STREAMS naming conventions may vary among systems conforming to the POSIX.1-2008.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\">3.<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"83%\">\n<p style=\"margin-top: 1em\">Uses the <i>ret<\/i> variable to determine whether an event has occurred on either of the two STREAMS. The <i>poll<\/i>() function is given 500 milliseconds to wait for an event to occur (if it has not occurred prior to the <i>poll<\/i>() call).<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p>4.<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"83%\">\n<p>Checks the returned value of <i>ret<\/i>. If a positive value is returned, one of the following can be done:<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\">a.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"10%\"><\/td>\n<td width=\"1%\"><\/td>\n<td width=\"77%\">\n<p style=\"margin-top: 1em\">Priority data can be written to the open STREAM on priority bands greater than 0, because the POLLWRBAND event occurred on the open STREAM (<i>fds<\/i>[0] or <i>fds<\/i>[1]).<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"10%\">\n<p>b.<\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"77%\">\n<p>Data can be written to the open STREAM on priority-band 0, because the POLLOUT event occurred on the open STREAM (<i>fds<\/i>[0] or <i>fds<\/i>[1]).<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"10%\">\n<p>5.<\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"77%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%; margin-top: 1em\">If the returned value is not a positive value, permission to write data to the open STREAM (on any priority band) is denied.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\">6.<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"83%\">\n<p style=\"margin-top: 1em\">If the POLLHUP event occurs on the open STREAM (<i>fds<\/i>[0] or <i>fds<\/i>[1]), the device on the open STREAM has disconnected.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%; margin-top: 1em\">#include <stropts.h> <br \/> #include <poll.h> &#8230; <br \/> struct pollfd fds[2]; <br \/> int timeout_msecs = 500; <br \/> int ret; <br \/> int i;<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\/* Open STREAMS device. bodies\/ usr\/ <br \/> fds[0].fd = open(&#8220;\/dev\/dev0&#8221;, &#8230;); <br \/> fds[1].fd = open(&#8220;\/dev\/dev1&#8221;, &#8230;); <br \/> fds[0].events = POLLOUT | POLLWRBAND; <br \/> fds[1].events = POLLOUT | POLLWRBAND;<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">ret = poll(fds, 2, timeout_msecs);<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">if (ret > 0) { <br \/> \/bin \/boot \/dead.letter \/dev \/etc \/home \/initrd \/lib \/lib64 \/lost+found \/media \/mnt \/opt \/proc \/release-notes.html \/release-notes.txt \/root \/run \/sbin \/srv \/sys \/tmp \/usr \/var An event on one of the fds has occurred. bodies\/ usr\/ <br \/> for (i=0; i<2; i++) { <br \/> if (fds[i].revents &#038; POLLWRBAND) { <br \/> \/bin \/boot \/dead.letter \/dev \/etc \/home \/initrd \/lib \/lib64 \/lost+found \/media \/mnt \/opt \/proc \/release-notes.html \/release-notes.txt \/root \/run \/sbin \/srv \/sys \/tmp \/usr \/var Priority data may be written on device number i. bodies\/ usr\/ <br \/> &#8230; <br \/> } <br \/> if (fds[i].revents &#038; POLLOUT) { <br \/> \/bin \/boot \/dead.letter \/dev \/etc \/home \/initrd \/lib \/lib64 \/lost+found \/media \/mnt \/opt \/proc \/release-notes.html \/release-notes.txt \/root \/run \/sbin \/srv \/sys \/tmp \/usr \/var Data may be written on device number i. bodies\/ usr\/ <br \/> &#8230; <br \/> } <br \/> if (fds[i].revents &#038; POLLHUP) { <br \/> \/bin \/boot \/dead.letter \/dev \/etc \/home \/initrd \/lib \/lib64 \/lost+found \/media \/mnt \/opt \/proc \/release-notes.html \/release-notes.txt \/root \/run \/sbin \/srv \/sys \/tmp \/usr \/var A hangup has occurred on device number i. bodies\/ usr\/ <br \/> &#8230; <br \/> } <br \/> } <br \/> }<\/p>\n<h2>APPLICATION USAGE <a name=\"APPLICATION USAGE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">None.<\/p>\n<h2>RATIONALE <a name=\"RATIONALE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The POLLHUP event does not occur for FIFOs just because the FIFO is not open for writing. It only occurs when the FIFO is closed by the last writer and persists until some process opens the FIFO for writing or until all read-only file descriptors for the FIFO are closed.<\/p>\n<h2>FUTURE DIRECTIONS <a name=\"FUTURE DIRECTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">None.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>Section 2.6<\/i>, <i>STREAMS<\/i>, <i>getmsg<\/i>(), <i>pselect<\/i>(), <i>putmsg<\/i>(), <i>read<\/i>(), <i>write<\/i>()<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The Base Definitions volume of POSIX.1-2017, <b><poll.h><\/b>, <b><stropts.h><\/b><\/p>\n<h2>COPYRIGHT <a name=\"COPYRIGHT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology &#8212; Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http:\/\/www.opengroup.org\/unix\/online.html .<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https:\/\/www.kernel.org\/doc\/man-pages\/reporting_bugs.html .<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  poll \u2014 input\/output multiplexing <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3779,1],"tags":[1594,1737],"class_list":["post-4836","post","type-post","status-publish","format-standard","hentry","category-3pm-perl-llamadas-de-bibliotecas","category-sin-categoria","tag-man3p","tag-poll"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4836","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4836"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4836\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}