📄 timod.4
字号:
t_scalar_t OPT_length; /* options length */ t_scalar_t OPT_offset; /* options offset */ t_scalar_t SEQ_number; /* sequence number */};\fR\s+1.fifollowing by any connection response data..PPand returning a.B T_ok_ackstructure, formatted as follows:.sp.nf\fC\s-1\struct T_ok_ack { t_scalar_t PRIM_type; /* always T_OK_ACK */ t_scalar_t CORRECT_prim; /* primitive */};\fR\s+1.fi.PPor an error return value. See.I \*(lqRETURN VALUES,\*(rqbelow..PPThe buffer passed in the.B strioctlstructure.RI ( ic_dp )must be of sufficient size.RI ( ic_len )to hold the returned.B T_ok_ackstructure..\".\".SS TI_SETPEERNAME (('T' << 8) + 147).PP.I argis a pointer to a buffer passing in a.B T_conn_reqstructure, formatted as follows:.sp.nf\fC\s-1\struct T_conn_req { t_scalar_t PRIM_type; /* always T_CONN_REQ */ t_scalar_t DEST_length; /* dest addr length */ t_scalar_t DEST_offset; /* dest addr offset */ t_scalar_t OPT_length; /* options length */ t_scalar_t OPT_offset; /* options offset */};\fR\s+1followed by any connection request data..fi.PPand returning a.B T_ok_ackstructure, formatted as follows:.sp.nf\fC\s-1\struct T_ok_ack { t_scalar_t PRIM_type; /* always T_OK_ACK */ t_scalar_t CORRECT_prim; /* primitive */};\fR\s+1.fi.PPor an error return value. See.I \*(lqRETURN VALUES,\*(rqbelow..PPThe buffer passed in the.B strioctlstructure.RI ( ic_dp )must be of sufficient size.RI ( ic_len )to hold the returned.B T_ok_ackstructure..\".\".SS TI_SYNC (('T' << 8) + 148).PP.I argis a pointer to a buffer passing in a.B ti_sync_reqstructure, formatted as follows:.sp.nf\fC\s-1\struct ti_sync_req { u_int32_t tsr_flags;};\fR\s+1.fi.PPand returning a.B ti_sync_ackstructure, formatted as follows:.sp.nf\fC\s-1\struct ti_sync_ack { t_scalar_t PRIM_type; t_scalar_t TSDU_size; t_scalar_t ETSDU_size; t_scalar_t CDATA_size; t_scalar_t DDATA_size; t_scalar_t ADDR_size; t_scalar_t OPT_size; t_scalar_t TIDU_size; t_scalar_t SERV_type; t_scalar_t CURRENT_state; t_scalar_t PROVIDER_flag; t_uscalar_t tsa_qlen; u_int32_t tsa_flags;};\fR\s+1.fi.PPor an error return value. See.I \*(lqRETURN VALUES,\*(rqbelow..PPField.I tsr_flagscan contain zero or more of the following flags bitwise OR'ed together:.TP.B TSRF_INFO_REQRequests that the response contain a completed information request..TP.B TSRF_IS_EXP_IN_RCVBUFRequests that the response contain a flag indicating whether there isexpedited data in the receive buffer..TP.B TSRF_QLEN_REQRequests that the response contain the queue length of the transport serviceprovider. Note that this information is not contained in a.B T_capability_ackbut is necessary when a file descriptor is being synced on an open transportendpoint..PPField.I tsa_flagscan contain zero or more of the following flags bitwise OR'ed together:.TP.B TSAF_EXP_QUEUEDIndicates that there is expedited data queued in the transport endpointreceive buffer..PPThe buffer passed in the.B strioctlstructure.RI ( ic_dp )must be of sufficient size.RI ( ic_len )to hold the returned.B ti_sync_ackstructure..\".\".SS TI_GETADDRS (('T' << 8) + 149).PP.I argis a pointer to a buffer passing in a.B T_addr_reqstructure, formatted as follows:.sp.nf\fC\s-1\struct T_addr_req { t_scalar_t PRIM_type; /* always T_ADDR_REQ */};\fR\s+1.fi.PPand returning a.B T_addr_ackstructure, formatted as follows:.sp.nf\fC\s-1\struct T_addr_ack { t_scalar_t PRIM_type; /* always T_ADDR_ACK */ t_scalar_t LOCADDR_length; /* length of local address */ t_scalar_t LOCADDR_offset; /* offset of local address */ t_scalar_t REMADDR_length; /* length of remote address */ t_scalar_t REMADDR_offset; /* offset of remote address */};\fR\s+1.fi.PPor an error return value, See.I \*(lqRETURN VALUES,\*(rqbelow..PPThe buffer passed in the.B strioctlstructure.RI ( ic_dp )must be of sufficient size.RI ( ic_len )to hold the returned.B T_addr_ackstructure..\".\".SS TI_CAPABILITY (('T' << 8) + 150).PP.I argis a pointer to a buffer passing in a.BR T_capability_reqstructure, formatted as follows:.sp.nf\fC\s-1\struct T_capability_req { t_scalar_t PRIM_type; /* T_CAPABILITY_REQ */ t_uscalar_t CAP_bits1; /* capability bits 1 */};\fR\s+1.fi.PPand returning a.B T_capability_ackstructure, formatted as follows:.sp.nf\fC\s-1\struct T_capability_ack { t_scalar_t PRIM_type; /* T_CAPABILITY_ACK */ t_uscalar_t CAP_bits1; /* capability bits #1 */ struct T_info_ack INFO_ack; /* info acknowledgement */ t_uscalar_t ACCEPTOR_id; /* accepting endpoint id */};\fR\s+1.fi.PPor an error return value, See.I \*(lqRETURN VALUES,\*(rqbelow..PPThe buffer passed in the.B strioctlstructure.RI ( ic_dp )must be of sufficient size.RI ( ic_len )to hold the returned.B T_capability_ackstructure..\".\".SH "RETURN VALUES".PP.PPWhen.B timodioctls succeed, they return zero and the returned TLI message in the areapointed to by the.I ic_dpmember of the.B strioctlstructure pointed to by.IR arg .When.B timodioctls fail due to a.B T_ERROR_ACKbeing returned from the underlying TLI driver,.B timodreturns a concatentation of the UNIX_error and the TLI_error as follows:.BR "((p->UNIX_error << 8) + p->TLI_error)" .When the ioctl fails, .B timodreturns -1 and sets.BI errno (3)to an appropriate error number.See.BR streamio (7)for a list of error numbers returned by the.B I_STRcommand..\".\".SH ERRORS.PP.PPWhen.B timodioctl calls fail,.B timodreturns -1 and sets the.BI errno (3)to an appropriate error number.See.BR streamio (7)for a list of error numbers returned by the.B I_STRcommand..\".\".SH MODULES.PP.RB \*(lq timod \*(rq.I STREAMSmodule..\".\".SH "SEE ALSO".PP.BR ioctl (2),.BR streamio (7),.BR tpi (7),.BR sockmod (4)..\".\".SH BUGS.PP.B timodhas been tested with the.I /usr/bin/test-timodconformance test suite..PP.B timodhas no known bugs..\".\".SH COMPATIBILITY.PP.PPThis.B Linux Fast-STREAMS.[lfs.]implementation of.B timodwas backported to.B LiS.[LiS.]to repair deficiencies in the previous.B LiSimplementation..PP.B timodis compatible with.BR "XNS 5.2".[xns.]and.BR "SVR 4.2" ,.[svr42spg.]and descriptions for.BR UnixWare7 \(rg,.[uw7doc.].BR AIX \(rg,.[aixdoc.].BR DigitalUNIX \(rg,.[osfdoc.].BR HP-UX \(rg,.[hpuxdoc.].BR Solaris \(rg,.[soldoc.].BR SUPER-UX \(rg,.[suxdoc.]with the following portability considerations:.IP \(em \w'\(em\ \ 'uMost other implementations only document the.BR TI_GETINFO ,.BR TI_OPTMGMT ,.BR TI_BIND " and " T_UNBINDIO controls..B timodis consistent with this documentation..IP \(emMost other implementations do not document.BR TI_GETMYNAME ,.BR TI_GETPEERNAME ,.BR TI_SETMYNAME " and " TI_SETPEERNAMEIO controls. Some of these are archaic and deprecated..B timodprovides the non-portable mechanisms described here. Portable applicationprograms should not use these IO controls directly..B timoduses special versions of these IO controls to ease work involved in theXTI/TLI library and to increase efficiency of that library..IP \(em.BR TI_SYNC ,.BR TI_GETADDR " and " TI_CAPABILITYIO controls are consistent with internal documentation of other implementations..B timoduses these IO controls to ease work involved in the XTI/TLI library and toincrease efficiency of that library..B timodprovides the non-portable mechanisms described here. Portable applicationprograms should not use these IO controls directly..\".\".SH CONFORMANCE.PP.BR SVID ,.[svid.].BR XID ,.[xbd5.].BR "XNS 5.2" ,.[xns.].BR SUSv2 ,.[susv2.].BR SUSv3 / POSIX ,.[susv3.].\".\".SH HISTORY.PP.B timodfirst appeared in.B SVR 3.[svr3.].\".\".[$LIST$.].TI
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -