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
          +++ new/usr/src/man/man3c/select.3c
↓ open down ↓ 156 lines elided ↑ open up ↑
 157  157  .Fa nfds
 158  158  argument specifies the range of file descriptors to be tested.
 159  159  The first
 160  160  .Fa nfds
 161  161  descriptors are checked in each set; that is, the
 162  162  descriptors from zero through
 163  163  .Dq Li nfds - 1
 164  164  in the descriptor sets are examined.
 165  165  .Pp
 166  166  If the
 167      -.Fa readfs
      167 +.Fa readfds
 168  168  argument is not a null pointer, it points to an object of
 169  169  type
 170  170  .Vt fd_set
 171  171  that on input specifies the file descriptors to be checked
 172  172  for being ready to read, and on output indicates which file descriptors are
 173  173  ready to read.
 174  174  .Pp
 175  175  If the
 176      -.Fa writefs
      176 +.Fa writefds
 177  177  argument is not a null pointer, it points to an object of
 178  178  type
 179  179  .Vt fd_set
 180  180  that on input specifies the file descriptors to be checked
 181  181  for being ready to write, and on output indicates which file descriptors are
 182  182  ready to write.
 183  183  .Pp
 184  184  If the
 185  185  .Fa errorfds
 186  186  argument is not a null pointer, it points to an object of
 187  187  type
 188  188  .Vt fd_set
 189  189  that on input specifies the file descriptors to be checked
 190  190  for error conditions pending, and on output indicates which file descriptors
 191  191  have error conditions pending.
 192  192  .Pp
 193  193  Upon successful completion, the objects pointed to by the
 194      -.Fa readfs ,
 195      -.Fa writefs ,
      194 +.Fa readfds ,
      195 +.Fa writefds ,
 196  196  and
 197  197  .Fa errorfds
 198  198  arguments are modified to indicate which file descriptors are ready for reading,
 199  199  ready for writing, or have an error condition pending, respectively, and return
 200  200  the total number of ready descriptors in all the output sets.
 201  201  For each file descriptor less than
 202  202  .Fa nfds ,
 203  203  the corresponding bit will be set on successful completion if it was set on
 204  204  input and the associated condition is true for that file descriptor.
 205  205  .Pp
↓ open down ↓ 141 lines elided ↑ open up ↑
 347  347  argument is a null pointer,
 348  348  .Fn select
 349  349  blocks until an event causes one of the masks to be returned with a valid
 350  350  (non-zero) value.
 351  351  If the time limit expires before any event occurs that would cause one of the
 352  352  masks to be set to a non-zero value,
 353  353  .Fn select
 354  354  completes successfully and returns 0.
 355  355  .Pp
 356  356  If the
 357      -.Fa readfs ,
      357 +.Fa readfds ,
 358  358  .Fa writefds ,
 359  359  and
 360  360  .Fa errorfds
 361  361  arguments are all null pointers and the
 362  362  .Fa timeout
 363  363  argument is not a null pointer,
 364  364  .Fn select
 365  365  or
 366  366  .Fn pselect
 367  367  blocks for the time specified, or until interrupted by a
↓ open down ↓ 164 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX