.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd February 27, 2005
+.Dd March 18, 2015
.Dt POLL 2
.Os
.Sh NAME
.Fa "int timeout"
.Fc
.Sh DESCRIPTION
-.Fn Poll
+.Fn poll
examines a set of file descriptors
to see if some of them are ready for I/O
or if certain events have occurred on them.
.Fa timeout
is -1, the poll blocks indefinitely.
.Sh RETURN VALUES
-.Fn Poll
+.Fn poll
returns the number of descriptors that are ready for I/O,
or -1 if an error occurred.
If the time limit expires,
.Va errno
will be set to indicate the error.
.Sh ERRORS
-.Fn Poll
+.Fn poll
will fail if:
.Bl -tag -width Er
.\" ===========
.Sh SEE ALSO
.Xr accept 2 ,
.Xr connect 2 ,
+.Xr connectx 2 ,
.Xr kevent 2 ,
.Xr read 2 ,
.Xr recv 2 ,