Print this page
11622 clean up rarer mandoc lint warnings

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3c/epoll_ctl.3c
          +++ new/usr/src/man/man3c/epoll_ctl.3c
↓ open down ↓ 4 lines elided ↑ open up ↑
   5    5  .\"  You may only use this file in accordance with the terms of version
   6    6  .\"  1.0 of the CDDL.
   7    7  .\"
   8    8  .\"  A full copy of the text of the CDDL should have accompanied this
   9    9  .\"  source.  A copy of the CDDL is also available via the Internet at
  10   10  .\"  http://www.illumos.org/license/CDDL.
  11   11  .TH EPOLL_CTL 3C "April 9, 2016"
  12   12  .SH NAME
  13   13  epoll_ctl \- control an epoll instance
  14   14  .SH SYNOPSIS
  15      -
  16      -.LP
  17   15  .nf
  18   16  #include <sys/epoll.h>
  19   17  
  20   18  \fBint\fR \fBepoll_ctl\fR(\fBint\fR \fIepfd\fR, \fBint\fR \fIop\fR, \fBint\fR \fIfd\fR, \fBstruct epoll_event *\fR\fIevent\fR);
  21   19  .fi
  22   20  
  23   21  .SH DESCRIPTION
  24      -.LP
  25   22  The \fBepoll_ctl()\fR function executes the operation specified by
  26   23  \fIop\fR (as parameterized by \fIevent\fR) on the \fIepfd\fR epoll instance.
  27   24  Valid values for \fIop\fR:
  28   25  
  29   26  .sp
  30   27  .ne 2
  31   28  .na
  32   29  \fBEPOLL_CTL_ADD\fR
  33   30  .ad
  34   31  .RS 12n
↓ open down ↓ 202 lines elided ↑ open up ↑
 237  234  .RS 14n
 238  235  Sets the specified event to be edge-triggered mode instead of the default
 239  236  mode of level-triggered.  In this mode, events will be induced by
 240  237  transitions on an event source rather than the state of the event source.
 241  238  While perhaps superficially appealing, this mode introduces several new
 242  239  potential failure modes for user-level software and should be used
 243  240  with caution.
 244  241  .RE
 245  242  
 246  243  .SH RETURN VALUES
 247      -.LP
 248  244  Upon successful completion, \fBepoll_ctl()\fR returns 0.
 249  245  If an error occurs, -1 is returned and errno is set to indicate
 250  246  the error.
 251  247  
 252  248  .SH ERRORS
 253      -.LP
 254  249  \fBepoll_ctl()\fR will fail if:
 255  250  .sp
 256  251  .ne 2
 257  252  .na
 258  253  \fB\fBEBADF\fR\fR
 259  254  .ad
 260  255  .RS 10n
 261  256  \fIepfd\fR is not a valid file descriptor.
 262  257  .RE
 263  258  
↓ open down ↓ 23 lines elided ↑ open up ↑
 287  282  \fB\fBENOENT\fR\fR
 288  283  .ad
 289  284  .RS 10n
 290  285  The operation specified was \fBEPOLL_CTL_MOD\fR or \fBEPOLL_CTL_DEL\fR and
 291  286  the specified file descriptor is not associated with an event for the
 292  287  specified \fBepoll\fR(5) instance.
 293  288  .RE
 294  289  
 295  290  .sp
 296  291  .SH NOTES
 297      -.LP
 298      -
 299  292  The \fBepoll\fR(5) facility is implemented for purposes of offering
 300  293  compatibility for Linux-borne applications; native
 301  294  applications should continue to prefer using event ports via the
 302  295  \fBport_create\fR(3C), \fBport_associate\fR(3C) and \fBport_get\fR(3C)
 303  296  interfaces.  See \fBepoll\fR(5) for compatibility details and restrictions.
 304  297  
 305  298  .SH SEE ALSO
 306      -.LP
 307  299  \fBepoll_create\fR(3C), \fBepoll_wait\fR(3C),
 308  300  \fBport_create\fR(3C), \fBport_associate\fR(3C), \fBport_get\fR(3C),
 309  301  \fBepoll\fR(5)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX