Print this page
12315 errors in section 7i of the manual

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man7i/streamio.7i
          +++ new/usr/src/man/man7i/streamio.7i
        1 +.\" Copyright 2020 Peter Tribble.
   1    2  .\" Copyright (c) 2017, Joyent, Inc.
   2    3  .\" Copyright (c) 2009, Sun Microsystems, Inc.  All Rights Reserved.
   3    4  .\" Copyright 1989 AT&T
   4    5  .\" The contents of this file are subject to the terms of the
   5    6  .\" Common Development and Distribution License (the "License").
   6    7  .\" You may not use this file except in compliance with the License.
   7    8  .\"
   8    9  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9   10  .\" or http://www.opensolaris.org/os/licensing.
  10   11  .\" See the License for the specific language governing permissions
  11   12  .\" and limitations under the License.
  12   13  .\"
  13   14  .\" When distributing Covered Code, include this CDDL HEADER in each
  14   15  .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   16  .\" If applicable, add the following below this CDDL HEADER, with the
  16   17  .\" fields enclosed by brackets "[]" replaced with your own identifying
  17   18  .\" information: Portions Copyright [yyyy] [name of copyright owner]
  18      -.Dd October 29, 2017
       19 +.Dd February 17, 2020
  19   20  .Dt STREAMIO 7I
  20   21  .Os
  21   22  .Sh NAME
  22   23  .Nm streamio
  23   24  .Nd STREAMS ioctl commands
  24   25  .Sh SYNOPSIS
  25   26  .In sys/types.h
  26   27  .In stropts.h
  27   28  .In sys/conf.h
  28   29  .Ft int
↓ open down ↓ 321 lines elided ↑ open up ↑
 350  351  If the value of
 351  352  .Fa arg
 352  353  is zero, the calling process will be unregistered and
 353  354  will not receive further
 354  355  .Dv SIGPOLL
 355  356  signals.
 356  357  On failure,
 357  358  .Va errno
 358  359  is set to one of the following values:
 359  360  .Bl -tag -width EINVAL
 360      -.It Sy EINVAL
      361 +.It Er EINVAL
 361  362  .Fa arg
 362  363  value is invalid or
 363  364  .Fa arg
 364  365  is zero and process is not registered to receive the
 365  366  .Dv SIGPOLL
 366  367  signal.
 367      -.It Sy EAGAIN
      368 +.It Er EAGAIN
 368  369  Allocation of a data structure to store the signal request failed.
 369  370  .El
 370  371  .It Dv I_GETSIG
 371  372  Returns the events for which the calling process is currently registered to be
 372  373  sent a
 373  374  .Dv SIGPOLL
 374  375  signal.
 375  376  The events are returned as a bitmask pointed to by
 376  377  .Va arg ,
 377  378  where the events are those specified in the description of
 378  379  .Dv I_SETSIG
 379  380  above.
 380  381  On failure,
 381  382  .Va errno
 382  383  is set to one of the following values:
 383  384  .Bl -tag -width EINVAL
 384      -.It Sy EINVAL
      385 +.It Er EINVAL
 385  386  Process not registered to receive the
 386  387  .Dv SIGPOLL
 387  388  signal.
 388      -.It Sy EFAULT
      389 +.It Er EFAULT
 389  390  .Fa arg
 390  391  points outside the allocated address space.
 391  392  .El
 392  393  .It Dv I_FIND
 393  394  Compares the names of all modules currently present in the stream to the name
 394  395  pointed to by
 395  396  .Fa arg ,
 396  397  and returns 1 if the named module is present in the stream.
 397  398  It returns 0 if the named module is not present.
 398  399  On failure,
 399  400  .Va errno
 400  401  is set to one of the following values:
 401  402  .Bl -tag -width EINVAL
 402      -.It Sy EFAULT
      403 +.It Er EFAULT
 403  404  .Fa arg
 404  405  points outside the allocated address space.
 405      -.It Sy EINVAL
      406 +.It Er EINVAL
 406  407  .Fa arg
 407  408  does not contain a valid module name.
 408  409  .El
 409  410  .It Dv I_PEEK
 410  411  Allows a user to retrieve the information in the first message on the stream
 411  412  head read queue without taking the message off the queue.
 412  413  .Dv I_PEEK
 413  414  is analogous to
 414  415  .Xr getmsg 2
 415  416  except that it does not remove the message from the queue.
