Print this page
11622 clean up rarer mandoc lint warnings

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man5/epoll.5
          +++ new/usr/src/man/man5/epoll.5
   1    1  '\" te
   2    2  .\"  Copyright (c) 2014, Joyent, Inc. All Rights Reserved.
   3    3  .\"  This file and its contents are supplied under the terms of the
   4    4  .\"  Common Development and Distribution License ("CDDL"), version 1.0.
   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 5 "Apr 17, 2014"
  12   12  .SH NAME
  13   13  epoll \- Linux-compatible I/O event notification facility
  14   14  .SH SYNOPSIS
  15      -
  16      -.LP
  17   15  .nf
  18   16  #include <sys/epoll.h>
  19   17  .fi
  20   18  
  21   19  .SH DESCRIPTION
  22      -.LP
  23      -
  24   20  \fBepoll\fR is a facility for efficient event-oriented I/O that has a
  25   21  similar model to \fBpoll\fR(2), but does not necessitate rescanning a
  26   22  set of file descriptors to wait for an event.  \fBepoll\fR is of Linux
  27   23  origins, and this facility is designed to be binary-compatible with
  28   24  the Linux facility, including the following interfaces:
  29   25  
  30   26  .RS +4
  31   27  .TP
  32   28  .ie t \(bu
  33   29  .el o
↓ open down ↓ 29 lines elided ↑ open up ↑
  63   59  .TP
  64   60  .ie t \(bu
  65   61  .el o
  66   62  \fBepoll_pwait\fR(3C) opeates in a similar manner to \fBepoll_wait\fR(3C), but
  67   63  allows the caller to specify a signal mask to be set atomically with respect
  68   64  to waiting for events.
  69   65  .RE
  70   66  
  71   67  .sp
  72   68  .SH NOTES
  73      -.LP
  74      -
  75   69  The \fBepoll\fR facility is implemented
  76   70  for purposes of offering compatibility to and portability of Linux-borne
  77   71  applications; native applications should continue to prefer using event ports
  78   72  via the \fBport_create\fR(3C),
  79   73  \fBport_associate\fR(3C) and \fBport_getn\fR(3C) interfaces.
  80   74  In particular, use of \fBepoll\fR in a multithreaded environment is fraught
  81   75  with peril; even when using \fBEPOLLONESHOT\fR for one-shot events,
  82   76  there are race conditions with respect to \fBclose\fR(2) that are unresolvable.
  83   77  (For more details, see the aborted effort in Linux to resolve this via the
  84   78  proposed
↓ open down ↓ 10 lines elided ↑ open up ↑
  95   89  descriptor in the parent,
  96   90  any events generated in the child on the implicitly duplicated file descriptor
  97   91  will continue to be delivered to the parent -- despite the fact that the
  98   92  parent itself no longer has any notion of the file description!
  99   93  This \fBepoll\fR facility refuses to honor
 100   94  these semantics; closing the \fBEPOLL_CTL_ADD\fR'd file descriptor
 101   95  will always result in no further
 102   96  events being generated for that event description.
 103   97  
 104   98  .SH SEE ALSO
 105      -.LP
 106   99  \fBepoll_create\fR(3C), \fBepoll_create1\fR(3C), \fBepoll_ctl\fR(3C),
 107  100  \fBepoll_wait\fR(3C), \fBepoll_pwait\fR(3C),
 108  101  \fBport_create\fR(3C), \fBport_associate\fR(3C), \fBport_dissociate\fR(3C),
 109  102  \fBport_get\fR(3C),
 110  103  \fBpselect\fR(3C)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX