Print this page
11622 clean up rarer mandoc lint warnings
*** 10,29 ****
.\" http://www.illumos.org/license/CDDL.
.TH EPOLL_CTL 3C "April 9, 2016"
.SH NAME
epoll_ctl \- control an epoll instance
.SH SYNOPSIS
-
- .LP
.nf
#include <sys/epoll.h>
\fBint\fR \fBepoll_ctl\fR(\fBint\fR \fIepfd\fR, \fBint\fR \fIop\fR, \fBint\fR \fIfd\fR, \fBstruct epoll_event *\fR\fIevent\fR);
.fi
.SH DESCRIPTION
- .LP
The \fBepoll_ctl()\fR function executes the operation specified by
\fIop\fR (as parameterized by \fIevent\fR) on the \fIepfd\fR epoll instance.
Valid values for \fIop\fR:
.sp
--- 10,26 ----
*** 242,258 ****
potential failure modes for user-level software and should be used
with caution.
.RE
.SH RETURN VALUES
- .LP
Upon successful completion, \fBepoll_ctl()\fR returns 0.
If an error occurs, -1 is returned and errno is set to indicate
the error.
.SH ERRORS
- .LP
\fBepoll_ctl()\fR will fail if:
.sp
.ne 2
.na
\fB\fBEBADF\fR\fR
--- 239,253 ----
*** 292,309 ****
specified \fBepoll\fR(5) instance.
.RE
.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
\fBport_create\fR(3C), \fBport_associate\fR(3C) and \fBport_get\fR(3C)
interfaces. See \fBepoll\fR(5) for compatibility details and restrictions.
.SH SEE ALSO
- .LP
\fBepoll_create\fR(3C), \fBepoll_wait\fR(3C),
\fBport_create\fR(3C), \fBport_associate\fR(3C), \fBport_get\fR(3C),
\fBepoll\fR(5)
--- 287,301 ----