summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c/epoll_wait.3c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man3c/epoll_wait.3c')
-rw-r--r--usr/src/man/man3c/epoll_wait.3c14
1 files changed, 3 insertions, 11 deletions
diff --git a/usr/src/man/man3c/epoll_wait.3c b/usr/src/man/man3c/epoll_wait.3c
index 6ae9e0f9c4..7808661238 100644
--- a/usr/src/man/man3c/epoll_wait.3c
+++ b/usr/src/man/man3c/epoll_wait.3c
@@ -4,7 +4,7 @@
.\" Common Development and Distribution License ("CDDL"), version 1.0.
.\" You may only use this file in accordance with the terms of version
.\" 1.0 of the CDDL.
-.\"
+.\"
.\" A full copy of the text of the CDDL should have accompanied this
.\" source. A copy of the CDDL is also available via the Internet at
.\" http://www.illumos.org/license/CDDL.
@@ -12,24 +12,21 @@
.SH NAME
epoll_wait, epoll_pwait \- wait for epoll events
.SH SYNOPSIS
-
-.LP
.nf
#include <sys/epoll.h>
-\fBint\fR \fBepoll_wait\fR(\fBint\fR \fIepfd\fR, \fBstruct epoll_event *\fR\fIevents\fR,
+\fBint\fR \fBepoll_wait\fR(\fBint\fR \fIepfd\fR, \fBstruct epoll_event *\fR\fIevents\fR,
\fBint\fR \fImaxevents\fR, \fBint\fR \fItimeout\fR);
.fi
.LP
.nf
-\fBint\fR \fBepoll_pwait\fR(\fBint\fR \fIepfd\fR, \fBstruct epoll_event *\fR\fIevents\fR,
+\fBint\fR \fBepoll_pwait\fR(\fBint\fR \fIepfd\fR, \fBstruct epoll_event *\fR\fIevents\fR,
\fBint\fR \fImaxevents\fR, \fBint\fR \fItimeout\fR,
\fBconst sigset_t *\fR\fIsigmask\fR);
.fi
.SH DESCRIPTION
-.LP
The \fBepoll_wait()\fR function waits for events on the \fBepoll\fR(5)
instance specified by \fIepfd\fR. The \fIevents\fR parameter must point to
an array of \fImaxevents\fR \fIepoll_event\fR structures to be
@@ -45,14 +42,12 @@ signal mask upon return, and is therefore similar to the relationship
between \fBselect\fR(3C) and \fBpselect\fR(3C).
.SH RETURN VALUES
-.LP
Upon successful completion, \fBepoll_wait()\fR and \fBepoll_pwait()\fR return
the number of events, or 0 if none was pending and \fItimeout\fR milliseconds
elapsed. If an error occurs, -1 is returned and errno is set to indicate
the error.
.SH ERRORS
-.LP
The \fBepoll_wait()\fR and \fBepoll_pwait()\fR functions will fail if:
.sp
.ne 2
@@ -93,8 +88,6 @@ is not greater than zero.
.sp
.SH NOTES
-.LP
-
The \fBepoll\fR(5) facility is implemented for purposes of offering
compatibility for Linux-borne applications; native
applications should continue to prefer using event ports via the
@@ -102,7 +95,6 @@ applications should continue to prefer using event ports via the
interfaces. See \fBepoll\fR(5) for compatibility details and restrictions.
.SH SEE ALSO
-.LP
\fBepoll_create\fR(3C), \fBepoll_ctl\fR(3C),
\fBport_create\fR(3C), \fBport_associate\fR(3C), \fBport_get\fR(3C),
\fBpselect\fR(3C), \fBepoll\fR(5)