↓ open down ↓ 384 lines elided ↑ open up ↑
 800  801  .Pp
 801  802  At most one
 802  803  .Dv I_STR
 803  804  can be active on a stream.
 804  805  Further
 805  806  .Dv I_STR
 806  807  calls
 807  808  will block until the active
 808  809  .Dv I_STR
 809  810  completes via a positive or negative
 810      -acknowlegment, a timeout, or an error condition at the stream head.
      811 +acknowledgement, a timeout, or an error condition at the stream head.
 811  812  By setting the
 812  813  .Fa ic_timout
 813  814  field to 0, the user is requesting STREAMS to provide
 814  815  the
 815  816  .Sy DEFAULT
 816  817  timeout.
 817  818  The default timeout is specific to the STREAMS
 818  819  implementation and may vary depending on which release of Solaris you are
 819  820  using.
 820  821  For Solaris 8 (and earlier versions), the default timeout is fifteen
↓ open down ↓ 69 lines elided ↑ open up ↑
 890  891  .El
 891  892  .Pp
 892  893  To not send a zero-length message when a write of 0 bytes occurs, this bit must
 893  894  not be set in
 894  895  .Fa arg .
 895  896  .Pp
 896  897  On failure,
 897  898  .Va errno
 898  899  may be set to the following value:
 899  900  .Bl -tag -width EINVAL
 900      -.It Sy EINVAL
      901 +.It Er EINVAL
 901  902  .Fa arg
 902  903  is not the above legal value.
 903  904  .El
 904  905  .It Dv I_GWROPT
 905  906  Returns the current write mode setting, as described above, in the
 906  907  .Vt int
 907  908  that is pointed to by the argument
 908  909  .Fa arg .
 909  910  .It Dv I_SENDFD
 910  911  Requests the stream associated with
↓ open down ↓ 250 lines elided ↑ open up ↑
1161 1162  .Fa arg
1162 1163  is flow controlled,
1163 1164  .Sy 1
1164 1165  if the band is writable, or
1165 1166  .Sy \(mi1
1166 1167  on error.
1167 1168  On failure,
1168 1169  .Va errno
1169 1170  is set to the following value:
1170 1171  .Bl -tag -width EINVAL
1171      -.It Sy EINVAL
     1172 +.It Er EINVAL
1172 1173  Invalid
1173 1174  .Va arg
1174 1175  value.
1175 1176  .El
1176 1177  .It Dv I_SETCLTIME
1177 1178  Allows the user to set the time the stream head will delay when a stream is
1178 1179  closing and there are data on the write queues.
1179 1180  Before closing each module and driver, the stream head will delay for the
1180 1181  specified amount of time to allow the data to drain.
1181 1182  Note, however, that the module or driver may itself delay in its close routine;
↓ open down ↓ 70 lines elided ↑ open up ↑
1252 1253  Returns the current error mode setting in an
1253 1254  .Vt int
1254 1255  pointed to by the argument
1255 1256  .Fa arg .
1256 1257  Error modes are described above for
1257 1258  .Dv I_SERROPT .
1258 1259  On failure,
1259 1260  .Va errno
1260 1261  is set to the following value:
1261 1262  .Bl -tag -width EFAULT
1262      -.It Sy EFAULT
     1263 +.It Er EFAULT
1263 1264  .Fa arg
1264 1265  points outside the allocated address space.
1265 1266  .El
1266 1267  .El
1267 1268  .Pp
1268 1269  The following four commands are used for connecting and disconnecting
1269 1270  multiplexed STREAMS configurations.
1270 1271  .Bl -tag -width I_PUNLINK
1271 1272  .It Dv I_LINK
1272 1273  Connects two streams, where
↓ open down ↓ 215 lines elided ↑ open up ↑
1488 1489  then all streams that are persistent links to
1489 1490  .Fa fildes
1490 1491  are disconnected.
1491 1492  As in
1492 1493  .Dv I_PLINK ,
1493 1494  this command requires the multiplexing driver to acknowledge the unlink.
1494 1495  On failure,
1495 1496  .Va errno
1496 1497  is set to one of the following values:
1497 1498  .Bl -tag -width EAGAIN
1498      -.It Sy ENXIO
     1499 +.It Er ENXIO
1499 1500  Hangup received on
1500 1501  .Fa fildes .
1501 1502  .It Er ETIME
1502 1503  Time out before acknowledgement message was received at the stream head.
1503 1504  .It Er EAGAIN
1504 1505  Unable to allocate buffers for the acknowledgement message.
1505 1506  .It Er EINVAL
1506 1507  Invalid multiplexor ID number.
1507 1508  .It Er EINVAL
1508 1509  .Fa fildes
↓ open down ↓ 42 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX