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/man3nsl/t_sndudata.3nsl
          +++ new/usr/src/man/man3nsl/t_sndudata.3nsl
↓ open down ↓ 51 lines elided ↑ open up ↑
  52   52  .nf
  53   53  #include <xti.h>
  54   54  
  55   55  
  56   56  
  57   57  
  58   58  \fBint\fR \fBt_sndudata\fR(\fBint\fR \fIfd\fR, \fBconst struct t_unitdata *\fR\fIunitdata\fR);
  59   59  .fi
  60   60  
  61   61  .SH DESCRIPTION
  62      -.sp
  63   62  .LP
  64   63  This routine is part of the \fBXTI\fR interfaces which evolved from the
  65   64  \fBTLI\fR interfaces. \fBXTI\fR represents the future evolution of these
  66   65  interfaces. However, \fBTLI\fR interfaces are supported for compatibility. When
  67   66  using a \fBTLI\fR routine that has the same name as an \fBXTI\fR routine, the
  68   67  \fBtiuser.h\fR header file must be used.  Refer to the  \fBTLI\fR
  69   68  \fBCOMPATIBILITY\fR section for a description of differences between the two
  70   69  interfaces.
  71   70  .sp
  72   71  .LP
↓ open down ↓ 37 lines elided ↑ open up ↑
 110  109  .LP
 111  110  If the amount of data specified in \fIudata\fR exceeds the TSDU size as
 112  111  returned in the \fItsdu\fR field of the \fIinfo\fR argument of
 113  112  \fBt_open\fR(3NSL) or \fBt_getinfo\fR(3NSL), a \fBTBADDATA\fR error will be
 114  113  generated. If \fBt_sndudata()\fR is called before the destination user has
 115  114  activated its transport endpoint (see \fBt_bind\fR(3NSL)), the data unit may be
 116  115  discarded.
 117  116  .sp
 118  117  .LP
 119  118  If it is not possible for the transport provider to immediately detect the
 120      -conditions that cause the errors \fBTBADDADDR\fR and \fBTBADOPT\fR, these
      119 +conditions that cause the errors \fBTBADADDR\fR and \fBTBADOPT\fR, these
 121  120  errors will alternatively be returned by \fIt_rcvuderr.\fR Therefore, an
 122  121  application must be prepared to receive these errors in both of these ways.
 123  122  .sp
 124  123  .LP
 125  124  If the call is interrupted, \fBt_sndudata()\fR will return \fBEINTR\fR and the
 126  125  datagram will not be sent.
 127  126  .SH RETURN VALUES
 128      -.sp
 129  127  .LP
 130  128  Upon successful completion, a value of  \fB0\fR is returned.  Otherwise, a
 131  129  value of  -1 is returned and \fBt_errno\fR is set to indicate an error.
 132  130  .SH VALID STATES
 133      -.sp
 134  131  .LP
 135  132  \fBT_IDLE\fR.
 136  133  .SH ERRORS
 137      -.sp
 138  134  .LP
 139  135  On failure, \fBt_errno\fR is set to one of the following:
 140  136  .sp
 141  137  .ne 2
 142  138  .na
 143  139  \fB\fBTBADADDR\fR\fR
 144  140  .ad
 145  141  .RS 15n
 146  142  The specified protocol address was in an incorrect format or contained illegal
 147  143  information.
↓ open down ↓ 81 lines elided ↑ open up ↑
 229  225  .sp
 230  226  .ne 2
 231  227  .na
 232  228  \fB\fBTSYSERR\fR\fR
 233  229  .ad
 234  230  .RS 15n
 235  231  A system error has occurred during execution of this function.
 236  232  .RE
 237  233  
 238  234  .SH TLI COMPATIBILITY
 239      -.sp
 240  235  .LP
 241  236  The \fBXTI\fR and \fBTLI\fR interface definitions have common names but use
 242  237  different header files. This, and other semantic differences between the two
 243  238  interfaces are described in the subsections below.
 244  239  .SS "Interface Header"
 245      -.sp
 246  240  .LP
 247  241  The \fBXTI\fR interfaces use the header file, \fBxti.h.\fR \fBTLI\fR interfaces
 248  242  should \fInot\fR use this header.  They should use the header:
 249  243  .br
 250  244  .in +2
 251  245  #include <tiuser.h>
 252  246  .in -2
 253  247  .SS "Error Description Values"
 254      -.sp
 255  248  .LP
 256  249  The \fBt_errno\fR values that can be set by the \fBXTI\fR interface and cannot
 257  250  be set by the \fBTLI\fR interface are:
 258  251  .br
 259  252  .in +2
 260  253  \fBTPROTO\fR
 261  254  .in -2
 262  255  .br
 263  256  .in +2
 264  257  \fBTBADADDR\fR
↓ open down ↓ 4 lines elided ↑ open up ↑
 269  262  .in -2
 270  263  .br
 271  264  .in +2
 272  265  \fBTLOOK\fR
 273  266  .in -2
 274  267  .br
 275  268  .in +2
 276  269  \fBTOUTSTATE\fR
 277  270  .in -2
 278  271  .SS "Notes"
 279      -.sp
 280  272  .LP
 281  273  Whenever this function fails with \fBt_error\fR set to \fBTFLOW,\fR
 282  274  \fBO_NONBLOCK\fR must have been set.
 283  275  .SS "Option Buffers"
 284      -.sp
 285  276  .LP
 286  277  The format of the options in an \fBopt\fR buffer is dictated by the transport
 287  278  provider. Unlike the \fBXTI\fR interface, the \fBTLI\fR interface does not fix
 288  279  the buffer format.
 289  280  .SH ATTRIBUTES
 290      -.sp
 291  281  .LP
 292  282  See \fBattributes\fR(5)  for descriptions of the following attributes:
 293  283  .sp
 294  284  
 295  285  .sp
 296  286  .TS
 297  287  box;
 298  288  c | c
 299  289  l | l .
 300  290  ATTRIBUTE TYPE  ATTRIBUTE VALUE
 301  291  _
 302  292  MT Level        Safe
 303  293  .TE
 304  294  
 305  295  .SH SEE ALSO
 306      -.sp
 307  296  .LP
 308  297  \fBfcntl\fR(2), \fBt_alloc\fR(3NSL), \fBt_bind\fR(3NSL), \fBt_error\fR(3NSL),
 309  298  \fBt_getinfo\fR(3NSL), \fBt_look\fR(3NSL), \fBt_open\fR(3NSL),
 310  299  \fBt_rcvudata\fR(3NSL), \fBt_rcvuderr\fR(3NSL), \fBattributes\fR(5)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX