t_close.3xti

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3XTI 代码 · 共 69 行

3XTI
69
字号
.TH t_close 3xti.SH Namet_close \- close a transport endpoint .SH Syntax.B #include <xti.h>.br.sp 1.B int t_close \fIfd\fB).br.B int \fIfd\fB;.SH Arguments.IP \fIfd\fR 10Identifies the local transport endpoint..SH Description.NXR "t_close system call".NXA "t_close system call" "t_open system call"The .PN t_close() function informs the transport provider that the useris finished with the transport endpoint specified by \fIfd\fR and freesany local library resources associated with the endpoint. In addition,.PN t_close()  closes the file associated with the transport endpoint..NXR "transport endpoint" "closing".PPThe .PN t_close() function should be called from the T_UNBND state. However, this function does not check stateinformation, so it can be called from any state to close a transportendpoint. If this occurs, the local library resources associated withthe endpoint are freed automatically. In addition, .PN close()is issued for that file descriptor; the .PN t_close()abortives if there are no other descriptors in this or in anotherprocess that references the transport endpoint and breaks the transport connection that may be associated with thatendpoint..PP.TStab(@);lfHB lfHB lfHBlfR  lfR  lfR ._.sp 4pParameters@Before Call@After Call.sp 4p_.sp 6pfd@x@/.sp 6p_.TE.PP.sp 12p.SH Return ValuesThe .PN t_closereturns 0 on success and \-1 on failure, and\fBt_errno\fR is set to indicate the error..SH DiagnosticsOn failure, \fBt_errno\fR is set to the following:.TP 20The specified file descriptor does not refer to a transport endpoint..SH See Alsot_getstate(3xti), t_open(3xti),t_unbind(3xti)  

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?