Print this page
10067 Miscellaneous man page typos
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Volker A. Brandt <vab@bb-c.de>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3c/select.3c.man.txt
          +++ new/usr/src/man/man3c/select.3c.man.txt
↓ open down ↓ 50 lines elided ↑ open up ↑
  51   51       The select() and pselect() functions support regular files, terminal and
  52   52       pseudo-terminal devices, STREAMS-based files, FIFOs, pipes, and sockets.
  53   53       The behavior of select() and pselect() on file descriptors that refer to
  54   54       other types of file is unspecified.
  55   55  
  56   56       The nfds argument specifies the range of file descriptors to be tested.
  57   57       The first nfds descriptors are checked in each set; that is, the
  58   58       descriptors from zero through ``nfds - 1'' in the descriptor sets are
  59   59       examined.
  60   60  
  61      -     If the readfs argument is not a null pointer, it points to an object of
       61 +     If the readfds argument is not a null pointer, it points to an object of
  62   62       type fd_set that on input specifies the file descriptors to be checked
  63   63       for being ready to read, and on output indicates which file descriptors
  64   64       are ready to read.
  65   65  
  66      -     If the writefs argument is not a null pointer, it points to an object of
       66 +     If the writefds argument is not a null pointer, it points to an object of
  67   67       type fd_set that on input specifies the file descriptors to be checked
  68   68       for being ready to write, and on output indicates which file descriptors
  69   69       are ready to write.
  70   70  
  71   71       If the errorfds argument is not a null pointer, it points to an object of
  72   72       type fd_set that on input specifies the file descriptors to be checked
  73   73       for error conditions pending, and on output indicates which file
  74   74       descriptors have error conditions pending.
  75   75  
  76      -     Upon successful completion, the objects pointed to by the readfs,
  77      -     writefs, and errorfds arguments are modified to indicate which file
       76 +     Upon successful completion, the objects pointed to by the readfds,
       77 +     writefds, and errorfds arguments are modified to indicate which file
  78   78       descriptors are ready for reading, ready for writing, or have an error
  79   79       condition pending, respectively, and return the total number of ready
  80   80       descriptors in all the output sets.  For each file descriptor less than
  81   81       nfds, the corresponding bit will be set on successful completion if it
  82   82       was set on input and the associated condition is true for that file
  83   83       descriptor.
  84   84  
  85   85       If none of the selected descriptors are ready for the requested
  86   86       operation, the select() or pselect() function blocks until at least one
  87   87       of the requested operations becomes ready, until the timeout occurs, or
↓ open down ↓ 73 lines elided ↑ open up ↑
 161  161       If the timeout argument is not a null pointer, it points to an object of
 162  162       type struct timeval that specifies a maximum interval to wait for the
 163  163       selection to complete.  If the timeout argument points to an object of
 164  164       type struct timeval whose members are 0, select() does not block.  If the
 165  165       timeout argument is a null pointer, select() blocks until an event causes
 166  166       one of the masks to be returned with a valid (non-zero) value.  If the
 167  167       time limit expires before any event occurs that would cause one of the
 168  168       masks to be set to a non-zero value, select() completes successfully and
 169  169       returns 0.
 170  170  
 171      -     If the readfs, writefds, and errorfds arguments are all null pointers and
 172      -     the timeout argument is not a null pointer, select() or pselect() blocks
 173      -     for the time specified, or until interrupted by a signal.  If the
      171 +     If the readfds, writefds, and errorfds arguments are all null pointers
      172 +     and the timeout argument is not a null pointer, select() or pselect()
      173 +     blocks for the time specified, or until interrupted by a signal.  If the
 174  174       readfds, writefds, and errorfds arguments are all null pointers and the
 175  175       timeout argument is a null pointer, select() blocks until interrupted by
 176  176       a signal.
 177  177  
 178  178       File descriptors associated with regular files always select true for
 179  179       ready to read, ready to write, and error conditions.
 180  180  
 181  181       On failure, the objects pointed to by the readfds, writefds, and errorfds
 182  182       arguments are not modified.  If the timeout interval expires without the
 183  183       specified condition being true for any of the specified file descriptors,
↓ open down ↓ 82 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX